Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

YTD & MTD

Hi Community,

I have a table like this, i need to be find out the YTD and MTD Calls

Day of the Calls,

Year to date Calls,

Month To date Calls

could some help me

LOAD

   

     MTD,

     YTD,

    

     Metricid

FROM

(ooxml, embedded labels, table is Sheet1);

Thanks,

Rohith

3 Replies
Not applicable

Try this....

Take Date field(DD/MM/YYYY) in script level..then try expression

YTD:

Sum({<Date={'>=$(=(Num(YearStart(Max(Date)))))<=$(=(Num(Date)))'}>}Calls)

MTD:

Sum({<Date={'>=$(=(Num(MonthStart(Max(Date)))))<=$(=(Num(Date)))'}>}Calls)

er_mohit
Master II
Master II

See the attached file

NavinReddy
Creator II
Creator II
Author

Hi mohit ,

Thanks a lot

Plz find the attachment,let me know if i roung

Rohith