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

Selecting Null Values in Set Analysis

I am trying get the amend the expression below to also select records where Cancelled_Date is null.

Is this possible?

=Sum({<[Cancelled_Date]={">$(=getfieldselections(Period))"}>}[Contract_Fee])



3 Replies
Not applicable
Author

If so, you should be able to use Null() for that. It returns null.

Or IsNULL() which returns a boolean on checking if some expression returns null.

You can use Null() like this: IF ([Cancelled_Date]=Null(), ...

Not applicable
Author

You can get results where Cancelled Date is null by using:

Sum({<[Cancelled_Date]={""}>}[Contract_Fee])


To get both, I think you can use:

Sum({<[Cancelled_Date]={">$(=getfieldselections(Period))", ""}>}[Contract_Fee])


I tried it on a simpler Set Modifier and it worked, but I've never used that in practice.

Not applicable
Author

I have tried a few different ways with no luck so I am using

Sum

Instead

Thanks for your help

({1-$<[Cancelled_Date]={"<$(=getfieldselections(Period))"}>}[Contract_Fee])