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

Double step in set analysis

Hello to everyone who is going to read my new question.

Let us imagine that I have 4 kind of store shelves : A - B - C - D and many customers.

In one tab, I would like to show the total amount paid by each customers in shelves A and C.

That's what I've written so :  =sum({<[Shelve]={'A','C'}>}count_total)

But, when I select one shelve (for example A), the graph doesn't move. It still shows me the total amount for the two shelves (logical).

Is it possible to show :

     - total amount in shelves A and C when I don't select anaything ;

     - total amount in the shelve I select when I choose A or C ?

Thanks for your help.

1 Solution

Accepted Solutions
mikecrengland
Creator III
Creator III

Put a ' * ' before the ' = '

=sum({<[Shelve] * ={'A','C'}>}count_total)

View solution in original post

2 Replies
MayilVahanan

Hi

     You can use if condition like this,

     =if(match(getfieldSelections(año),2009,2011),sum({<año = {$(=getfieldSelections(año))}>}instalacion), Sum({<año = {2009,2011}>}instalacion))

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
mikecrengland
Creator III
Creator III

Put a ' * ' before the ' = '

=sum({<[Shelve] * ={'A','C'}>}count_total)