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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

conditional Formatting based on other measures

Hi everyone,

 

I am looking to conditional format a card dependent on another different measure and have that conditional formatting change dependent on the slicers.

 

My slicer is for the teams

Team A's Target - 700k

Team A's Closed Business - 600k

Team B's Target - 650k

Team B's Closed Business - 660k

 

Ideally this is what I want: 

If I select team A, I will see the two cards like so:

700         |       600

Target    Actual

 

But if I change my view to team B, I will see:

650         |       660

Target    Actual

 

Is this possible? I can only seem to be able to do this by hardcoding the values, which wouldn't work in this situation.

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I went ahead and created a little data set in excel:

demo pic.png

 

 

 

 

I created a slicer for team

 

Then I created a measure:

Conditonal Format Flag = if(max(Sheet1[Target])>max(Sheet1[COB]),1,-1)

Then going under the card visualization, select > Format>Data Label>the little elipses by Color>Condtional Formatting.
 
From there
Format by: Rules
Based on field: Condtional Format Flag
 
Rules:
If values is 1 then Red (under target)
If value is -1 then Green (on or over target)
 
 
Hope this helps!
 
Caleb Foster

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

I went ahead and created a little data set in excel:

demo pic.png

 

 

 

 

I created a slicer for team

 

Then I created a measure:

Conditonal Format Flag = if(max(Sheet1[Target])>max(Sheet1[COB]),1,-1)

Then going under the card visualization, select > Format>Data Label>the little elipses by Color>Condtional Formatting.
 
From there
Format by: Rules
Based on field: Condtional Format Flag
 
Rules:
If values is 1 then Red (under target)
If value is -1 then Green (on or over target)
 
 
Hope this helps!
 
Caleb Foster
Anonymous
Not applicable

It worked! Thanks for the help 🙂 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors