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
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
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.

Top Solution Authors