Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
laxmanqlik
Creator II
Creator II

MTD and YTD

can anyone let me know where can i find the complete info on how to work with MTD and YTD.

and how to calculate the values of MTD and YTD.

2 Replies
sanjay006
Creator
Creator

MTD :

((Sum({<FYear={"=max(FYear)"}, MONTH1=, Quarter=,DATE_SLIPDATE1=, NUM_DATE={">=$(=Num(MonthStart(Max(NUM_DATE))))<=$(=Max(NUM_DATE))"}>} ACCOUNTED_CR)- Sum({<FYear={"=max(FYear)"}, MONTH1=, Quarter=,DATE_SLIPDATE1=, NUM_DATE={">=$(=Num(MonthStart(Max(NUM_DATE))))<=$(=Max(NUM_DATE))"}>} ACCOUNTED_DR)))/1000000

YTD:

sum({<DATE_SLIPDATE1=,YEAR=, MONTH1=, NUM_DATE={">=$(=Num(MonthStart(Max(NUM_DATE),-11)))<=$(=Max(NUM_DATE))"}>}ACCTD_AMOUNT)/1000000

* this is for the financial year starts with Apr and ends at Mar

sanjay006
Creator
Creator

YTQ, QTD, MTD and WTD

you can refer this also