on 10-20-2015 10:24 PM
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here I share solutions that I found for this kind of issues. I hope it will be useful.
Create these Calculated Columns in Calculation View with following codes.
Name : First_Day_of_Month
Expression
date("0CALMONTH")
Name : Next_First_Day
Expression
if(rightstr("0CALMONTH",2)='12',adddays(date("0CALMONTH"+'01'),31),date(int("0CALMONTH")+1))
Name : Last_Day_of_Month
Expression
"Next_First_Day"-1
This solution also avoids 12th-1st month conflict or error. If you have "000000" Calmonth data you should need also exclude it.
date("0CALMONTH")
this automatically assigns first day of calendar month.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Umesh,
Check this blog , it may be helpful.
SAP HANA: Get the First Date and the Last Date of Month from a Given Date | WuaWua
and also have a look into this.
LAST_DAY - SAP HANA SQL and System Views Reference - SAP Library
Regards,
Malthesha Sungar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.