Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible to switch to another expression based on a variable value ?
Example
Measure Expression P_COUNT:
= IF (v_IsClosed = "Yes")
COUNT( { $< [P.Type]=, DateType= { 'Closed' }> } P_Id )
ELSE
COUNT( { $< [DateType]={ 'Ref' }> } P_Id )
..Is there a workable solution to this ?
May be this
If(v_IsClosed = 'Yes', Count({$<[P.Type], DateType = {'Closed'}>} P_Id), Count({$<[DateType] = {'Ref'}>} P_Id)
May be this
If(v_IsClosed = 'Yes', Count({$<[P.Type], DateType = {'Closed'}>} P_Id), Count({$<[DateType] = {'Ref'}>} P_Id)
Yes, thanks.
Please close the thread if you got what you wanted.
Best,
Sunny