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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Divide values of one column by the total of a different column

I would like to add columns that take different subtotals for one location and divide by the total for that location in the format of percentage. See images for dataset and example

 

simteron_0-1679706575677.png

simteron_1-1679706614378.png

 

2 REPLIES 2
halfglassdarkly
Responsive Resident
Responsive Resident

Try creating a new measure as below, and adding as a second Values field in your matrix table:

 

Percentage = 

DIVIDE(
       CALCULATE(COUNT('BAML Checks'[Location]),
                 ALLEXCEPT('BAML Checks','BAML Checks'[Location],'BAML Checks'[Age Bucket]),
       CALCULATE(COUNT('BAML Checks'[Location]),
                 ALLEXCEPT('BAML Checks','BAML Checks'[Location]),
0)

 

 I don't think there is a way to hide the total % in a matrix table without hiding the count total, so you will end up with a % total of 100% for each row. If that's an issue you might need to build this using a standard Table visual with measures for each column.

amitchandak
Super User
Super User

@Anonymous , for that you to have add an additional row to your dimension or use an extended dimension

 

Check how custom totals added here

Power BI How to get the P&L formatting right: https://youtu.be/C9K8uVfthUU

 

https://medium.com/microsoft-power-bi/power-bi-formatted-p-l-with-custom-sub-totals-and-blank-rows-e39ca822908a

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors