Forum Discussion

Krushnab_85's avatar
Krushnab_85
Regular Visitor
1 year ago
Solved

Need a help on conditional formatting

Hi i am using stacked bar chart in that i need y axis values's font color should be dynamic. For example if i put no of registrations on x axis and hospital name on y axis. if any hospital has 0 no ...
  • v-aatheeque's avatar
    v-aatheeque
    1 year ago

    Hi Krushnab_85 
    Thanks for reaching out to Microsoft Fabric Community Forum.
    grazitti_sapna Thanks for your prompt response. In addition to that 

    • Currently, Power BI does not support conditional formatting for Y-axis labels (like hospital names) in built-in visualizations such as stacked bar charts. we cannot dynamically change the font color of axis labels based on values like the number of registrations.
    • However, as a workaround, you can apply conditional formatting to the bars themselves. For example, you can color the bar red when the number of registrations is 0 — this visually highlights those hospitals even though the Y-axis label color remains unchanged.

    Below is the expected output : 

    If a community member's response addressed your query, please consider marking it as Accepted Answer and click Yes if you found it helpful.

    If you have any further questions, feel free to reach out.
    Thank you for being a valued member of the Microsoft Fabric Community Forum!