on 08-01-2013 7:24 AM
Hi Experts,
we want to calculate current date previous year.
I am able to do this in Webi, by using formula:
=If FormatDate(RelativeDate(CurrentDate();-365);"DD") = FormatDate(CurrentDate();"DD")
Then RelativeDate(CurrentDate();-365)
Else RelativeDate(CurrentDate();-366)
But i am not able to calculate it in IDT WITH HANA as Back end.
We don't have any table that have date field.
Can any one please help me for the same. That which function we can use for the same in IDT.
DATEADD,DATEDIFF are not working !!!!
Thanks in Advance!!!
Sheetal Sharma
Hi Yuvraj,
Thanks for suggestion.
i have found the function.
ADD_YEARS (TO_DATE (Current_date, 'YYYY-MM-DD'), -1)
Regards
Sheetal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sheetal,
I suppose it would be better to put this query under SAP HANA forum so that an expert can revert to it ASAP.
You can post it here:
http://scn.sap.com/community/hana-in-memory
Regards,
Yuvraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.