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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Microsoft Employee
Microsoft 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
Microsoft Employee
Microsoft 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.