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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
suzel404
Creator
Creator

Calculation in Pivot Table.


Hi all,

I need to calculate amount in  pivot table.

Févr.   Mars   Calculation

5.13     6.23      (6.23 - 5.13) / 5.13   = 21%

How can I achive that ?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use chart inter record functions like before() or above() (use before() in your case of pivoted dimensions):

="Prix Moyen TTC" / before("Prix Moyen TTC") -1

View solution in original post

5 Replies
swuehl
MVP
MVP

You can use chart inter record functions like before() or above() (use before() in your case of pivoted dimensions):

="Prix Moyen TTC" / before("Prix Moyen TTC") -1

suzel404
Creator
Creator
Author

Thanks Swuehl.

It is exactly what I need.

suzel404
Creator
Creator
Author

Swuehl,

I can I have a total (%) rather than '-' ?


swuehl
MVP
MVP

Possibly, yes.

But, your total variance should indicate what based on your data? (How would you like it to be calculated?)

suzel404
Creator
Creator
Author

Total (%Prix Moyen) = Sum of Total(%) for Janv. + Sum of Total(%) for Févr. + Sum of Total(%) for Mars + Sum of Total(%) for Avr. + Sum of Total(%) for Mai + Sum of Total(%) for Juin