Forum Discussion

mahendrakanouji's avatar
mahendrakanouji
Regular Visitor
2 months ago
Solved

Conditional formatting for category axis labels based on Budget vs Actual

Hi everyone,

I’m working on a clustered bar chart in Power BI and would like to apply conditional formatting to the category (Y-axis) labels based on a comparison between Budget and Actual values.

Requirement:

For each category:

  • If Budget > Actual → category label should be green
  • If Budget < Actual → category label should be red

Details:

  • Visual: Clustered Bar Chart
  • Y-axis: Category dimension
  • Values: Budget and Actual measures

Problem:

I know how to apply conditional formatting to data colors (bars), but I’m unable to find a way to dynamically change the color of the category labels based on a measure condition.

Ask:

Is it possible in Power BI to conditionally format axis/category labels based on measure logic?
If yes, how can it be achieved? If not, are there any workarounds?

Thanks in advance!

5 Replies