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: 
m4u
Partner - Creator II
Partner - Creator II

Change precent between 2 dimensions

Hi all,

I attached an image about my question.

i have a report (pivot table) with some dimsnsions, my last dimensions is the year.

i need to to add another row under the 2 years, which will show the change precent between the 2 last years.

how could i do that? is the only way - to add an new year dimension, which will contain the different between them?

thanks

error loading image

4 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Well, there is a "tricky" way of doing it - Add a subtotal and replace the definition of the total by the formula for a difference between the years. It only works if you always have only 2 years though.

In a more "traditional" way, you'd need to create a Dimension that has three values - "2010", "2011", "Diff" and structure each Expression accordingly...

...??????

Ask me about Qlik Sense Expert Class!
m4u
Partner - Creator II
Partner - Creator II
Author

Hi .

very nice ideas

but how can i change the sub total formula?

Many thanks
?????? Big Smile

m4u
Partner - Creator II
Partner - Creator II
Author

shoud i use a calculated dimensions and dimensionality()?

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Well, n this case - one or the other. With Claculated Dimensions, you don't need to alter the subtotal formula.

With Dimensionality, you don't need Synthetic dimensions, you can simply check for Dimensionality() = 0 (if it's the overall total) or 1, and then use one calculation or another.

As a warning - I wanted to use Dimensionality recently, and I expected to see 1 for the first sub-total and 2 for the detailed cell, and I got 1 for both, which made this approach useless. So, check your Dimensionality before you spend too much time on the expressions.

Ask me about Qlik Sense Expert Class!