Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

data doesn't sort the right way

Hi,

I have a stacked bar chart in which i show an overview of paper and computer orders by sector. I use the following expression in my sort tab: =sum(paper_orders) + sum(computer_orders) it sorts almost right expect one value doesn't seem to follow the sort method...

error loading image

red: paper_orders
blue: computer_orders

Somebody knows a possible answer to this? I already changed my expression a few times but always the same result...

2 Replies
Miguel_Angel_Baeyens

Hello,

Assuming you have one dimension (Sector) and two expressions (first is paper orders and second is computer orders) in a stacked bar chart, you can use the Y-Value sort checkbox instead of the Expression. This will render the chart showing first that sector with highest value for the first expression (paper orders).

According to this, create a new expression:

Sum(paper_orders + computer_orders)


Uncheck the "Bar" tick in the expression (so there will be no new bar with this value), and check "Values on Data Points". Now promote this expression to the first place.

Now you get it.

Hope that helps.

Not applicable
Author

thx it works 🙂