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

Dividing Matrix row Grandtotal by every row to get a % of the Grandtotal

Hello All,

I have been stumped on this issue for a few days.  It appears when I try to write a measure in which I intend to incorporate the Grandtotal, I am instead referencing one of the section totals as per below.  My intention was to have every row in the column divide by the grandtotal even the subtotals so the underlined in blue grandtotals would = 100%.  

Here is the formula I am currently using, any suggestions would be greatly appreciated 🙂  Have a great day!

 

% of grandtotal test = DIVIDE(
SUM('csv'[TradeCount]),
CALCULATE(SUM('csv'[TradeCount]), ALL('csv'[TradeType]))
)

 

Davidbzyk_0-1649092092254.png

 

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Assuming that 'csv[Trade type] is the column which is in the rows, you would also need to remove the filters on whichever column the Yes / No is coming from, e.g. ALL('csv'[Yes / no])

View solution in original post

5 REPLIES 5
johnt75
Super User
Super User

Assuming that 'csv[Trade type] is the column which is in the rows, you would also need to remove the filters on whichever column the Yes / No is coming from, e.g. ALL('csv'[Yes / no])

Anonymous
Not applicable

Thanks for the reply!.. I think I got what you are saying and this is the reformulated logic and the result.  Any thoughts?  

% of grandtotal test = DIVIDE(
SUM('csv'[TradeCount]),
CALCULATE(SUM('csv'[TradeCount]),
ALL('csv'[TradeType]),
ALL('csv'[P-BK Trade])
 
))
Anonymous
Not applicable

sorry forgot the output:

Davidbzyk_0-1649184402182.png

 

That looks correct. It seems to be indicating that you have rows which do not fall in to either Yes or No.

Anonymous
Not applicable

You are correct my friend.  Thank you so much!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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