Conditional Formatting not showing correct color

jagdish_shetty

New Member
Joined
Mar 9, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi Friends,

I have a set of data in which I have to compare the KPI achieved in any given week against a set KPI. I have used the below formulae for the same
Color KPI =
SWITCH(
TRUE(),
'All Data'[KPI (PD)]<'All Data'[PD],"#ff0000",
'All Data'[KPI (PD)]>'All Data'[PD],"#009900",
"FFFF00"
)

but when i used it in a column chart the columns are still green when it should have been green. in the below image for week 4,the KPI for CSA is 20 and team achieved 18 still its green
1615278912162.png

while for wk 5 it populated correctly
1615279510060.png

can anybody please let me know as to what did i miss


thanks in advance
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,723
Messages
6,174,123
Members
452,546
Latest member
Rafafa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top