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: 
Not applicable

Comparing years when year is a dimension

Hi All,


I wondered if anyone had an expression based solution to the following problem.

If I have sales data and I want to do a table that has Transaction_Year as the dimension (e.g. 2008, 2009, 2010, 2011) and I want to display the following two expressions:

- Sum(Sales) by year (simple.)

  - Sum(Sales) for the year prior to the year of the current dimension.  So in the 2011 column, I would have the Sum(Sales) for 2010.  This would allow me to develop the formula to do a % change in the same table as the year exists as a dimension.

I want to achieve this without using an independent table and IF statements which is very inefficient for large data sets.

Thanks

GC

1 Solution

Accepted Solutions
nstefaniuk
Creator III
Creator III

Hello

You can

- pre-calculate

- use Chart Inter Record functions Above/Below/Before/After but they have restrictions

- use If (sorry)

You can't

- use a dynamic Set Analysis

Chart Inter Record functions

View solution in original post

2 Replies
nstefaniuk
Creator III
Creator III

Hello

You can

- pre-calculate

- use Chart Inter Record functions Above/Below/Before/After but they have restrictions

- use If (sorry)

You can't

- use a dynamic Set Analysis

Chart Inter Record functions

Not applicable
Author

Thanks very much I had not known about the Above/Below/Before/After but this was exactly what I was looking for!