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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
v-xiaocliu-msft
Community Support
Community Support

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
v-xiaocliu-msft
Community Support
Community Support

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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