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
diogobraga2
Helper IV
Helper IV

Conditional Formatting Based On Field Rules Not Working

The results are not matching conditional formatting rules. Why?

 

2019-11-26_1555.png

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

Hi @diogobraga2 ,
See my top picture, save your rule as decimals, and use number.  I forget why this works this way, but there is a reason.  Something to do with percentage meaning a percentage of all your values.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
cc2.PNG

 

cc.PNG

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
rleseberg
Frequent Visitor

Thank you. The decimal switch fixed my map as well.

Nathaniel_C
Super User
Super User

Hi @diogobraga2 ,
See my top picture, save your rule as decimals, and use number.  I forget why this works this way, but there is a reason.  Something to do with percentage meaning a percentage of all your values.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
cc2.PNG

 

cc.PNG

 





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

Proud to be a Super User!




It worked, thanks! Now, how do I make the same conditonal formatting apply to the total???

Hello @diogobraga2 ,
You are welcome! 
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting 

See below

Considerations and limitations

There are a few considerations to keep in mind when working with conditional table formatting:

  • Conditional formatting is applied only to the values of a Matrix visual, and does not apply to any subtotals or grand totals.
  • Conditional formatting is not applied to the Total row.
  • Any Table that does not have a grouping is displayed as a single row that doesn't support conditional formatting.
  • If you use gradient format with automatic max/min values or rule-based formatting with percentage rules, conditional formatting cannot be applied when your data contains NaN values. NaN means 'Not a number', most commonly caused by a divide by zero error. You can use the DIVIDE() DAX function to avoid these errors.




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

Proud to be a Super User!




Thanks for sharing, are you aware of any workarounds or tricks to fix this? The total in this dataset represents schools, and I need to find a way to flag it as well. 

 

2019-11-26_1801.png

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.