Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression in my pivot table - exceeding 100%

Hello,

As you surely will tell from this post, I am new to QV10, and have a problem creating an expression in a pivot table.

My data has Country and State as dimensions.


My expressions are

 

SUm({<month_name ={June}>} (Numerator)/(Denominator))

Same for July, August etc

This works fine when the pivot table is opened down to State, but when grouped up to Country, the % for the country is just the addition of all the state %'s; not the recalculation.

Please can someone show me where I am going wrong?


Thanks in advance.

J

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

Your expression is wrong for Country level. You have more than one value for Numerator and Denominator on this level.

You should use aggregation functions, for example like this:

=sum({<month_name ={June}>} Numerator)/sum({<month_name ={June}>} Denominator)

View solution in original post

6 Replies
whiteline
Master II
Master II

Hi.

Your expression is wrong for Country level. You have more than one value for Numerator and Denominator on this level.

You should use aggregation functions, for example like this:

=sum({<month_name ={June}>} Numerator)/sum({<month_name ={June}>} Denominator)

Not applicable
Author

Thanks for the giudance.

Not applicable
Author

Thanks for the giudance.

Not applicable
Author

Thanks for the giudance.

Not applicable
Author

Thanks for the giudance.

Not applicable
Author

Thanks for the giudance.