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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MasonGogoll
Regular Visitor

Totals not aligning - Aggregation issues?

Hello everyone,

 

I'm having some trouble here with how the totalling works within PowerBI.

 

The main point: When i export the dataset from the matrix widget and perform totals to the columns I get different and the right answers that I want. However, within PowerBI i get the wrong totals.

 

Essentially my aim is to measure client growth y-o-y but cutting out all the clients that were lost. To do this we are performing a calculation:

("Current period: retained client spend" - Demoninator) /

"Prior period: ONLY retained client spend that exist within "Current Period: retained client spend""

 

When we delineate out to client rows we are succesffully catching the Prior Year revenue in a LIKE4LIKE fashion. However, when it aggregates to the total at the bottom it is simply the same as the normal year on year total.

 

When I export the data under this widget into excel and perform sums on columns it is getting different totals to what is being expressed in the powerbi matrix widget. it is also expressing the correct answers I want!

 

PLEASE HELP

 

Picture of same dataset in excelPicture of same dataset in excelPicture of matrix in PowerBIPicture of matrix in PowerBI

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @MasonGogoll ,

If I understand your scenario correctly that the total is not correct when you create the matrix in excel with the dataset in power bi?

By my tests with the latest version of power bi, I cannot reproduce your issue.

Capture.PNG

If it is convenient, could you share a simple data sample which could reproduce your scenario so that we could have a test on it?

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-piga-msft Cherry,

 

Thanks for getting back to me. I am trying to upload a file but it doesn't seem like I can. I am assuming there is something wrong with the dax I am using though. It appear that on a client level the dax works correctly. I have provided a screenshot below. Ou can see when know values exist in columns C + D (current period) it ignores the amounts in columns E + F (prior period) and returns a like for like value of 0 in columns G + H. However, on aggregate we can see that the totals are the same in the PowerBI matrix widget and different in the excel version???

Screenshot of excel matrix.PNG

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.