Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD Fiscal Year Calculations

Hi,


I am trying to do the set analysis calculations for MTD,YTD for this year and last year but i am unable to get the desired values.

I have a fiscal date and i want to have the set analysis defined for sales such that if i pick a date it must give me the MTD sales until that date and same with YTD and also for last year.

Can someone please help me with any suggestions?

23 Replies
Not applicable
Author

Hi

PFA the QVW file with the revised formulae.

Earlier I had not taken into account the fact that the first day of the week shows the traffic for whole week.

Let me know if still you face any issues.

Thanks

Sabal

Not applicable
Author

Hi

If this is resolved please close this thread.

Thanks

Sabal

poojashribanger
Creator II
Creator II

Hi ,

You can refer to this document.

YTQ, QTD, MTD and WTD

vikasdesai
Partner - Contributor III
Partner - Contributor III

Hello Friend

Fiscal YTD:

sum({<DateField={">=$(=(YearStart(Max(DateField),0,4)))<=$(=YearEnd(Max(DateField),0,4))"},Year=,Month=>}Sales)


Fiscal MTD:

sum({<DateField={">=$(=(MonthStart(Max(DateField),0,4)))<=$(=Max(DateField),0,4)"}, Year=,Month=>}Sales)


Regards

vikas