Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Clever_Anjos
Employee
Employee

Bar chart sorting

I´m using a stacked bar chart with two dimensions

Capturar.PNG

and I would like to sort based on the expression value (Distruibuição)

Capturar2.PNG

Unfortunately, the bars are not beeing sorted as I want. Any ideas?

Capturar3.PNG

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

I haven't faced this particular problem, however I recall solving another sorting problem in a Scatter chart. Unfortunately, Scatter charts can't be sorted in Qlik Sense. To overcome the problem, I created a calculated Dimension using Dual() and assigned the numeric portion of the dual value based on my sorting expression. This trick worked, and my dimension was sorted based on the numeric value.

Try the same here, it might work in a similar way.

cheers,

Oleg Troyansky

QlikView Your Business - check out my new book about QlikView and Qlik Sense. Coming out in August.

View solution in original post

20 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

I haven't faced this particular problem, however I recall solving another sorting problem in a Scatter chart. Unfortunately, Scatter charts can't be sorted in Qlik Sense. To overcome the problem, I created a calculated Dimension using Dual() and assigned the numeric portion of the dual value based on my sorting expression. This trick worked, and my dimension was sorted based on the numeric value.

Try the same here, it might work in a similar way.

cheers,

Oleg Troyansky

QlikView Your Business - check out my new book about QlikView and Qlik Sense. Coming out in August.

Clever_Anjos
Employee
Employee
Author

Very nice idea, but it´s not working yet

Capturar.PNG

Clever_Anjos
Employee
Employee
Author

Pre-ordering your new book, I´m your fan

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Not applicable

I am not sure I get what you are after but, I would try sorting Switch Disposition with the expression '=Column(1)'.

Hope it helps

//Karl

Clever_Anjos
Employee
Employee
Author

Does not work either

Not applicable

Try it with the expression of Distruibuição

Not applicable

And put Switch Disposition above Distruibuição

Clever_Anjos
Employee
Employee
Author

Same result.

Attaching my file