Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Fabien
Contributor III
Contributor III

Aggr Function with multiple criterias

Hi all,

 

I'm hoping you can help me with this tricky one.

I would like to be able to set a filter pane or button with the following criterias in one go:

I would like to filter the selection to  all products within brand 'AAA' and also product '222' and '333' within brand BBB.

BrandProduct
AAA111
AAA222
BBB111
BBB333
BBB222
AAA333

 

Is it possible to do so?

Labels (2)
4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

{<Brand={'AAA'}> + <Brand={'BBB'}, Product={222,333}>}

Fabien
Contributor III
Contributor III
Author

Thanks for your response.

Should that go into an Aggr function?

It doesn't seem to work on its own in a filter pane

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Yes, an Aggr() if you wanted to make a filter.  You said filter or button so i assumed you were just looking for the set. Where you use it depends.  For a Filter:

Aggr(Only({<Brand={'AAA'}> + <Brand={'BBB'}, Product={222,333}>} Product), Product)

-Rob

 

Fabien
Contributor III
Contributor III
Author

Thanks Rob but it didn't work.