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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
suvechha
Helper IV
Helper IV

Back ground format color not working ?

Hi there ,

 Back ground format color not working ?

My measure

Admitted ETP Breaches7Days has percent format , like below

the measure is -

 

Admitted ETP Breaches7Days
= DIVIDE(CALCULATE(SUM(ED[Numerator]),FILTER(MasterCalendar,MasterCalendar[Last_n_days]>=1), FILTER(MasterCalendar,MasterCalendar[Last_n_days]<=7)) ,CALCULATE(SUM(ED[Denominator]),FILTER(MasterCalendar,MasterCalendar[Last_n_days]>=1), FILTER(MasterCalendar,MasterCalendar[Last_n_days]<=7))
)

 

suvechha_1-1638161196696.png

 

I am trying to format the back ground color like , but its not working ?

if the percent is from 0-75 then red

76 - 80 the amber

81- 100 the green.

suvechha_0-1638161130791.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @suvechha ,

 

I think you have misunderstood the meaning of percentage here.

When you select Percent in this dropdown, you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum. So, for example, if the lowest data point was 100 and the highest was 400, the above rules would color any point less than 200 as green, anything from 200 to 300 as yellow, and anything above 300 as red.

An example table with rules-based background color formatting based on Percent in the Affordability column looks like this:

vstephenmsft_0-1638428883595.png

vstephenmsft_1-1638428890751.png

 

In your case, you should set as

vstephenmsft_2-1638429132162.png

 

For details, please kindly refer to

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @suvechha ,

 

I think you have misunderstood the meaning of percentage here.

When you select Percent in this dropdown, you’re setting the rule boundaries as a percent of the overall range of values from minimum to maximum. So, for example, if the lowest data point was 100 and the highest was 400, the above rules would color any point less than 200 as green, anything from 200 to 300 as yellow, and anything above 300 as red.

An example table with rules-based background color formatting based on Percent in the Affordability column looks like this:

vstephenmsft_0-1638428883595.png

vstephenmsft_1-1638428890751.png

 

In your case, you should set as

vstephenmsft_2-1638429132162.png

 

For details, please kindly refer to

Conditional table formatting in Power BI Desktop - Power BI | Microsoft Docs

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.