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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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