Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nlee4jnj
Contributor II
Contributor II

How to add a row calculating difference on a pivot table?

Hello,

In QlikSense, how can I add an additional row to my Pivot Table calculating the difference between the rows above it? I've searched all around and can't find how to do it as a row below my other rows.

I'm not looking to add the difference as a column to the right.

I want it to look just like the red text in this image:

Screen Shot 2018-09-28 at 11.08.38 AM.png

Thanks!

1 Solution

Accepted Solutions
mikaelsc
Specialist
Specialist

can't do that. you need to create separate Measures (Measure 1: 2017, 2: 2018, 3: 2017-2017) (so not using year as a dimension)

View solution in original post

8 Replies
mikaelsc
Specialist
Specialist

can't do that. you need to create separate Measures (Measure 1: 2017, 2: 2018, 3: 2017-2017) (so not using year as a dimension)

nlee4jnj
Contributor II
Contributor II
Author

Thank you for the straightforward answer. The inability of Qliksense to do simple operations can be extremely frustrating.

mikaelsc
Specialist
Specialist

... Qlik Sense is not Excel...

dimensions cannot be added/multiplied/... only measures can...

mikaelsc
Specialist
Specialist

did you find a way to achieve what you wanted nathan?

nlee4jnj
Contributor II
Contributor II
Author

I got close to the desired result by using the method described here: Calculate Difference in Rows in Pivot

Unfortunately, it requires the user click a "disclosure" widget to open the upper level before the lower level can display. That makes it likely my customer will not see the detail I want them to see, since they are unlikely to interact with the worksheet.

It also places the total above the rows, which is counter-intuitive, but functional.

the sheet opens looking like this:

screen 1.png

and expands to this:

screen 2.png

I accept that Qlik Sense is not Excel, but its inflexible reporting and limited data graphics capabilities make it difficult. But since my company has decided it will be our one and only reporting platform, it is what I must work with.

marcel_ifeanyi
Partner - Contributor II
Partner - Contributor II

 @nlee4jnj please, can i have sample of how you did it?

nlee4jnj
Contributor II
Contributor II
Author

I recommend you read the post I linked to. Basically, I used the DIMENSIONALITY() function, which lets you calculate differently based on whether the pivot table row is a header row or a dimension detail row.

Basically, it's this:

IF(Dimensionality()=1, **SUM GOES HERE**)
    ,
    DIMENSION MEASURE GOES HERE)
)

Then I used the Styling options for the Pivot Table to make it expanded at all times.

Screen Shot 2021-10-26 at 9.58.13 AM.png

ufuomadoghor
Partner - Contributor
Partner - Contributor

This challenge is already a show stopper for us at Para Systems Ltd. Customer has insisted on getting value for their investment in Qliksense otherwise maintenance support contract proposition will not fly.

Marcel's  concern on multiple row calculation.

It is an issue that Qlik should support us to resolve to earn continued patronage of the customer.

There are several opportunities in the Oil & Gas sector to be exploited.

Your support is  very crucial please