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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with Year2Date Function please?

I am trying to use the script build a calendar table that will identify dates that fall in various historic financial years (Month 1 is May). The following code works for the current financial year and the previous financial year:-

-1*(Year2Date(Date(CtrlDate),0,5,$(vToday))) as IsWithinFinYTD,

-1*(Year2Date(Date(CtrlDate),-1,5,$(vToday))) as IsWithinLastFinYTD

I also need to identify the year before the last financial year but all my attempts have failed.

Any suggestions please?

Thanks,

Chris

Labels (1)
0 Replies