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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Ordering the Legend

Capture.PNG

 

I'd like to order logically: 05, 6-20, 21-50, 50+

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Create this table:

 

Bin           Sort

0-5 1
6-20 2
21-50 3
50+ 4

 

Relate to your other table. Set the Sort By on the Bin column to Sort. Use the Bin column in your legend.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi Greg,

it won't let me create a new table as I'm using direct query. It says I would have to switch to import mode.

 

 

Yeah, you will have to create that table in your source then.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

 Greg,

I managed to get the database team to create this table for me.

 

Thank you.

  

 

Capture.PNG

 

 

The only problem now is the legend doesn't make sense to those viewing the report.

 

Capture.PNG

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.