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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
patrou38
Creator
Creator

chart: dimension in set analysis

Hello,

in the attached document I've 2 charts.

The first 'With Model',  with a dimension 'Model' in the Stacked chart I have 2 portions (Model1 + Model2) .

In the seconde chart 'Without Model', I removed the 'Model' dimension and I 've in the chart only 1 portion. this is correct but my problem is the value of the Bar. I expected to have the sum of the 2 portions but NO !!!

do you have any Idea of Why and how can I do to have this result ? just the sum on the 2 portion (Model1 + Model2)

 

thank you for your help.

Cordialy,

Patrick

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this

=Sum(Aggr(
Sum(percentage)
 *
 Sum(DISTINCT TC_Inventory)
/
 (Sum(DISTINCT TOTAL TC_Inventory))	/100
, Facility, Work_Week, Model)) 

View solution in original post

1 Reply
sunny_talwar
MVP
MVP

Try this

=Sum(Aggr(
Sum(percentage)
 *
 Sum(DISTINCT TC_Inventory)
/
 (Sum(DISTINCT TOTAL TC_Inventory))	/100
, Facility, Work_Week, Model))