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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Conditional Formatting did not show Color Background based on Rule set

Dear all, 

 

I would like to make a conditional formatting on background based on percentage of Total Data, as below:

 

billysagala_0-1616609674534.png

But the background color did not show as expected. 

 

billysagala_1-1616609728879.png

 

Even 7, with percentage of 2.8% are showing darker red when it should be light red. Is there anyway i can make the visualization align with the color coding?

 

Thank you 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Anonymous 

The values in your visual are whole numbers (not percentages). So try changing the expression to "Number" (instead of "Percent") in the conditional formatting expressions

If you want to format based on a percentage, you need to include the % measure in the visual instead of the whole number





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@Anonymous 

The values in your visual are whole numbers (not percentages). So try changing the expression to "Number" (instead of "Percent") in the conditional formatting expressions

If you want to format based on a percentage, you need to include the % measure in the visual instead of the whole number





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

One of the reasons might be in case you selected the wrong measure.

Or, please share the sample pbix file, then I can try to have a look.

Thank you.

 

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

 


 

    Microsoft MVP
 

 

   


      If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


   


     
        LinkedInVisit my LinkedIn page
     

   


   


     
        Outlook BookingSchedule a short Teams meeting to discuss your question

     

   


 


Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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