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: 
ShellyG
Creator
Creator

Pivot Table data doesn't stack up to 100%

Dear all, 

I have an issue with a pivot table I created. I am using the following fields:
Rows - Country (the field only contains country names)
Column - Year (only years)

Measure - (sum({<Year = {'$(=max( {<Source={'Main'}>}Year))'}>}aggr(sum(Units), Year, Country))+sum(aggr(sum(ForecastUnits),Year, Country)))
/$(=sum({<Year = {'$(=max( {<Source={'Main'}>}Year))'}>}aggr(sum(Units), Year, Country)))

The results I get in the table are correct only when I select a specific country. The only problem is that Qlik Sense splits all the countries and the total of the countries is 100%. Instead I would like each country to be separately for itself 100%. 

Any ideas on how to edit the expression? 

Labels (2)
0 Replies