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: 
SamuelHaag
Contributor III
Contributor III

Sum up null values

Hi guys,

is it possible to sum up null values in a expression? For example: I want to have the sales of specific[CustomerGroup]  and the given null values: 

 

(sum({<

[CustomerGroup] = {'0001', '0003', '0004', NULL}

>}

Sales))

 

I tried it already with excluding but it didn't work either 😞

Thanks

 

Samuel

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try like:

sum({1-<[CustomerGroup]={*}>+<[CustomerGroup] = {'0001', '0003', '0004'}>}Sales)

View solution in original post

3 Replies
Kushal_Chawda
MVP
MVP

may be this

=sum({<[CustomerGroup] = {'0001', '0003', '0004'}>+<[CustomerGroup]={"=len(trim([CustomerGroup]))=0"}>}Sales)
SamuelHaag
Contributor III
Contributor III
Author

This is a good idea! Unfortunately it didn't work

tresB
Champion III
Champion III

Try like:

sum({1-<[CustomerGroup]={*}>+<[CustomerGroup] = {'0001', '0003', '0004'}>}Sales)