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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.