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
PaulDBrown
Community Champion
Community Champion

Conditional Formatting a table: can someone confirm it's me?

Hi everyone,

 

I hope you and your family and friends are all safe and healthy in these difficult times.

 

I have suddenly come across a problem trying to format a table conditionally, and I really cannot work out what is wrong (probably something pretty dumb, but I can't "see" the issue. Basically I'm trying to format a value conditionally (I've tried backround colour, font colour and icons...) but there seems to be a problem, since the function only seems to recognise the first parameter. If this parameter isn't met, then the subsequent formatting seems to be ignored. (not sure if it a bug)

 

Here is a screenshot:

 

Prob.jpg

Can aynone shed any light?

 

Thanks.





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.






1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @PaulDBrown 

Please refer to red part of this document:

Considerations and limitations

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

  • Conditional formatting applies only to the values of Table or Matrix visuals, and doesn't apply to any subtotals, grand totals, or the Total row.
  • Any table that doesn't have a grouping is displayed as a single row that doesn't support conditional formatting.
  • You can't apply gradient formatting with automatic maximum/minimum values, or rule-based formatting with percentage rules, if 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.

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#considerations-and-li...

 

Regards,

Lin

Community Support Team _ Lin
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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi  @PaulDBrown 

Please refer to red part of this document:

Considerations and limitations

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

  • Conditional formatting applies only to the values of Table or Matrix visuals, and doesn't apply to any subtotals, grand totals, or the Total row.
  • Any table that doesn't have a grouping is displayed as a single row that doesn't support conditional formatting.
  • You can't apply gradient formatting with automatic maximum/minimum values, or rule-based formatting with percentage rules, if 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.

https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#considerations-and-li...

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Pragati11
Super User
Super User

HI @PaulDBrown ,

 

Is there any default filter on your dashboard that is displaying only one value?

Can you share your .pbix file?

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.