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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dawn_Juarez
Regular Visitor

Tornado chart - keep one side static after sorting, then sort other side

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.

Tornado chart example.PNGTornado chart example data.PNG

2 ACCEPTED SOLUTIONS
sevenhills
Super User
Super User

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"

 

sevenhills_0-1713923854847.png

 

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 🙂 

 

sevenhills_1-1713924013457.png

 

View solution in original post

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!

 

View solution in original post

4 REPLIES 4
sevenhills
Super User
Super User

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"

 

sevenhills_0-1713923854847.png

 

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 🙂 

 

sevenhills_1-1713924013457.png

 

When I do the SortCol I get this error Cannot convert value '.' of type Text to type Number.

Dawn_Juarez_0-1713969846958.png

 

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.