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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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