Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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
MVP
MVP

Try the third parameter here:

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


Capture.PNG

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

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
MVP
MVP

No worries, glad I was able to help