Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
shwetagupta
Partner - Creator II
Partner - Creator II

Financial Year LYTD expression

Hi all,

I am using following expression for calculating LYTD but I am not getting the correct result as an output

Sum({<fYear=, fMonth=, Quarter=, Date={">=$(=Date(YearStart(Max(Date),-1)))<=$(=Date(addyears(Max(Date),-1))) "}>}invoice_qty)

my financial Year starts from April.

Problem : Date(YearStart(Max(Date),-1) what changes should I make in the expression in order to make it understand

Date(YearStart(Max(Date),-1)) = 1/04/2015  right now it is giving me 01/01/2015

Any help will be appreciated !!

1 Solution

Accepted Solutions
sunny_talwar

Try the third parameter here:

=Date(YearStart(Max(Date),-1, 4))


Capture.PNG

View solution in original post

3 Replies
sunny_talwar

Try the third parameter here:

=Date(YearStart(Max(Date),-1, 4))


Capture.PNG

shwetagupta
Partner - Creator II
Partner - Creator II
Author

Thanks a Ton Sunny for your help !!

sunny_talwar

No worries, glad I was able to help