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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
JamesGordon
Helper II
Helper II

Legend showing in wrong order - stacked bar graph

Hi,

 

My legend is displaying in the wrong order. Screenshot below showing the graph and also my DAX.

I cant find a way to put the legend into the order: 0-90 Days, 90-180 Days, 180-365 Days, 365+?

 

Can someone help!!

 

Thanks

Power Bi ques 20.jpg

1 REPLY 1
Anonymous
Not applicable

That's because in the table that stores your brackets you also have to have a (hidden) column that establishes the order among them. And once you do have it, you have to tell PBI that you want to sort this column by that column.

 

Also, storing everything in one big table is a sure way to have bugs in the model all over the place and not even be aware that they exist. Please use the star schema.

Best
D

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.