Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Need help with the below expression. I want to include the blanks from the field name 'Active End Date'. This field has Dates and rest as blanks.
the below expression does select the date with dates, if i remove 'not equals'.
Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,Active_End_Date-={"*"}>} distinct [Usable Area])
So sorry, the expression did go okay without an error, but the data remains showing the both values (null & dates)
one more try
Add these two lines near the before your data load in the script:
NULLASVALUE;
SET NullValue = 'Blank'; (or SET NullValue = ' ' if applicable)
Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,Active_End_Date={"=len(trim(Active_End_Date))=0"}>} distinct [Usable Area])
sorry, my mistake...
=Sum( distinct {< Active__c = {'1'}, [Property Record Type] = {'Office'} >} if( IsNull(Active_End_Date), [Usable Area] ) )
or
=Sum( distinct {< Active__c = {'1'}, [Property Record Type] = {'Office'} >
*
1-< Active_End_Date = {"*"} >} [Usable Area] )
Thank you all, managed to get the answer. sorry for the late reply.
Sum({<Active__c={'1'},[Property Record Type]={'Office'}
,[Property Location ID]={"=len(Active_End_Date)=0"}>} distinct [Usable Area])
Based on what you are trying to do, I recommend creating a flag/identifier at load time to identify null and/or empty values then using the identifier in the set analysis. For example, if you create a flag called IsActiveDateNull where 1 is true and 0 is false, you can use IsActiveDateNull={"1"} in your set analysis.