Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
jwjackso
Specialist III
Specialist III

Effects of using the same field in SetAnalysis

I had a user ask which Set Analysis formula to use if they wanted Val >=6 and <12.  They had tried {<Val={"<12"},Val={">=6"}>} and {<Val={"<12>=6"}>}.  I was surprised at the results.

Untitled.png

2 Replies
Digvijay_Singh

I think Same field in one set is giving unpredictable results, better to use other operators  in case needed to use same field in multiple conditions. Below expression gives the intersection set -

Count({<Val={"<12"}>*<Val={">=6"}>}Val)

jwjackso
Specialist III
Specialist III
Author

I agree, the normal interpretation of {<Field1={"<12"},Field2={"<=6"} >}is an "AND" test.  It appears that {<Field1={"<12"},Field1={">=6"}>} is unpredictable.