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: 
BogdanT18
Contributor III
Contributor III

Sorting of a Straight Table

Hello,

I am trying to sort a table descending by a column and the result I get VS the results I get when I click on the column name in the table to sort it descending (not in edit mode) are different. The result I get when I click on the column name is the expected result. How can I achieve this?

Thank you!

Bogdan

Labels (5)
5 Replies
Cascader
Creator
Creator

send screenshot of sort tab please

Rams-
Creator
Creator

Hi,

You have Sorting option in Properties

Rams_0-1687175751809.png

You can set By default Sorting option by dragging the up-down field names.

Rams_1-1687176052893.png

Off the Auto Sorting option.

Rams_2-1687176219244.png

Then you can sort according to your requirement.

 

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

 

BogdanT18
Contributor III
Contributor III
Author

Hello @Cascader , @Rams- ,

I will attach some sample data:

pic1: this is sorting with no limitation

pic2:if I only set the limitation to fixed number, the sorting changes

What I expect is to have the same sorting I have in pic1 in the limitation scenario so I can have the first x number of recordings according to the variable that is editable in the front end. pic1.png

pic2.png

Do you have any idea of why it changes? And how can I make it not to? 

Thank you!

Aditya_Chitale
Specialist
Specialist

Try shifting the measure on top most position in sorting tab on which you want to primarily sort your table and then  apply fixed value on the least granular field of your table.

Regards,

Aditya

BogdanT18
Contributor III
Contributor III
Author

Hello,

The problem was that when you select limitation to fixed value, it takes the first measure in your table. It says calculated on measure: -MeasureName-. So I needed to compromise and move my measure all the way to the left so it will be the first measure in my table so that the limitation would be calculated on it....initially was all the way to the right because I wanted to "hide" it, as the sorting is it's only purpose.

Thank you all for your inputs! 😄