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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Jhadur
Helper I
Helper I

Manual sort of stack column chart

I have created a stacked bar chart that shows the number and status of projects for each executive. Currently it is sorting the status color alphabetically and I need it to sort in Red - Amber - Green order. How can I do that?

 

Jhadur_0-1723645360005.png          Jhadur_2-1723645438979.png       

Jhadur_3-1723645493520.png

Status Color = SWITCH(
    [Overall Status],
    10, "Green",
    20, "Amber",
    30, "Red",
    "Unknown"
)

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jhadur ,

 

Please try to create a calculated column with number (0-3).

vxiaocliumsft_0-1723688698859.png

vxiaocliumsft_0-1723688728764.png

Status Color = SWITCH(
    [Overall Status],
    10, 3,
    20, 2,
    30, 1,
    0
)

vxiaocliumsft_1-1723688750215.png

vxiaocliumsft_2-1723688756662.png

vxiaocliumsft_3-1723688769703.png

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Jhadur ,

 

Please try to create a calculated column with number (0-3).

vxiaocliumsft_0-1723688698859.png

vxiaocliumsft_0-1723688728764.png

Status Color = SWITCH(
    [Overall Status],
    10, 3,
    20, 2,
    30, 1,
    0
)

vxiaocliumsft_1-1723688750215.png

vxiaocliumsft_2-1723688756662.png

vxiaocliumsft_3-1723688769703.png

 

Best Regards,

Wearsky

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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