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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Manikanta2108
Helper I
Helper I

Background Colour - conditional formatting

Instead of whole background of cell i want to apply background for number only, How can i do that? and here C, H, M, L, I are my measures(values field) in matrix visual

Manikanta2108_0-1759931945644.png

 

 

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @Manikanta2108 

 

Irwan_0-1759966052908.png

 

H Color =
IF(
    not ISBLANK(SELECTEDVALUE('Table'[H])),
    "#FF0000"
)
 
This should be color any row with no blank value.
 
Hope this will help.
Thank you.

View solution in original post

8 REPLIES 8
Irwan
Super User
Super User

hello @Manikanta2108 

 

Irwan_0-1759966052908.png

 

H Color =
IF(
    not ISBLANK(SELECTEDVALUE('Table'[H])),
    "#FF0000"
)
 
This should be color any row with no blank value.
 
Hope this will help.
Thank you.

Hi @Manikanta2108 ,
Thanks for reaching out to the Microsoft fabric community forum. 

 

I would also take a moment to thank  @Irwan  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I hope the below details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team  

 

Hi @Manikanta2108 ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team.

Hi @Manikanta2108 ,

I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We’re always here to support you.

Best Regards, 
Community Support Team.

grazitti_sapna
Super User
Super User

Hi @Manikanta2108,

 

there is no such conditional formatting available, but you can try below DAX add it to background color of the cell, you can tweak the esle part of if as per your requirement

 

BG_Color_C =
SWITCH(
TRUE(),
ISBLANK([C]), "#FFFFFF",
[C] > 100, "#FF9999",
[C] > 50, "#FFFF99",
"#99FF99"
)

🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
🔗 Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!

tried the above dax you provided its not working for me.

 

Royel
Solution Sage
Solution Sage

Hi @Manikanta2108 in power bi when you apply background conditional formatting, the entire cell gets colored. For now you can consider it as a limitations of power bi.

 

However you can do the same things by appling same conditional formatting for font color.

 

Thanks 

raisurrahman
Advocate I
Advocate I

@Manikanta2108 : very interesting requirement. I never think in this way.

2025-10-08_20-26-58.png
I will try to give it a try when I have got time

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