Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator III
Creator III

Sorting issue

Hi Team,

I am trying to sort values like below expression in sort:

Match(TYPE,'AD','FS','Pl','DB','APP','Total')

In future new values adding into TYPE filed like below. But in future also I want order first five always should be on top('AD','FS','Pl','DB','APP') and others should be last .

TYPE

AD

FS

PI

DB

APP

SO

BO

BI

SX

Total

3 Replies
Anil_Babu_Samineni

May be this?

Match(Only({1} TYPE),'AD','FS','Pl','DB','APP','Total')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
its_anandrjs
Champion III
Champion III

Add another inline table table in data model

Load * inline

[

TYPE,TSortOrder

AD,1

FS,2

PI,3

DB,4

APP,5

SO,6

BO,7

BI,8

SX,9

Total,10

];


And in sort properties un check all and select sort by expression and write


=TSortOrder


Or


=Only({1} TSortOrder)

Chanty4u
MVP
MVP

try this in both sort tab and dimesion tab

for more  check this

order not workin

  • pick(match(TYPE,'AD','FS','Pl','DB','APP','Total'),1,2,3,4,5,6)