Conditionally format percentage values in card visual

djemy1975

Board Regular
Joined
Jan 18, 2016
Messages
51
Hi colleagues,

I have a card visual displaying data in percentages .What I want is to display values in different colors on condition ,like that:
1 -When value is greater than or equal to -15% ----- font color "Red"
2- When value is less than -15% and greater or equal to -1% -----font color "Orange"
3- When value is greater or equal to 0% -----font color "Green"


I have played much time on color rules ,but in vain. Could someone give me the right choice.

Best regards,
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I'm not sure if card visuals have special formatting requirements, but here's one way to solve this with a series of conditional formatting rules.

First highlight the group of cells you want to format, then go into the conditional formatting function.
Here are the rules (I assume this is what you mean - LESS than or equal to -15%, right?)

=IF(K18>=0,"true","false") (set format to green and use the "stop if true" checkbox)
=IF(K18<=-15,"true","false") (set format to red)
=IF(K18<=0,"true","false") (set format to orange)

Here are some sample results I'm getting
1617153016149.png
 
Upvote 0
I'm not sure if card visuals have special formatting requirements, but here's one way to solve this with a series of conditional formatting rules.

First highlight the group of cells you want to format, then go into the conditional formatting function.
Here are the rules (I assume this is what you mean - LESS than or equal to -15%, right?)

=IF(K18>=0,"true","false") (set format to green and use the "stop if true" checkbox)
=IF(K18<=-15,"true","false") (set format to red)
=IF(K18<=0,"true","false") (set format to orange)

Here are some sample results I'm getting
View attachment 35636
Hi Switters123,

My problem is related to POWER BI formatting rules and not excel
Screenshot 2021-03-31 123810.png


Thanks,
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,108
Members
452,544
Latest member
aush

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