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: 
Not applicable

Null in Set Analysis ?

HI All,

I Need to Calculated Blank values in CusGrp by Using Set Analysis, I am getting If I am Using any Specific CusGrp, BUt I need for Blank CusGrp...

Ex: sum({<CusGrp={"OEM"}>}Amt)

CusGrp     Amt

OEM          1000

OEM          2050

-                 3000

LIGHT         4560

-                  2000

LIGHT         3000

Regards,

Heather

Labels (1)
5 Replies
tresB
Champion III
Champion III

If it is really a null(), you won't be able to capture that in set analysis. You should probably replace the null values in the script by specific symbol or text, may be like:

Set NullAsValue CusGrp;

Set NullValue ='Null';

And then you would be able to filter them in set analysis like:

sum({<CusGrp={"Null"}>}Amt)

anbu1984
Master III
Master III

=sum({<CusGrp={'OEM'}>}Amt) + sum({1-<CusGrp={'*'}>}Amt)

sum({1-<CusGrp={'*'}>}Amt) -- Calculates sum of Amt where CusGrp is null

ali_hijazi
Partner - Master II
Partner - Master II

or you can do sum(if(isnull(CusGrp),Amt))

I can walk on water when it freezes
Not applicable
Author

Now I am getting Value , but Amt is Differnt...

please let me know

anbu1984
Master III
Master III

Check this app.

Note: Used Set Nullinterpret=''; in Script