Forum Discussion
Compare a measure with column values and conditional format
- 7 years ago
Hey,
from my understanding you should rewrite the measure like so:
Conditional_Value = If(HASONEVALUE('Table A'[NAME]), IF( [Current_Value]>SUM('Table B'[HI HI (red)]) , "#FF0000" , "#008000" ) )Regards,
Tom
Hi Tom,
ConditionalTest.pbix
Please find the link attached.
Just to show what I am trying, here is a DAX that is giving me syntax error:
Hey,
from my understanding you should rewrite the measure like so:
Conditional_Value = If(HASONEVALUE('Table A'[NAME]),
IF(
[Current_Value]>SUM('Table B'[HI HI (red)])
, "#FF0000"
, "#008000"
)
)
Regards,
Tom
- Anonymous7 years agoNot applicable
My god! That was literally my first attempt, but I was formatting it incorrectly!! Thank you so much!!
- TomMartens7 years agoSuper User
:smileywink:
- Anonymous3 years agoNot applicable
OMG.. thank you so much TomMartens. I was trying to develop a flag so I could use the Cell elements, conditional formatting and it worked!!! However, I changed the color hex # w/text "1 & 2 ", I have been searching for weeks...
Can this be a nested for a # 3 if I have blank cells I would like no icon or color???RATE_WP = IF(HASONEVALUE('table'[TRGT]),IF([measure]>SUM('table'[TRGT]),"1","2"))And this resolved my issues, I cannot thank you enough...
Nanc