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

Conditional Formatting Percent of Column Totals in a Matrix

I have a matrix visual and I have set "Show Value as" to "Percent of column total" and then applied Conditional Formatting. It looks nice. But it is wrong. It appears to me that the conditional formatting is using the underlying Count of the field as the driver for the conditional formatting (and not the column percentage values).

>>> How do we get the matrix to display the correct formatting? <<<

Is there a way to do this without creating a measure?

comish4lif2_0-1648046126547.png

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

It doesn't look like the percentage versions of the calculation are an option in the conditional formatting settings so you'll need to define a measure that gives the percentage of column total.

 

Such a measure would look like this:

DIVIDE (
    COUNT ( Table1[Value] ),
    CALCULATE ( COUNT ( Table1[Value] ), ALL ( Table1[Column1] ) )
)

where [Column1] is whatever you're using for your row headers in the visuals.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

It doesn't look like the percentage versions of the calculation are an option in the conditional formatting settings so you'll need to define a measure that gives the percentage of column total.

 

Such a measure would look like this:

DIVIDE (
    COUNT ( Table1[Value] ),
    CALCULATE ( COUNT ( Table1[Value] ), ALL ( Table1[Column1] ) )
)

where [Column1] is whatever you're using for your row headers in the visuals.

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.