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

Order of Chart

Hello - 

 

I have a chart that shows hours (y axis) by days (x axis). I am using a stacked bar chart, where the hours are split by "before", "after", and "during". 

 

Right now, the chart organizes the information by - after, before, during. I would prefer the order to be before, during, after. 

 

What's the easiest way to do this? 

 

Thanks,

M

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Locate to Query Editor mode, add a conditional column.

1.PNG

 

In report view mode, choose the field that should be added to legend, change its sort by setting from default to "Order" column.

2.PNG

 

Result.

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Locate to Query Editor mode, add a conditional column.

1.PNG

 

In report view mode, choose the field that should be added to legend, change its sort by setting from default to "Order" column.

2.PNG

 

Result.

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
davehus
Memorable Member
Memorable Member

You could do a conditional If statement in the query window to add a numerical value. Before 1, During 2, After 3. Then sort it by the number. Either that or use the Switch function to do something similar.

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.