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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get YTD of previous year?


Hi, 


I tried bellow query but its not working, find the image in the attachment

"rangesum( above( sum( {$<Month>}  [Actual SPCD hit rate_CUTTING]),0,12) )"



   YTD.png

1 Solution

Accepted Solutions
Not applicable
Author

Find the answer below


=avg({<Year={'$(vPriorYear)'} ,Month=,Day=,Date={'<=$(vYear)'}, MonthYear=>}[Actual GRN Hit Rate_STORES])

View solution in original post

1 Reply
Not applicable
Author

Find the answer below


=avg({<Year={'$(vPriorYear)'} ,Month=,Day=,Date={'<=$(vYear)'}, MonthYear=>}[Actual GRN Hit Rate_STORES])