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: 
the-null
Contributor III
Contributor III

Pivot sorting using filter pane

Hi,

How can I add measures, such as Quantity 1 and Quantity 2, to a filter pane? However, I want them to be displayed as 'Quantity 1' and 'Quantity 2' within the filter pane, and when I select one of these values, I want the data within the pivot table for Quantity 1 to be sorted from largest to smallest.

Labels (4)
1 Solution

Accepted Solutions
LRuCelver
Partner - Creator III
Partner - Creator III

You can create the field in the script:

MeasureSelect:
NoConcatenate Load * Inline [
	SelectedMeasure
    Quantity 1
    Quantity 2
];

This expression returns 1 if in this case 'Quantity 1' is selected and 0 if not:

Coalesce(SubStringCount(GetFieldSelections(SelectedMeasure, '|'), 'Quantity 1'), 0)

View solution in original post

3 Replies
LRuCelver
Partner - Creator III
Partner - Creator III

You need to add a field that has the names of your measures.

You can check whether a value is selected by using SubStringCount and GetFieldSelections.

Create an expression for the sorting of every measures in the table.

the-null
Contributor III
Contributor III
Author

ok, can you give an example or something?

 

I don't understand what you exactly mean.

LRuCelver
Partner - Creator III
Partner - Creator III

You can create the field in the script:

MeasureSelect:
NoConcatenate Load * Inline [
	SelectedMeasure
    Quantity 1
    Quantity 2
];

This expression returns 1 if in this case 'Quantity 1' is selected and 0 if not:

Coalesce(SubStringCount(GetFieldSelections(SelectedMeasure, '|'), 'Quantity 1'), 0)