on 08-13-2018 10:54 AM
Can anyone tell me how to calculate first date of a month in hana graphical calculation view? EX: 23-07-2018 should become 01-07-2018
You can create a calculated date column which uses the component function to extract the month and year of your date. As the beginning of the month is always 1, you have then all components to create build the new date. If your current date is not in a date format, you can use conversion function date to convert your value into a date.
Regards,
Florian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can create a calculated column with datatype as Date.
Please paste the below code in the expression editor.
date (format("CREATEDON",'YYYYMM'))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ADD_MONTHS(NEXT_DAY(LAST_DAY(YOUR_DATE_FIELD)),-1)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.