Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mona
Contributor
Contributor

How to ignore a particular dimension and sum up qty in vizlib pivot table?

Hi,

I am working on laptop sales visualization using vizlib pivot table. I can't make the total sum of model order correct when switching from subgeo level to geo level.

Below is my sample data, 

GeoSubgeoModelPartsParts OrderModel OrderPercentage
APASEANFXXS144602,4202%
APASEANFXXS1452,1382,42088%
APASEANFXXS146222,4201%
APASEANFXXS1472002,4208%
APHTKFXXS144100100100%
APHTKFXXS14501000%
APJAPANFXXS144250250100%

Vizlib Pivot Table allows you to remove dimension, so after remove subgeo dimension, the table is as shown as below:

GeoModelPartsParts OrderModel OrderPercentage
APFXXS1444102,77015%
APFXXS1452,1382,52085%
APFXXS146222,4201%
APFXXS1472002,4208%

Model Order in Geo level should be 2420+100+250 = 2770.

How should i modify my formula to ignore Parts, and sum up Model Order to Geo level? or if you have other idea, please also share with me 🙂

I've also attached my formula of meansures and tables structure:

GeoSubgeoModelPartsParts OrderModel OrderPercentage
GeoSubgeoModelParts=sum(PartsOrder)=sum(ModelOrder)=sum(PartsOrder)/sum(ModelOrder)

 

Table1: PartsSale
Geo
Subgeo
Model
Parts
Parts Order

 

Table2: ModelSale
Geo
Subgeo
Model
Model Order

 

Thanks in advance.

I am a Chinese, hope my explanation is clear enough for you.

 

Regards

Mona

Labels (1)
0 Replies