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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Help conditional formatting %CT (percent of column totals)

I've searched all over the place and haven't figured out how to conditionally format values based on % of column totals in my matrix table.  I thought this would be simple!  I just would like to highlight anything 5% or greater.  Can anyone help?

1 ACCEPTED SOLUTION

hi, @Anonymous 

Please just change the "Percent" to "Number" in the drop-down under Rules

13.JPG

 

The way the "Percent" conditional formatting works is different than you think, it doesn't have anything to do with percent of total. It take the lowest and hightest displayed amounts and uses those to determine the formatting bands based on the Percent you entered so your table is looking at these numbers to apply the formatting.

 

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

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could use this logic to create a %CT (percent of column totals) measure

percent of column totals = 
DIVIDE (
    CALCULATE ( SUM ( 'Table'[Qty] ) ),
    CALCULATE ( SUM ( 'Table'[Qty] ), ALLSELECTED ( 'Table'[YEAR(Rews)] ) )
)

8.JPG

Then use this formula to conditional formatting the matrix

9.JPG

and in my simple sample pbix file, I would like to highlight anything 50% or greater

10.JPG

 

 

and here is sample pbix file, please try it.

 

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.
Anonymous
Not applicable

Capture.PNGCapture2.PNG

Here's the visual of what I'm seeing.  Notice how many of the highlighted values are less than 5%.  I would just like to highlight those that are 5% or higher.

hi, @Anonymous 

Please just change the "Percent" to "Number" in the drop-down under Rules

13.JPG

 

The way the "Percent" conditional formatting works is different than you think, it doesn't have anything to do with percent of total. It take the lowest and hightest displayed amounts and uses those to determine the formatting bands based on the Percent you entered so your table is looking at these numbers to apply the formatting.

 

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.
Anonymous
Not applicable

That worked!  Thanks!

Anonymous
Not applicable

Thanks, Lin.  However, when I create the rule to highlighted anything greater than or equal to 5%, it highlights many numbers less than 5% as well.  I would send a screen shot but not sure what to enter in the source fields, dimensions, etc.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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