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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ferha_jafri
Partner - Creator III
Partner - Creator III

How we can calculate Year to date in straight table

Hello everyone,

I have a job as i have to calculate YTD data ,when i select YTD in multi box.I am be able to implement YTD in Graphs by using rangesum function but in case of straight table i cannot use rangesum the for straight table what should i do??

Thanks in advance

Ferha Jafri

2 Replies
er_mohit
Master II
Master II

write this code

for YTD

sum({<Date = {">=$(=YearStart(max(Date))) <=$(=max(Date))"},Year =, Month = >} Sale)

and see the attached application

ferha_jafri
Partner - Creator III
Partner - Creator III
Author

Thanks for your reply Mohit i will try the following expression and let you know .