This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Afternoon all,
I am pretty new to Power BI and have come a bit stuck when trying to format the text colour on columns in my report table.
Base Table = FACT_METRICS
Target colour is based on the metric definition (can be different for different metrics)
| METRIC | DATE | ACTUAL | TARGET | TARGET_MET |
| METRIC 1 | 22/10/2024 | 12 | 12 | Purple |
| METRIC 1 | 21/10/2024 | 8.2 | 12 | Green |
| METRIC 1 | 20/10/2024 | 12.5 | 12 | Red |
| METRIC 2 | 22/10/2024 | 6.8 | 6.5 | Green |
| METRIC 2 | 21/10/2024 | 6 | 6.5 | Red |
| METRIC 2 | 20/10/2024 | 7 | 6.5 | Green |
| METRIC 3 | 22/10/2024 | 6 | 4 | Red |
| METRIC 3 | 21/10/2024 | 3 | 4 | Green |
| METRIC 3 | 20/10/2024 | 4 | 4 | Green |
| etc... | etc... | etc... | etc... | etc... |
Report Table looks like... (Yesterday = 22/10/2024)
| METRIC | YESTERDAY | DAY -2 | DAY -3 |
| METRIC 1 | 12 | 8.2 | 12.5 |
| METRIC 2 | 6.8 | 6 | 7 |
| METRIC 3 | 6 | 3 | 4 |
| etc... | etc... | etc... | etc... |
I want to conditional format Yesterday, Day-2 and Day -3 font colour to equal the colour in the TARGET_MET column.
If I try to add condiitonal formatting to any of these columns based on rule TARGET_MET it looks for the First or Last so isnt returning the correct colour.
Any help is much appreciated!
Thank You.
Solved! Go to Solution.
Hi @leerjones85
You could create a measure for each defining the colour to return.
The code will be similar to your yesterday or -3day code.
Assign this as your Field value under the Background colour.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Hi @leerjones85
You could create a measure for each defining the colour to return.
The code will be similar to your yesterday or -3day code.
Assign this as your Field value under the Background colour.
If you are happy with this answer please mark as a solution for others to find !
Kudos are always appreciated! Check out our free Power BI video courses.
Thank You! 🙂
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 31 | |
| 23 | |
| 15 |
| User | Count |
|---|---|
| 76 | |
| 59 | |
| 31 | |
| 31 | |
| 25 |