Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
khanashique
Creator II
Creator II

Sort Expression in Qlik Sense for Graph

Hi Experts,

Below is the Bar graph where i want to sort the graph as per category, first target and then Sales...if you can see below it is jumping when sales is higher than the target. i have tried the below expression but does not work...

 

if(ValueList('Target','Sales') = 'Target', 1,
if(ValueList('Target','Sales') = 'Sales', 2))

 

Capture.JPG

 

Thanks,

MAK.

Labels (4)
1 Solution

Accepted Solutions
khanashique
Creator II
Creator II
Author

Thanks,

See the snapshot below after changing the category to custom and sorting is as Alphabetical Order descending...it worked.

Capture.JPG

Thanks for your reply.

 

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Valuelist is not bound to the data in any way, so I don't its a good candidate for controlling the sorting. It looks like you also have a sort by value set on this object. Remove that and sort by text instead.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
bhargav_bhat
Creator II
Creator II

Check if the sorting is at the top 
text.PNG

khanashique
Creator II
Creator II
Author

Thanks,

See the snapshot below after changing the category to custom and sorting is as Alphabetical Order descending...it worked.

Capture.JPG

Thanks for your reply.