Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis exclude (but keep null() )

Hello, I've got a field (let´s call it _Field1) that only contains the value '1' for some of the records in the table.

I would like to create a set expression where I get the sum of all records with null() in _Field1.

Does anyone have a solution? I tried

Sum({$< _Field1-= {1} >} Amount)

but that doesn´t seem to work as long as _Field1 only contains null() for the rest of the records.

The table lookes something like this

Dimension1_Field1Amount
Sales110
Sales20
Sales130
Sales40
Sales150

I wan´t the sum of Sales to be 60   (20+40)

1 Solution

Accepted Solutions
4 Replies
robert_mika
Master III
Master III

Sum({1-< _Field1= {'*'} >} Amount )

15-Apr-15 4-20-36 PM.jpg

Anonymous
Not applicable
Author

Great, thanks. I actually need some other statements in the set expression as well, so this was great.

Anonymous
Not applicable
Author

Thanks for this answer also.