Skip to main content
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 (2)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

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

View solution in original post

3 Replies
Kushal_Chawda

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

tresesco
MVP
MVP

Try like:

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