Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pivot Calculations

I've got a simple pivot with SKU and Fiscal Year as dimensions and Sales Pounds as an expression. The Fiscal Year is pivoted across the top. I need to add an expression that will show the year to year differences. It needs to be dynamic since the user can choose to show two, three or four fiscal years and they could select years that are not in sequence such as 2012 & 2014. The earliest year, of whatever years they selected, will show a difference of zero since there is no earlier year to compare against. What is the best way to create such an expression?

2015-01-16_144302.jpg

6 Replies
ecolomer
Master II
Master II

See this example where Año is Year

ecolomer
Master II
Master II

And this

petter
Partner - Champion III
Partner - Champion III

2015-01-18 Pivot and Diffs 2.PNG

Anonymous
Not applicable
Author

Thanks Petter, but it's not right. Not sure why.

2015-01-19_090400.jpg

petter
Partner - Champion III
Partner - Champion III

I can't tell by looking at your screenshot. If you upload an attachment of your data or a sample of it together with I will have a go at it...

Anonymous
Not applicable
Author

Thanks, but I'm going with a simpler option.