Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Team,
I have a matrix table as displayed below.
The Performance Column is a measure and the Target column is a column from the raw data.
When the Performance > Target I want the background to be red.
When the Performance < Target I want the background to be green.
Could anyone please help me out?
Thank you
| Measure | Column | |
| Year | Performance | Target |
| 2015 | 11 | 10 |
| 2016 | 8 | 9 |
| 2017 | 6 | 8 |
| 2018 | 4 | 7 |
| 2019 | 3 | 6 |
Solved! Go to Solution.
@TomMartens solved the issue in another post.
Conditional_Value = If(HASONEVALUE('Table A'[NAME]),
IF(
[Current_Value]>SUM('Table B'[HI HI (red)])
, "#FF0000"
, "#008000"
)
)
Thanks Tom!
@TomMartens solved the issue in another post.
Conditional_Value = If(HASONEVALUE('Table A'[NAME]),
IF(
[Current_Value]>SUM('Table B'[HI HI (red)])
, "#FF0000"
, "#008000"
)
)
Thanks Tom!
| User | Count |
|---|---|
| 44 | |
| 35 | |
| 30 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 65 | |
| 57 | |
| 40 | |
| 21 | |
| 20 |