Forum Discussion
Conditional Formatting to 100% stacked bar chart
I have an 100% stacked bar chart with 2 measures and want to give color coding to bars like if the measure <50 then red ,50-90 as amber and 90-100 as green ?How to achieve this ,is there any workaround
- Anonymous1 year ago
Hi Harika05 ,
Thank you danextian and rajendraongole1 for detailed information!
Power BI currently doesn't support direct conditional formatting by value for 100% stacked bar charts, especially when using multiple measures. Stacked bar chart treats multiple measures as a single series for color assignment, which is why the "fx" option disappears when you add a second measure.
If this is a significant blocker, you might consider submitting a feature request to the Power BI Ideas Forum to support conditional formatting in 100% stacked bar charts with multiple measures.
Hope this helps. If you found helpful,consider accepting it as solution.
Thank you for baing a valued member in Microsft Fabric Community Forum!
Regards,
Pallavi.
6 Replies
- rajendraongole1Super User
Hi Harika05 - Power BI doesn't support conditional formatting by value in 100% stacked bar charts directly (as of now). However, you can use a workaround to achieve a similar effect using custom color measures and a stacked bar chart instead of a 100% stacked one, or you can try the "Field value" based formatting trick.
you can try workaround Using "Field Value" in Data Colors.
example:
Hope this helps.
- Harika05Helper I
If its a single measure then I am getting fx option but once I add 2 measure in my stacked bar chart ,fx option is not visible and its asking to choose a single color
- Harika05Helper I
Yes I am using legends , but even though I remove them I cant see conditional formatting option in format pane , its giving the option to use static colors available
- AnonymousNot applicable
Hi Harika05 ,
Thank you danextian and rajendraongole1 for detailed information!
Power BI currently doesn't support direct conditional formatting by value for 100% stacked bar charts, especially when using multiple measures. Stacked bar chart treats multiple measures as a single series for color assignment, which is why the "fx" option disappears when you add a second measure.
If this is a significant blocker, you might consider submitting a feature request to the Power BI Ideas Forum to support conditional formatting in 100% stacked bar charts with multiple measures.
Hope this helps. If you found helpful,consider accepting it as solution.
Thank you for baing a valued member in Microsft Fabric Community Forum!
Regards,
Pallavi. - AnonymousNot applicable
Hi Harika05 ,
Could you please confirm if the issue has been resolved on your end? If a solution has been found, it would be greatly appreciated if you could share your insights with the community. This would be helpful for other members who may encounter similar issues.
Thank you for your understanding and assistance.