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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
satyax
Contributor II
Contributor II

Make a calculation which is dependent on pivot table columns

 

I need to create a column to the right that shows the change in historical values (both the difference and percentage change).

I have tried to prepare this in Excel and have provided a screenshot.

I have attached both the data and the Qlik Sense pivot table.

 

Data set

Screenshot 2025-06-24 161420.png

Qlik Sense Pivot table

Screenshot 2025-06-24 161111.png

 

Requirement

Screenshot 2025-06-24 161806.png

Labels (5)
5 Replies
marcus_sommer

Don't use Year as horizontal dimension else apply 4 expressions with:

sum({< Year = {2024}>} Value)
sum({< Year = {2025}>} Value)
column(2) - column(1)
column(2) / column(1)

satyax
Contributor II
Contributor II
Author

Apologies, I am a beginner in Qlik Sense.

Are you suggesting not to keep Year in Column dimension instead add 4 of the expressions in Row which you have mentioned?

I tried so but these expressions gives error.

marcus_sommer

Yes, no Year as dimension and 4 expressions as columns or as rows.

satyax
Contributor II
Contributor II
Author

Please help, this gives error.

Screenshot 2025-06-24 171007.png

Screenshot 2025-06-24 171143.png

marcus_sommer

You need to adjust it to your data-set. To make it simple at the start just pull the Name as dimension and the above shown expression - by replacing Value with the real field-name of A or B or C.