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