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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting by rules

Hello everyone, I have this table below in which 23 items are evaluated for each prospect (AQW1, SALW, ...) some items are not applicable to each prospect.

 

Fernandes_20_0-1663159367201.png

Example:
Prospect AQW1
Total Items = 23
Items not applicable (NA = 14)
Applicable items = 9
Items already evaluated = 7
DAP = 7/9 = 77.78%

 

What I need is for these non-applicable items to be grayed out in the DAP measurement, like this:

Fernandes_20_1-1663159491252.png

 

But I don't want to keep the NA measure in the table, and when I remove it I lose the formatting.

Is there any way to apply this formatting without the NA measure being in the table?

3 REPLIES 3
Anonymous
Not applicable

I believe that the formatting will not work that way, as the percentage calculation (DAP) is done by excluding the NA from the measure, that is:

 

Prospect AQW1
Total Items = 23
Not applicable items (NA = 14)
Applicable items = 9
Items already evaluated = 7

DAP = 7/(23 - 14) = 77.78%

 

NA is being excluded from measure, so formatting will never be applied based on NA condition unless it is in the table.

amitchandak
Super User
Super User

@Anonymous , even if NA is not there in the table, you can use that in conditional formatting. For greyed out , Do both font and background conditional formatting as grey

 

If needed use color measure

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/1682539
https://amitchandak.medium.com/power-bi-where-is-the-conditional-formatting-option-in-new-format-pane-66e0afcb15f3

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
Anonymous
Not applicable

I had tried that way too, but I lose the formatting when I remove the measure from the table.

Fernandes_20_0-1663162737187.png

Fernandes_20_1-1663163513024.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.