Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!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!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 39 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 82 | |
| 34 | |
| 29 | |
| 25 |