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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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