Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kennethand
Contributor III
Contributor III

Dimension sum to 100% within another dimension

Using this expression:

Sum( {< Periode={"2018K2"}> }weight) / Sum(TOTAL{<Periode={"2018K2"}> } weight)

I can create this bar chart (sum to 100%):

klip1.JPG

But how do show the this within another dimension? I like to show this in one graph per age-group. 

 

klip2.JPG

 

But as you can see the graph shows me the 100% distributed 'over all'. I like to see the 100% distribution within every age-group. Ex. for 30-39 years I like to see the distribution of 100%. For 40-49 yrs. I also like to see the distribution of 100% and so on.

How do I need change my expression?

 

2 Solutions

Accepted Solutions
pradosh_thakur
Master II
Master II

Hi 

 

try the below

Let's name your dimension 1 and dimension 2

Sum( weight) / Sum(TOTAL <dimension1>  weight)

Learning never stops.

View solution in original post

OmarBenSalem

and u can always keep ur condition:

 

Sum( {< Periode={"2018K2"}> }weight) / Sum(TOTAL <dimension1> {<Periode={"2018K2"}> } weight)

View solution in original post

2 Replies
pradosh_thakur
Master II
Master II

Hi 

 

try the below

Let's name your dimension 1 and dimension 2

Sum( weight) / Sum(TOTAL <dimension1>  weight)

Learning never stops.
OmarBenSalem

and u can always keep ur condition:

 

Sum( {< Periode={"2018K2"}> }weight) / Sum(TOTAL <dimension1> {<Periode={"2018K2"}> } weight)