Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
OysteinT
Contributor III
Contributor III

(Pivot) table - create "custom" values based on selections, and percentage split.

Hi I am looking to transform some of our data, but without access to the dataload sections, so all have to be done as expressions... 

We have a dataset where we have a category field which has the numbers 1 - 8, 15, 18-20. 

The data I have I want to split into the following rows and add columns on other fields (Country + Gender)
- All categories 
- Category 1-8
- Category 5,7,8 
- Category 4
- Category 3
- Category 2
Category 1,2,6

In addition in the Country column I want to list each Country, but also add a "Company Total" summation... 

Simplified datamodel is like this:

UserIDCountryGenderCategory
1NOM1
2SEF1
3NOM20


Outcome to look something like this: 

OysteinT_0-1631173115781.png

Total = sum of all countries. 
How do I split the percentages per row and country? I can get the numbers fine, but not the percentages split on each row. 

As I can't add anythign to the loadscripts or data models, only the analysis sheets I'm a little over my head 😄 

2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Oystein,

Please give us some data from the table so we can do a test.

Jordy

Climber

Work smarter, not harder
Sweta_Sharma
Former Employee
Former Employee

Hi Oystein,


It would be better to transform data in the load script instead (e.g doing ETL instead of ELT).
https://www.qlik.com/us/data-management/data-transformation-tool
https://www.youtube.com/watch?v=xkBFyNys1LI
https://www.youtube.com/watch?v=YjATejfEOxc
https://www.youtube.com/watch?v=dhJv4A2eQz8


Cheers!

If the issue is solved please mark the answer with Accept as Solution