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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Previous Fiscal YTD

Dear all

I have the following expression set up in my master calendar for the Fiscal YTD which returns either a 0 or 1 in the results.

InYearToDate(TempDate, $(varToday),0,4) *-1

I can use this field in set analysis and set it to either a 0 or 1, should I want to calculate the current financial year.  The 1 currently returns Apr-16 - July-16 data for me

I admit that I copied this syntax from a previous post and now I want to be able to understand it more as I want to adapt it so I can get the previous Financial YTD

I am looking to adapt the syntax so I can get results for Apr15-Jul15 when I set it to 1

Can someone kindly help me with this

Kind Regards

Helen

Labels (1)
1 Reply
helen_pip
Creator III
Creator III
Author

I think I have done it!

InYearToDate(TempDate, $(varToday),-1,4) *-1

This returns Apr15-Jul15 for me

More haste less speed!!!