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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
natasha519
Helper II
Helper II

How to calculate proportion

Hello,

I am using a matrix to create a heat map (used conditional formatting for background) so each cell has a different number of documents. How can I show the proportion as well? For example in this one cell, 196/13621 so 1.43% to show up in the tooltip? But this percentage will obviously change when you hover over other cells since numerator will be different. Screenshot below for reference

 

 

natasha519_0-1649428683756.png

 

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @natasha519 

 

Assume you use Count aggregation to get 196 and 13621, you can create a measure like below to calculate the proportion. Then use the report tooltip page feature to display this measure along with other tooltip fields. 

proportion =
DIVIDE (
    COUNT ( 'tablename'[Documents] ),
    CALCULATE ( COUNT ( 'tablename'[Documents] ), ALL ( 'tablename' ) )
)

 

For visuals that have Tooltips well, you can put a measure into this well easily. However Matrix doesn't have this well, so you need to create a custom tooltip page for it. 

vjingzhang_0-1649751371142.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

mussaenda
Super User
Super User

Hi @natasha519 ,

 

If I understood you correctly, you want the percentage to show on the data?

You can put again the value and the right click, show value as then choose percent of grand total

 

Hope this helps

I tried this, but am not sure what it is showing the percent of grand total of. When I divide the number that's currently displaying by total I am not getting the correct percentage 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors