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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Card with Conditional Formatting

I am trying to do what i thought would be a simple task with a card and it's driving me insane!

 

I have a card which shows % vs target using a meaure field and I have another measure which calculates what the % should be at this point in the year.  All I want to do is compare one against the otgher and colour the card green or red based on this and I can't for the life of me get this to work.  Is anyone able to help me?

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

I think below is what you want:

Card with Conditional Formatting.PNG

Please try.

Aiolos Zhao

Anonymous
Not applicable

Hi, I want to use a calculated measure to achieve this result but the conditional formatting by field selector won't allow me to select the field I need

Anonymous
Not applicable

Hi @Anonymous ,

 

I'm not sure why you can't select the measure you need, because it works on my desktop.

if it's possible, could you please share you measure expression.

 

In my sample, I choose the "Format by Field Value", then select the measure I created.

 

Aiolos Zhao

Anonymous
Not applicable

Sure it's just a simple division.  Tried as a measure and column and it won't allow me to click OK

PTD % Target = DIVIDE([Days PTD],[Days in Period])
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry for reply late, yes, for this measure you can't use "Format by Field Value",

for this measure, you need to use "Format by Color Scale", then choose the range then color that you want.

 

Please try.

Aiolos Zhao

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors