Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ZuzJsk007
Contributor III
Contributor III

Set Analysis + custom Filter pane

Hi, I have following filter pane :

=if(Flag_Return = 1, CustomerName)

named CustomerName

 

I want to create a dimension in a table - show only such OrderIDs which belong to that specific customer selected in the filter pane above. I used:

=aggr(only({<CustomerName={'$(=GetFieldSelections(CustomerName))'}>}OrderID), OrderID)

but this only works when I use purely "CustomerName" in the filter pane (not the function)

 

Any ideas please?

Labels (2)
1 Solution

Accepted Solutions
GaryGiles
Specialist
Specialist

You can use this in the Filter Pane:

aggr(only({1<Flag_Return={1}>} CustomerName), CustomerName)

Then, you should be able to have the OrderId as-is in your table.  If you only want to show OrderIds when a selection if made, you could use:

If(GetSelectedCount(CustomerName)>0,OrderId)

or Show/Hide the Field based on if any values are selected.

View solution in original post

2 Replies
GaryGiles
Specialist
Specialist

You can use this in the Filter Pane:

aggr(only({1<Flag_Return={1}>} CustomerName), CustomerName)

Then, you should be able to have the OrderId as-is in your table.  If you only want to show OrderIds when a selection if made, you could use:

If(GetSelectedCount(CustomerName)>0,OrderId)

or Show/Hide the Field based on if any values are selected.

ZuzJsk007
Contributor III
Contributor III
Author

Awesome! works like a charm! Thanks a lot:)