Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
March 26 at 10am ET: See how Qlik drives growth and value in ISV segment - REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Preserve sum() when selecting a field

Hi all,

In my stacked bar chart dimension, I have MonthYear and Client, and in expression, I show % VOLUME per client per month:

sum(VOLUME)/sum(TOTAL <MonthYear> VOLUME)

Now, there are 50+ clients. I want to show just a select few clients of my own choosing. Selecting those clients changes the % values completely. Is there a way to preserve the value of sum(TOTAL <MonthYear> VOLUME) when selecting clients?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

sum({<ClientField= >} TOTAL <MonthYear> VOLUME)

View solution in original post

4 Replies
swuehl
MVP
MVP

sum({<ClientField= >} TOTAL <MonthYear> VOLUME)

sifatnabil
Specialist
Specialist
Author

Thanks - I was trying to put that set after TOTAL instead of before. Also, the legend of the bar chart still shows all 50+ clients. Is there a way to change the legend to just my client selections?

swuehl
MVP
MVP

I can't reproduce your issue with the legend.

Could you post a small sample QVW that demonstrates this?

sifatnabil
Specialist
Specialist
Author

Actually I restricted the legend by doing dimension limits on "Show only largest 11 clients", which worked. Thanks!