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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jdubs
Helper V
Helper V

Color coding Sales Quotas in table

Are there any good tutorials out there or can someone explain how to use conditional formatting to color code a column of Sales history against a Quota column? I tried using Gradient but am getting varied results.

 

I would like the Sales value to turn green when a person is within say 85% of their goal. Yellow when it is between 40-75. And red if it is below 40% of the target value.

 

SalesTarget
$25,000  (Yellow)$50,000
$95,000 (Green)$100,000
$10,000 (Red)$75,000
1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @jdubs I created 3 measures, 2 are simple sum

MeasureSales = SUM(Sheet23[Sales])
MeasureTarget = sum(Sheet23[Target])

and third is 

%KPI =
    DIVIDE([MeasureSales],[MeasureTarget])
Adjust Sheet23 to your Table name. Rules for conditional formating shown on picture below. I hope this help.

 

some_bih_0-1686821873723.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

4 REPLIES 4
jdubs
Helper V
Helper V

Thank you. 

some_bih
Super User
Super User

Hi @jdubs I created 3 measures, 2 are simple sum

MeasureSales = SUM(Sheet23[Sales])
MeasureTarget = sum(Sheet23[Target])

and third is 

%KPI =
    DIVIDE([MeasureSales],[MeasureTarget])
Adjust Sheet23 to your Table name. Rules for conditional formating shown on picture below. I hope this help.

 

some_bih_0-1686821873723.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






jdubs
Helper V
Helper V

Thanks. I think I need to add a measure that is the percentage of the target value and then color code the Sales column using this value. 

some_bih
Super User
Super User

Hi @jdubs check official tutorial https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting  I hope this help





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors