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: 
Not applicable

Hi,

how to calculate the YTD Sales and MTD Sales, QTD Sales but Make sure my calendar year starts with the 1-OCT.

Thankyou,

Siva

Labels (1)
2 Replies
adamdavi3s
Master
Master

Hi Siva,

Use a master calendar with flags, check out the search box at the top right, it will help you a lot

sasikanth
Master
Master

HI,

There are some functions available to compute .

1) YearStart(), YearEnd()

  Sum({<Date={">= $(=YearStart(max(Date)) ) <= $(=max(Date)) "},YEAR=,MONTH=>}SALES)

2) MonthStart(), MonthEnd()

  Sum({<Date={">= $(=MonthStart(max(Date)) ) <= $(=max(Date)) "},YEAR=,MONTH=>}SALES)

3) Quarterstart(), QuarterEnd()

Sum({<Date={">= $(=QuarterStart(max(Date)) ) <= $(=max(Date)) "},YEAR=,MONTH=>}SALES)