This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 23 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 46 | |
| 19 | |
| 18 | |
| 18 |