Forum Discussion
Conditional Formatting on Blank Matrix Cells
Anonymous , Based on what I got. Try a measure like
format =
SWITCH (
TRUE (),
isblank(SUM(Append1[PDQ] )) && isblank((SUM(Append1[PDQ] ),DATEADD(Append1[MinDate],-7,DAY))) ,"red",
SUM(Append1[PDQ] )< CALCULATE (SUM(Append1[PDQ] ),DATEADD(Append1[MinDate],-7,DAY)), "pink",
SUM(Append1[PDQ] )> CALCULATE (SUM(Append1[PDQ] ),DATEADD(Append1[MinDate],-7,DAY)),"lightgreen")
Thank you for your prompt response! I tried this but its not working (I think you meant to add CALCULATE as well so I edited that in):
- amitchandak5 years agoSuper User
Anonymous , ok got, if the value is blank, conditional formatting will not work
change you measure with +0 (which you have used on values and then add condition for that [measure]=0 in the color
Asumme you are displaying SUM(Append1[PDQ])
use measure 1 =SUM(Append1[PDQ])+0
SWITCH (
TRUE (),
[measure 1 ]=0 "red",
SUM(Append1[PDQ] )< CALCULATE (SUM(Append1[PDQ] ),DATEADD(Append1[MinDate],-7,DAY)), "pink",
SUM(Append1[PDQ] )> CALCULATE (SUM(Append1[PDQ] ),DATEADD(Append1[MinDate],-7,DAY)),"lightgreen")- Anonymous5 years agoNot applicable
Its still not working unfortunately. for example I need this column to be highlighted red. So the first blank after a value:
Also is there anyway to remove the conditional formatting from the first week?