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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Klanger1969
New Member

Conditonal formatting for percentages

Hello,

 

I am trying to conditionally format a percentage cell with the following rules:

 

Less than or equal to 50, the cell fills with red

Greater than 50, the cell fills with green

 

I have added these condtions using this set up:

Screenshot 2024-04-06 at 6.48.26 PM.pngScreenshot 2024-04-06 at 6.47.59 PM.png

 

It works when the first set of data is entered and the percentage is calculated. As more data is entered it never changes when it moves from one to the other.  Stays the original color even if the percentage shown should make it the opposite color.

 

Thanks,

 

Kent

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Klanger1969 

 

This forum is for Power BI, but I can help anyway.

 

You'll need to create 2 rules like so

 

cfrulex.png

 

In that image my data is in the range B3:B8.  The rules state that if the value in B3 >= 0.5 then fill the cell red.  If the value in B3 > 0.5 then fill it green.

 

CF rules are peculiar and hard to understand.  In this case my rules only seem to be checking the value in B3 but it actually applies to the whole data range B3:B8.

 

Check this example Excel file and look at the rules I created.

 

This blog might help too : Excel Conditional Formatting with a Formula

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @Klanger1969 

 

This forum is for Power BI, but I can help anyway.

 

You'll need to create 2 rules like so

 

cfrulex.png

 

In that image my data is in the range B3:B8.  The rules state that if the value in B3 >= 0.5 then fill the cell red.  If the value in B3 > 0.5 then fill it green.

 

CF rules are peculiar and hard to understand.  In this case my rules only seem to be checking the value in B3 but it actually applies to the whole data range B3:B8.

 

Check this example Excel file and look at the rules I created.

 

This blog might help too : Excel Conditional Formatting with a Formula

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thanks Phil, I really appreciate the help despite me being in the wrong forum. Much appreciated.  I think I have it sorted out.

 

Regards,

 

Kent 

TomMartens
Super User
Super User

Hey @Klanger1969 ,

 

I'm wondering about the screenshots. Is this Excel, and do you use it as a reference for us as you want to have the same when working in Power BI?

Then, I also have difficulties to understand what you mean by "... As more data is entered, it never changes ..."
Please provide more context, like what system your are using Excel or Power BI Desktop, and also provide sample data that contains the "initial data" but also " ... as more data is entered ...".

 

Provide the expected result based on the sample data you provide.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Hi Tom,

 

This is my first time using this forum (or any forum) to ask a question like this.  I may be in the wrong forum, if this is not for Excel questions.

 

I am using Excel and only Excel.  I have a column that calculates Weekly Win Percentage.  I would like the cells in that column to auto fill with either red or green based on the win percentage.  50% or below, I would like red, above 50% I would like green.

 

I haven't been able to get that to work with any of the conditional formatting that I have tried.  Hopefully that simplifies my question.  Thank you for your help!

 

Kent

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.