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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Intersection between 2 alternates states

Hi community,

I've got 2 alternates states based on a same dimension for a comparative analysis, it works fine. But now, I wanted to know how much values are in the two states, abd how much aren't in.

My two states are groupe_1 and group_2, so I've got these two expression : count({[groupe_unite1]} name) and count({[groupe_unite2]} name) .

So I want something like that : count({[groupe_unite1],[groupe_unite1]} name) and count({NOT IN ([groupe_unite1],[groupe_unite2])} name).

Is it possible?

Thanks for your answer,

Mickaël.

4 Replies
Not applicable
Author

count({$<groupe_1={'groupe_unite1','groupe_unite2'}> name)

and

count({1-$<groupe_1={'groupe_unite1','groupe_unite2'}> name)

Not applicable
Author

Thanks for your answer,

but this expression don't use my alternate states, expression seems wrong just after your '$<'

Not applicable
Author

start from the beginning

groupe_1 and group_2 are dimensions right?

groupe_unite1 and groupe_unite2 are values? from which dimension?

Not applicable
Author

Thanks, I found my error, intersection are {[groupe_unite1]*[groupe_unite2]} and not in the two states are {[groupe_unite1]/[groupe_unite2]}.

With this it works fine.