Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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])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(), ...
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.
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])