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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
timea21
Contributor
Contributor

Set analysis v Selections question

Hi Qlik fans,

I need your help understanding some Qlik behaviour, please.

Let's say I have the following data:

TypeVolumeID
A10A123
B20B123
C30C123


And a measure as below:

sum({<Type={'A','B'}>}Volume )

Now when I make a selection on the Type to show only Type A, should my measure update to exclude B or remain to include A and B?

I have a chart where it doesn't change with the selection (as if I put {<Type=>} in there) only if I change the set analysis to an aggregated measure such as sum(aggr(sum({<Type={'A','B'}>} Volume),ID), then the selection will have an effect.

Is there any other way to ensure that my chart updates with the selections without using exclusions? I have a lot of other dimensions, so I rather list what can be included instead of what not to, while allowing users to drill down to the just one value with selections.

This didn't resolve it either: sum({<Type={'A'}>+<Type={'B'}>}Volume )

In a strange way I thought it used to work and not anymore (bug?), but I probably just didn't notice I was doing it wrong.

Thank you in advance

Labels (2)
1 Solution

Accepted Solutions
marcus_sommer

You need to tell the set analysis that they should respect further selections, for example with:

sum({<Type *= {'A','B'}>}Volume )

- Marcus

View solution in original post

2 Replies
marcus_sommer

You need to tell the set analysis that they should respect further selections, for example with:

sum({<Type *= {'A','B'}>}Volume )

- Marcus

timea21
Contributor
Contributor
Author

Thank you so much! It was really doing my head in 🙂