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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
ek2112
Advocate II
Advocate II

Sort by axis values

Hi all,

 

Just wanted to check if there is a way to sort by y-axes for the following stacked bar chart visual. I tried sorting on the "Sort by Project Duration"

 

Untitled.png

 

 

 

but I am not able to get the below desired result, which is to get the project duration risks in the order of  severity?

 

High Risk                       11

Moderate Risk                9

Minimal Risk                  18

Empty Risk                     1

 

Thank you for your time.

 

 

 

2 ACCEPTED SOLUTIONS
RMDNA
Solution Sage
Solution Sage

@ek2112,

 

There's a variety of ways to accomplish this, but one option is creating an index for severity (either 4/high risk or 1/high risk). Once that's complete, use Modeling > Sort by Column to order the risk field by index.

 

a.PNG

 

Once you've done that, what you tried in your picture will be successful.

 

b.PNG

View solution in original post

@ek2112,

 

Yep, I just created an index column in the fabricated table. There's other options depending on the complexity of your data, but it looks like this should work for what you need.

 

If it answered your question, make sure to mark the post above as a solution to help other users with similar problems.

View solution in original post

4 REPLIES 4
RMDNA
Solution Sage
Solution Sage

@ek2112,

 

There's a variety of ways to accomplish this, but one option is creating an index for severity (either 4/high risk or 1/high risk). Once that's complete, use Modeling > Sort by Column to order the risk field by index.

 

a.PNG

 

Once you've done that, what you tried in your picture will be successful.

 

b.PNG

@RMDNA this looks great. Is creating Index same as creating an index column? Could you please elaborate. Thank you.

@ek2112,

 

Yep, I just created an index column in the fabricated table. There's other options depending on the complexity of your data, but it looks like this should work for what you need.

 

If it answered your question, make sure to mark the post above as a solution to help other users with similar problems.

@RMDNA That worked. Thank you!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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