Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Newer to PowerBI - I'm trying to figure out how to sort a tornado chart by the left side (as shown), but then leaving that static and sorting the right-side descending as that would be a tiebreaker. In the example you can see 4 bars are tied at 100, I need to keep in descending order of 181 down to 61 (on the left) but then need any ties sorted descending as well. I labelled the 4 bars of 100 to show what order they should be in. I've included the order everything should show in, however that was manually done, not feasible to do this moving forward so looking for a solution.
Alternatively, another visual that could do this same thing, so far I've not found one that does this.
Solved! Go to Solution.
Try this as last option:
Add a column and hide it from users, say sortcol
SortCol = VALUE('Table'[Total Sales] & "." & 'Table'[Sales in U. S.])
In the table view, select the column "Item" and go to column tools, sort by "SortCol"
Go to visual, select the sort as item and as descending, it should work.
Check the output, it should be showing the way you want 🙂
what is the formula you used? what are the columns data type used in the formula?
The trick and my idea was to concatenate the two numbers.
one before the decimal and use other after the decimals.
and convert the concatenated back to decimal number. make the column hidden.
Use this calculated decimal column for item column sorting, which solves your need!
hope this clarifies why I am using!
Try this as last option:
Add a column and hide it from users, say sortcol
SortCol = VALUE('Table'[Total Sales] & "." & 'Table'[Sales in U. S.])
In the table view, select the column "Item" and go to column tools, sort by "SortCol"
Go to visual, select the sort as item and as descending, it should work.
Check the output, it should be showing the way you want 🙂
When I do the SortCol I get this error Cannot convert value '.' of type Text to type Number.
what is the formula you used? what are the columns data type used in the formula?
The trick and my idea was to concatenate the two numbers.
one before the decimal and use other after the decimals.
and convert the concatenated back to decimal number. make the column hidden.
Use this calculated decimal column for item column sorting, which solves your need!
hope this clarifies why I am using!
Thank you, yes I understand the premise of what you were doing. Appreciate your reply.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
104 | |
77 | |
35 | |
35 |
User | Count |
---|---|
158 | |
103 | |
71 | |
65 | |
53 |