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
Anonymous
Not applicable

Sorting by legend on a bar chart

I've created a bar chart from some Further Education data, showing how students from 3 different subjects fare: 

 

FE8.PNG

 

Problem is that the bars are in the wrong order - I want to get them in the logical order of:

Started course
Retained after 8 weeks
Completed year 1
Completed year 2

 

The only way I can see to do this is a bodge, i.e. concatenate the stage reference with stage name - but it's ugly

 

FE901.PNG

 

The query can be found at https://1drv.ms/u/s!AmxJyApgEAcYgo8w2xQKFiMzMkt7xQ

 

Any better ideas?

 

Thanks for your help

1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

On the Modeling tab there is a button "Sort By Column".  Click on the Stage Name column in your Field selector, click "Sort By Column" and choose "Stage Reference".  Then when you choose to sort by Stage Name it will go ascending or descending based on S5, S6, etc.

 

Hope this helps

David

View solution in original post

2 REPLIES 2
dedelman_clng
Community Champion
Community Champion

On the Modeling tab there is a button "Sort By Column".  Click on the Stage Name column in your Field selector, click "Sort By Column" and choose "Stage Reference".  Then when you choose to sort by Stage Name it will go ascending or descending based on S5, S6, etc.

 

Hope this helps

David

Anonymous
Not applicable

Fixed!

 

Thanks Dedelman

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.