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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SET Analysis with OR?

Hi,

i would like to build a SET Analysis with a 'OR':

=SUM({$<YEAR = {"$(=max(YEAR-1))"},MONTH = {"<=$(=max(MONTH))"}, Group={$(=vRA)}>} $(vREV))

We have a Group of customers but i want to add ONE other customer (He is not part of the Group.

Is this possible?

Many Thx

Christoph



1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

Christoph,

The + sign is the OR operator in set analysis. So, for example: sum({<Group={$(=vRA)}>+<CustomerID={"123456"}>} $(vRev))

Regards,

View solution in original post

2 Replies
vgutkovsky
Master II
Master II

Christoph,

The + sign is the OR operator in set analysis. So, for example: sum({<Group={$(=vRA)}>+<CustomerID={"123456"}>} $(vRev))

Regards,

martin59
Specialist II
Specialist II

Hi,

You can try that :

=SUM({$<YEAR = {"$(=max(YEAR-1))"},MONTH = {"<=$(=max(MONTH))"}>*(<Group={$(=vRA)}>+<Customer={XX}>)} $(vREV))


Hope that helps you.