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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Set expression with { }

Hi experts

I need your help.

I have the following set expression:  Count({<Year={'2021'}, Material={''}>} [PO Number])

But I need the opposite of Material={''} - I need all material values except the material without value.

Any ideas?

Thank you

Tom

2 Replies
kaushiknsolanki
MVP
MVP

Hi, to get all the values except the one which is defined you should use not equal to like shown below.

Count({<Year={'2021'}, Material-={''}>} [PO Number])

 

It is nothing but adding the minus sign '-' before '=' sign.

 

 

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
TomBond77
Specialist
Specialist
Author

Thank you

Now I have a new challenge: Your solution which works for the first scenario, should also work for this set expression. But is not working. Do you have any ideas? I need to rank the bottom 10 in QlikSense:

rank(-Sum({<Year={'2021'},Material-={''}>} [Days Leadtime] - [PLIFZ-Days]) /
count([PO Number]))

Many Thanks for your help.