Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

custom sort dimension - number

hi i would like to have a custom sort function on the dimension itemnumber

so that all the numbers beginning with 9 come first in the list.

i have tried the following ;

=match(left,Itemnumber,1))

Best,

Bradley

3 Replies
michael_maeuser
Partner Ambassador
Partner Ambassador

i would create a field in the script,

if(left(itemnumber, 1)=9, 1, 2 as xxx

and then sort by that field ascending

swuehl
MVP
MVP

Maybe like this:

= -match(left(Value,1),9)

or even just

= -left(Value,1)

as sort expression. But how do you want to sort the other values?

christophebrault
Specialist
Specialist

Hi,

if(Left(Value,1)=9,-1,Value) and sort ascending.

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin