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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
-marie-
Frequent Visitor

Conditional Formatting based on Bars of another Chart

Hi Community, 

 

i am trying to figure out how I can format a visual var chart based on another bar chart. So i have plans and actuals numbers in two different tables. 

 

The visual with the plan numbers describe how many days a step should max take. The visual with the actual describes how many days it takes actually. As i have different groups with different targets i have a slicer, which changes between the groups, this is the reason why i wanted it based on the max plan numbers. 

 

If it takes longer than the plan the bar shall appear green, if it takes less time or exact this time, than the bar should appear red. Here an example: 

 

BarChartFormatting.jpg

I tried it by using the conditional formatting rules - based on the column "Max of Target in Days" (this is the name of the columns in the plan table). But i don't find the correct rules .. can anyone help me? 

 

BarChartFormattingRules.jpg

 

Thanks a lot for your help! 

1 REPLY 1
lbendlin
Super User
Super User

trying to figure out how I can format a visual var chart based on another bar chart

Change your thought process to "format a visual based on the data in the current filter context".  Create a text measure that yields "red"  or "green" based on the data, then apply to the bar chart.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.