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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

This year/ Last Year comparison - Over different periods

HI all,

I am having an issue with This Year/Last Year comparison of sales.  Usually if we are getting the Last Year figure for year on year our set analysis would just be "SUM({$<year={$(#=Only(year)-1)}>} [sales-value] - [Disc amount])" which works fine but because I am rolling across years (week 50, 2015 - week4, 2016 see image below) the formula does not work for the Last Year figure as it previously did.  I have tried alternatives but to no avail and was wondering if anyone can think of how I can fix this? Any help on this would be greatly appreciated.

SalesComp.PNG

Thanks,

Brian

Labels (1)
1 Reply
-SW-
Partner - Creator II
Partner - Creator II

Hi Brian,

Would you be able to provide sample app to look into this with greater detail?

Thanks,

Shun