Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Pklu
Frequent Visitor

Custom Formatting

I have a table with the following fields and values:

 

Projected AmountActual AmountVarience
$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.

 

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Is your variance amount from a measure?

You would just apply the rules like this to the background of the Variance field:

jdbuchanan71_4-1742867367707.png

 

jdbuchanan71_2-1742867207670.png

 

 

View solution in original post

5 REPLIES 5
ArwaAldoud
Super User
Super User

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

ArwaAldoud_0-1742868462402.png

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?

jdbuchanan71
Super User
Super User

Is your variance amount from a measure?

You would just apply the rules like this to the background of the Variance field:

jdbuchanan71_4-1742867367707.png

 

jdbuchanan71_2-1742867207670.png

 

 

jdbuchanan71
Super User
Super User

@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 AmountActual AmountVarience
$45$50-$5
$150$50$100
$400$600-$200
$165$200-$35
$75$50$25
$450$500-$50

 

To this

 

sampleresult.jpg

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.