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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
vardhancse
Specialist III
Specialist III

Set Analysis Exclude and Include null

Hi All,

Have a requirement is that,

expression:

Sum{$<[Group]={'*'}-{'I'}>}(Sales)

As per the above expression, we are getting sum(sales) where Group I were excluded.

But the issue is that null values were not getting included.

I want to exlude Group I and include null as well.

Is there a way using set analysis.

20 Replies
Not applicable

It will exclude your Group I

Sum({<[Group]={'*'}-{'I'}>}sales)

tobias_klett
Partner - Creator II
Partner - Creator II

isn't that what it says? to exclude Group one and include null?

anbu1984
Master III
Master III

Check this qvw

ashfaq_haseeb
Champion III
Champion III

Hi,

Try like this

Sum({$<Group={'*'}+{''}-{'I'}>}Sales)

Regards

ASHFAQ

vardhancse
Specialist III
Specialist III
Author

it is excluding null as well

ashfaq_haseeb
Champion III
Champion III

Hi,

Did you try my solution.

Regards

ASHFAQ

simondachstr
Specialist III
Specialist III

Sum{$<[Group]-={'I'}>} Sales)

vardhancse
Specialist III
Specialist III
Author

Its not working

ashfaq_haseeb
Champion III
Champion III

Hi,

I tried its working fine.

Can you post sample application.

Regards

ASHFAQ

vardhancse
Specialist III
Specialist III
Author

Created one field in the backed script to satisfy the required condition and used that field in the front end.

if(isnull([Group]) or [Group]='E',1,0) as Group_1,

And used Group_1=1 condition in the expression.

Sum{$<[Group]={1}>}(Sales)


So that Only Group I was excluded and included Group E along with null values.


My issue is resolved