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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-stephen-msft
Community Support
Community Support

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
v-stephen-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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