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
TrentS
Advocate II
Advocate II

Conditional Formatting of a measure in a table

Hi Community,

 

I have a multi-column table (values and measures) and I am trying to apply conditional font formatting by a rule to one column which is a measure. It works...partially and I can't seem to reason out why. Attached is a snip of the results and the rule conditions. Essentially green for 100%, Yellow for 90-99%, and red below 90%. The measure is formatted as a percentage.

As you can see, it applies the yellow to one value in the range 90-99 but not to the others.

 

Same thing if I move to icons.

Any thoughts here?Font rulesFont rules

4 REPLIES 4
Greg_Deckler
Super User
Super User

That's pretty odd. Curious what would happen if you based it on decimal numbers instead of Percent, so 1, .90, .99, etc.

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for the suggestion Greg.

I made the switch to both the measure (decimal number format) as well as changing the rules to decimals and "number". I got the same result as my original.

However!!

As I started switching it back, I changed the measure back to % and they appeared correctly! Note that I did NOT change the rule set from decimals and 'Number"!

 

Like you said, odd behavior.

Thank you for the response.

 

Conditional Font2.PNG

Ah, potentially mystery solved, it is the percent of the range of your data, so perhaps you have some data that is > 100% essentially? Watch the video here:

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2019-feature-summary/#percentRules

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

So weird...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.