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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
julioarriaga
Creator II
Creator II

Different measures depending if the pivot table is collapsed (market share)

Hi, community,

I need something as the image below where I can see in a single column the market share per Region, and then the market share of the country (Pais) in its corresponding region.

I have tried with the Dimension() function and some way of identifying if the field is collapsed, to no avail. 

As always, thank you for the help, and kind regards.

Captura.PNG

 

Labels (3)
1 Solution

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

When you say you have tried 'Dimension' function, do you mean the following does not work;

if(Dimensionality()=1,sum(Total <Region> Monto)/sum(total Monto),sum(Monto)/sum(total <Region> Monto))

Cheers,

Chris.

 

View solution in original post

1 Reply
chrismarlow
Specialist II
Specialist II

Hi,

When you say you have tried 'Dimension' function, do you mean the following does not work;

if(Dimensionality()=1,sum(Total <Region> Monto)/sum(total Monto),sum(Monto)/sum(total <Region> Monto))

Cheers,

Chris.