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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
stein97
Frequent Visitor

Conditional Formatting not updating when using a Percent Slicer.

I have a table with a column that I am calculating a percent based on 2 other columns.

Here is the calculation:

if [MAXSCORE] <> null and [MAXSCORE] <> 0 then Number.ToText(Number.Round(([CURRENT SCORE] / [MAXSCORE]) * 100, 2), "0.00") & "%" else null

 

Here is the Conditional Formatting:

 

stein97_0-1685539488311.png

Issue:

When the slice is moved to .99% the Conditional Formatting no longer represents the correct coloring.

 

If the % is greater than 51.99 the color should be green

 

stein97_4-1685539739702.png

 

Here is the screenshot with the Percent Slice at 99%, the bottom 2 values which are not greater than 51.99 turn green

 

stein97_5-1685539764779.png

Any thoughts on the issue?

 

Thank 

 

 

 

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @stein97 ,

 

The Percente value on the condittional formatting is not used for "percentages calculations" this is for the a percentage of the data you have so the top 50% would have a certain color and the rest another color. To have this matching your metric you need to use a decimal and select the option number so you woul need to set

0.0 - 0.4899

0.499 - 0.5199

0.52 - 1

 

Allof this must be set has number in the conditional formatting screen.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

You can keep everything has a percentage except for the conditional formatting, because it uses the raw data and not the formarted one.

 

 

The percentage of data is only on the conditional formating on the other visualizations % is a format and works properly. 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @stein97 ,

 

The Percente value on the condittional formatting is not used for "percentages calculations" this is for the a percentage of the data you have so the top 50% would have a certain color and the rest another color. To have this matching your metric you need to use a decimal and select the option number so you woul need to set

0.0 - 0.4899

0.499 - 0.5199

0.52 - 1

 

Allof this must be set has number in the conditional formatting screen.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Miguel Félix,

OK that explains the Slicer issue!

If I change the Table to a decmial instead of a percentage this will resolve my issue? Or is the Slicer always a percentage of the data in the whole table?

 

thanks

You can keep everything has a percentage except for the conditional formatting, because it uses the raw data and not the formarted one.

 

 

The percentage of data is only on the conditional formating on the other visualizations % is a format and works properly. 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



That worked!!!

 

 

Thanks!

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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