Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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])