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

Grand total not applying correctly to all rows in a matrix table

Hi everyone!

 

I work with a non profit for a project and I was given a task of creating a dashboard based on some data they supplied. Below is a screenshot to help explain my issue. I have a calculations (''theorectical fairshare') that is a calculations of the grand total of this date range (1,160,901) x ('Fairshare %). As you can see, the grand total created works for the branches (durham, greenville, New bern, ect) but I should have the same grand total for the counties (chatam, orange, ect) that are drilled down from this matrix table to be used in the very same calculations. The grand total dyanmically changes depending on the date filter as well. This is how I calculated the grand total :

Grand Total Meals = CALCULATE([Total Meals Test], ALL('Food Insecurity'[Branch]))
Total Meals Test =
SUM('Fairshare Access TBL'[KC_Total_Meals]) + SUM('Fairshare Access TBL'[SP_Total_meals]) + SUM('Fairshare Access TBL'[WPP_Total_Meals])

jcgunawan_0-1647871589797.png

 

To reiterate, the whole grand total meals should be the same number regardless if I drill down to lower level of rows. Am i writing my dax expression wrong?

 

1 REPLY 1
davehus
Memorable Member
Memorable Member

Hi @Anonymous, Take the branch out of the all clause and see if that works. This will return the total the entire table regardless of drill down.

 

All(Food Insecurity) 

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 Kudoed Authors