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

Announcements
Qlik Unveils New Agentic Capabilities Across Analytics, Data Engineering, and Trust: Learn More!
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

Labels (1)
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