Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
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
MVP
MVP

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.