Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
rittermd
Master
Master

Using OR in Set Analysis

I am attempting to get this syntax correct and just can't get it.

I want the logic to be:   LOB is one of the values AND CancelCurrentYearFlag is Yes OR PercentFlag is Yes.

I currently have:

Sum({1<LOB={'Base','Other'}, <CancelCurrentYearFlag={'Yes'} > + <PercentFlag={'Yes'}>} Revenue)

Something is off!!!!

2 Replies
Or
MVP
MVP

Looks like a missing closing >  (or an extra opening <). You have three < and only two >.

Another thing that looks suspicious is that you have applied 1< to the first set but not to the second set in the union, is that intentional? This might not be the case because with the missing > it's hard to tell what the 1 should be referring to.

albertovarela
Partner - Specialist
Partner - Specialist

You have 1 extra <. remove this one <

 

Sum({1<LOB={'Base','Other'}, <CancelCurrentYearFlag={'Yes'} > + <PercentFlag={'Yes'}>} Revenue)