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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Formatting Background Color Conditional - Blank, Null, Empty, Zero?

Hello, I am try to conditionally format the background of my visuals based off of a measure then a scoring level of 0 (red), 5 (yellow) or 10 (green). I am having troubles conditionally formatting the background of my visuals that do not have data. In the Background>Color settings it has Default formatting options but only for blanks. When I view my visual as a table it is emplty so I believe that my data is not returning a blank and it is seen as a zero. 

 

Any advice on this? I can give more info if needed. Thanks!

 

Background>Color>fx Settings

 

mboomgaa_1-1619578848649.png

 

Empty Table

mboomgaa_2-1619578902433.png

 

1 ACCEPTED SOLUTION

@Anonymous , with Range I doubt, but with Measure color and use that in conditional formatting with field value option

 

Switch( true() ,

isblank([measure]) , "red" ,

[measure] =0 , "Yellow" ,

[measure] <10 , "Orange",

"green"

)

 

 

refer

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://www.youtube.com/watch?v=RqBb5eBf_I4

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

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , Create a measure

New measure = [measure] +0

And use this measure in coditional formatting 

 

I think in that case if should pickup 0 .

 

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

0 can be an acceptable and scorable value from the measure so I want it to actually format the empty value as a blank like it indicates it will in the settings.

Hi @Anonymous ,

 

Could you pls some sample data,or if possible ,your .pbix file would be better for us to test?

Remember to remove the confidential information.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Sampl;e data is not necessary. Just read slower. Pretty simple use case. 

@Anonymous , with Range I doubt, but with Measure color and use that in conditional formatting with field value option

 

Switch( true() ,

isblank([measure]) , "red" ,

[measure] =0 , "Yellow" ,

[measure] <10 , "Orange",

"green"

)

 

 

refer

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
https://www.youtube.com/watch?v=RqBb5eBf_I4

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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