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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.