Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
marcoyukon
Creator
Creator

Conditional Measure Expression

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 ?

1 Solution

Accepted Solutions
sunny_talwar

May be this

If(v_IsClosed = 'Yes', Count({$<[P.Type], DateType = {'Closed'}>} P_Id), Count({$<[DateType] = {'Ref'}>} P_Id)

View solution in original post

3 Replies
sunny_talwar

May be this

If(v_IsClosed = 'Yes', Count({$<[P.Type], DateType = {'Closed'}>} P_Id), Count({$<[DateType] = {'Ref'}>} P_Id)

marcoyukon
Creator
Creator
Author

Yes, thanks.

sunny_talwar

Please close the thread if you got what you wanted.

Best,

Sunny