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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a table with the following fields and values:
| Projected Amount | Actual Amount | Varience |
| $45 | $50 | -$5 |
| $150 | $50 | $100 |
| $400 | $600 | -$200 |
| $165 | $200 | -$35 |
| $75 | $50 | $25 |
| $450 | $500 | -$50 |
I would like to have all the negative variences column background - RED and all the postive variences column background - GREEN.
Solved! Go to Solution.
Is your variance amount from a measure?
You would just apply the rules like this to the background of the Variance field:
Hi @Pklu
Since you only have two options (negative or positive), you can achieve this using a Color measure and applying it in Conditional Formatting:
- Go to Conditional Formatting → Background Color.
- In the "What field should we base this on?" section, choose Color.
- Use this measure:
Color =
SWITCH(
TRUE(),
ISBLANK(SELECTEDVALUE('Sheet1'[Varience])), "Gray",
SELECTEDVALUE('Sheet1'[Varience]) > 0, "Green",
SELECTEDVALUE('Sheet1'[Varience]) < 0, "Red",
"Gray"
)
Check the screenshot for more clarity
If this response was helpful, please accept it as a solution and give kudos to support other community members.
Is it possible to keep the formatting in excel while exporting in workspace?
Is your variance amount from a measure?
You would just apply the rules like this to the background of the Variance field:
@Pklu ,
You can apply conditional formatting to the field based on the value like this:
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting
I tried all that. They were the first things I did but it did not meet my expectations.
Looking for something like this:
| Projected Amount | Actual Amount | Varience |
| $45 | $50 | -$5 |
| $150 | $50 | $100 |
| $400 | $600 | -$200 |
| $165 | $200 | -$35 |
| $75 | $50 | $25 |
| $450 | $500 | -$50 |
To this
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 55 | |
| 42 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 113 | |
| 105 | |
| 39 | |
| 35 | |
| 26 |