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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.