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: 
jdmarlin
Contributor III
Contributor III

Set Analysis | Dimension1 = Dimension2

Hello,

I'm trying to do a set analysis where one dimension equals another. So in the sample below I want three results (in bold) to show up:

     

YearProductCustomerSubCustomerBalanceCorrect Results
2015115920000052000005-50000000-50000000
2015115920000072000005-640500000
2025115920000052000007-500000000
2025115920000072000007-64050000-64050000
2025115920000052000005-50000000-50000000
2025115920000072000005-640500000

I've tried Sum({<Customer=P(SubCustomer)>} Balance), but that doesn't seem to work.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Set analysis is evaluated once per chart, not per dimension line.

=Sum( If(Customer = SubCustomer, Balance))

View solution in original post

1 Reply
swuehl
MVP
MVP

Set analysis is evaluated once per chart, not per dimension line.

=Sum( If(Customer = SubCustomer, Balance))