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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis: 'OR' between modifiers

From Help Menu for 'Set Analysis'

**

sum( {$<Year = {2000}, Region = {US, SE, DE, UK, FR}>} Sales )

returns the sales for current selection, but with new selections both in "Year" and in "Region".

**

Here ',' betweent {2000} and Region represents AND or Intersection.

How can I:

return the sales for current selection, but with new selections both in "Year" 'OR or Union' in "Region".

Thanks in advance.

Abi

2 Replies
Not applicable
Author

You could use the Symmetric Difference, but that will fail when both conditions are true. I think you need the Symmetric Difference combined with the Intersection.

It's messy, but I think it would be:

sum( {$<Year = {2000}>/<Region = {US, SE, DE, UK, FR}>} Sales ) +
sum( {$<Year = {2000}>*<Region = {US, SE, DE, UK, FR}>} Sales )


I think that should give you the Sales when either condition is met (but not both) combined with the Sales where both conditions are met. Logically, that should give you everything where either condition is met.

johnw
Champion III
Champion III

Maybe I missed something, but doesn't that simplify to just the union?

sum({<Year={2000}>+<Region={US,SE,DE,UK,FR}>} Sales)