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

View all the Fabric Data Days sessions on demand. View schedule

Reply
MCacc
Helper IV
Helper IV

Different contional formatting for total

Hello, 

I have a request from my customer where the target value with which I do my conditional formatting in a column in my matrix visual is different from the total in comparison to the value.

 

MCacc_0-1679580696806.png

As you can see, my total has a target value (90%) different from the rest of the table.

 

The Measure I use for my %
MY DAX MEASURE FOR % = DIVIDE(SUM(TABLE[COUNT ERRORS]),SUM(TABLE[COUNT INSERTS]),0)

The measure I use for my field condtional formatting
MEASURE FOR FORMATTING = IF([MY DAX MEASURE FOR %] < 0,95,1, 0)

 

Then in the condtional formatting I apply the rule as follows --> MEASURE FOR FORMATTING = 1, "green", 0 = "red"

 

Any idea how in my measure I can use the value 0,90 (90%) to apply a specific condtional formatting for my total?

 

Thank you. 

1 REPLY 1
amitchandak
Super User
Super User

@MCacc , Return color and use in conditional formatting using the field value option

 

MEASURE FOR FORMATTING =
if( isinscope(Table[Column]) ,
if([MY DAX MEASURE FOR %] < 0.95,"Red", "Green") ,
if([MY DAX MEASURE FOR %] < 0.90,"Red", "Green")
)

 

The column is not summarized (Aggregated column)

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pan...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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