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: 
Not applicable

Sort fields with null values

I tried to order with a dimension match function . I give you an example :

match ( TEAM, 'Madrid' , 'Barcelona' , 'Sevilla ', ' Oviedo ' )

This put it in -> Sort - Expression

But when one team has "0" placed me in the first position. I want Although the value is null, is it possible to continue to keep the order I put it , any suggestions?

Thank You !!

1 Solution

Accepted Solutions
4 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

match ( TEAM, 'Madrid' , 'Barcelona' , 'Sevilla ', ' Oviedo ', '*' )


Regards,

Jagan.

pokassov
Specialist
Specialist

Hello!

if(match ( TEAM, 'Madrid' , 'Barcelona' , 'Sevilla ', ' Oviedo ' )>=1,match ( TEAM, 'Madrid' , 'Barcelona' , 'Sevilla ', ' Oviedo ' ),99)

Joaquin_Lazaro
Partner - Specialist II
Partner - Specialist II

Hello rrrrrrrr8:


Try this:


If (match( ...) = 0, 99, match( ...)


Saludos,

Joaquín

Not applicable
Author