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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with Year2Date Function Please?

I am trying to use the script to 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

0 Replies