Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Shubham_A
Contributor
Contributor

Maintain Descending sort order for Unselected values in Filter

Hi,

Shubham_A_0-1691592560529.png

This is my Fiscal Quarter, after selecting any quarter the unselected values go back to ascending sorting as shown below.

Shubham_A_1-1691592689660.png

My goal is to ensure that unselected values also maintain the descending sort order. How can I achieve this behavior? Are there any configuration settings or walkarounds that can help me maintain the descending sort order for both selected and unselected values?

I appreciate any insights or suggestions.

Thank you!
Shubham

Labels (1)
2 Replies
cristianj23a
Partner - Creator III
Partner - Creator III

Hi, try the following code:

Only({1} [our field you want to sort])

I add this code to the order option, here is an image

 

cristianj23a_0-1691600920367.png

 

cristianj23a_1-1691600942190.png

But before that, create a new field that becomes number to sort, you can do that in the script.

Quarter&Year as NumTrimestreYear

 

Regarts.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
Shubham_A
Contributor
Contributor
Author

Hi,
I appreciate your prompt response.

However, we are already using the following expression num(date([$(Fiscal Weekend Date)]))& [$(Fiscal Quarter)] to sort this in descending order in the filter pane, but the sorting issue seems to happen is in the top selection pane only

Filterpane

Shubham_A_1-1692195467396.png

 

Top Selection Pane

Shubham_A_2-1692195525415.png