Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
madmax88
Creator II
Creator II

Exclude values in Dimension by deselect another

Hi,

I have following Dataset

ContainerPositionValue
AP11
AP2200
AP350000
AP41000
AP510
CP12
CP21000
CP350000
CP41000
CP510
DP3500
DP4200

 

I need now a Dimension, where I can select between following Containers:

Container are selected where..

1) there is no P1

2)  the Value of P1 is greater than 0 but smaller than 2.

3) The Value of P1 is greater or equal than 2

At the Moment I have tried the the Dimension Selection for Selection 1 (I havent' found a selection for 2 and 3) :

IF(len(P1)='0','Selection',

IF(len(P1)>'1','No Selection'))

e.g. click on "Selection" it shows me the Container Value without the P1 value. But in this case it should show me only the container D where no P1 value is available. Is this possible?

2 Replies
OmarBenSalem

Try as follow:

=aggr(
if(Position<>'P1','No P1',

if (sum({<Position={'P1'}>}Val)<2,'P1 smaller than 2',

if (sum({<Position={'P1'}>}Val)>=2,'P1 greater than 2'
)))
,
Container,Position)

 

result :

Capture.PNG

 

Select "No P1":

Capture.PNG

 

P1 greater than 2 

Capture.PNG

 

P1 smaller than 2

Capture.PNG

madmax88
Creator II
Creator II
Author

Thanks for your reply!

At the moment it does not work but I'm checking my data model and try something. I'll let you know when i know more.

Anyway: I have now a 3rd variable: Customergroup. Is it correct when I write:

if(POS_NAME<>'P1' and Customergroup="*ABC*", No P1',