Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Current Year Previous Year.

$
0
0

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


Viewing all articles
Browse latest Browse all 1291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>