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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
PBI_Rookie
Helper I
Helper I

Matrix conditional formatting- Blank values

Hello All,

 

I have been using the below to format values in a matrix. It works well except for null values I have in my table. I've tried a few things without success. Am I a firstnonblank  somewhere away from making this work?

 

Format =
VAR LowerLimitCheck = AVERAGE(Specifications[LSL])-AVERAGE(results[VALUE])
VAR UpperLimitCheck = AVERAGE(results[VALUE])-AVERAGE(Specifications[USL]) RETURN IF(LowerLimitCheck >0, "#f25a38", IF(UpperLimitCheck >0, "#f25a38", "#04bf9d"))
 
 
Thank you
1 ACCEPTED SOLUTION

Hi @PBI_Rookie ,

Sorry for replying late. Did the blank value not show in the matrix? If so, you need to create a seprate table for this column, create relationships between them and create a measure to + 0 to show:

Table = DISTINCT('Specifications'[V])
Measure = SUM('Table'[V]) + 0

Now the conditonal format rule should work:

format.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
PBI_Rookie
Helper I
Helper I

Hello,

 

I tried what you suggested. I made one change from UpperLimitCheck to Lowerlimit check as that is where the null values  are(in red). I'm still seeing the same issue as before with flagging a null table value. Did I miss something in your suggestion?

 

Thank you

 

Format =
VAR LowerLimitCheck = AVERAGE(Specifications[LSL])-AVERAGE(results[VALUE])
VAR UpperLimitCheck = AVERAGE(results[VALUE])-AVERAGE(Specifications[USL]) Return IF(LowerLimitCheck >0,"#f25a38",SWITCH(TRUE(),ISBLANK(LowerLimitCheck),"#04bf9d", IF(UpperLimitCheck >0,"#f25a38","#04bf9d")
 
 

Hi @PBI_Rookie ,

Sorry for replying late. Did the blank value not show in the matrix? If so, you need to create a seprate table for this column, create relationships between them and create a measure to + 0 to show:

Table = DISTINCT('Specifications'[V])
Measure = SUM('Table'[V]) + 0

Now the conditonal format rule should work:

format.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@PBI_Rookie , Also add condition for blank

IF(LowerLimitCheck >0, "#f25a38",

Switch( True() ,

isblank(UpperLimitCheck) , "#04bf9d"

UpperLimitCheck >0, "#f25a38", "#04bf9d"))

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.