Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
SwenWa
Partner - Contributor II
Partner - Contributor II

Sort chart with null values

Hi team,

I created a bar chart with 1 measure: count(distinct [Number])+0*count({1}distinct [Number])

SwenvW_1-1596612013549.png

This formula gives me a "0" for all attributes that normally would not be shown. this works fine for me.

BUT i also want a hardcoded sorting for the attributes (dimension Status).
I tried and failed these 2 possiblities in "sort by expression":

  • if([Status]='Attr1',1, if([Status]='Attr2',2, if([Status]='Attr3',3, if([Status]='Attr4',4, 100))))
  • match (Status, 'Attr1','Attr2','Attr3,'Attr4')

Does anyone has an idea how to solve it?

Thanks 
Swen

Labels (2)
0 Replies