Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
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
Hi,
Is there a way where the following can be achieved: (I have looked and tried other methods but cannot specifially get this to work)
For example:
How can I colour code the background so that for -3 (column), it will always be red as shown below or for anything above 0 to go green? (as below)
Sales Team Data
Many Thanks.
Solved! Go to Solution.
Hi @windoz ,
Here's my original data table:
Then, create a measure like this:
Background_color =
IF(
MAX(Sheet4[Column]) < 0,
"red",
"green"
)
Then, do like this:
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @windoz ,
Here's my original data table:
Then, create a measure like this:
Background_color =
IF(
MAX(Sheet4[Column]) < 0,
"red",
"green"
)
Then, do like this:
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for making time to look at my issue and respond.
Your solution works, much apprecited!
Hi @windoz
There is a lot of functionality to set background by rule. See here https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting Color by rules section and if you will have problem let us know.
You can choose Based on field: Sales team and Summarization: Sum parameters
do not hesitate to give a kudo to useful posts and mark solutions as solution
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 59 | |
| 31 | |
| 25 | |
| 25 |