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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
hmokkapati
Helper II
Helper II

Matrix - row total formula

Hello,

 

I have line items (rows) in a matrix and I would need the Total to be calculated differently for different line Items. For ex, it needs to add all monthly values for one and avg for others. This is a P&L sheet.
How can i achieve this? Is there any other visualization for this instead of Matrix?

 

Below is a screen shot of the same. Kindly advise.

 

Thank you,

Harisha

 

matrix line items formula.PNG

1 ACCEPTED SOLUTION

Bhavesh and Angelia, thanks for your response.

 

For now, i got around the problem by getting the Yearly totals from the source itself. This is being calculated in the source data so i am able to pull it in.

 

But surely would like to know how such requirements (P&L items) are handled in Power BI. Looks like there is better control in excel as we can manipulate (even in terms of formatting) at cell level once the pivot table is placed on the sheet.

 

Thank you,

Harisha

View solution in original post

6 REPLIES 6
v-huizhn-msft
Microsoft Employee
Microsoft Employee


@hmokkapatiIn Power BI Desktop, the data field you put in Values pane will be aggregated in “Total” column. We can only specify one aggregation type. It’s not possible to specify a dynamic aggregation type for same field.

Best Regards,
Angelia

Bhavesh and Angelia, thanks for your response.

 

For now, i got around the problem by getting the Yearly totals from the source itself. This is being calculated in the source data so i am able to pull it in.

 

But surely would like to know how such requirements (P&L items) are handled in Power BI. Looks like there is better control in excel as we can manipulate (even in terms of formatting) at cell level once the pivot table is placed on the sheet.

 

Thank you,

Harisha

Anonymous
Not applicable

 

 

We have exactly the same the same requirement with different measures in each row in matrix and we need row wise total at the end column. Can we acheive it in Power BI?

BhaveshPatel
Community Champion
Community Champion

Hi Harisha,

 

For the exact solution of your problem, please visit this blog post from Rob Collie which will give you more ideas on creating such grand totals. 

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.
dchager
Regular Visitor

Have you ever used a pivot table for this? If not possible, it is unlikely that row total can be done in Power BI desktop.

Thanks for your reply.

 

By pivot, you mean in excel right? Our customer has requirement for both excel and PowerBI. Not sure how to achieve this for Matrix in Power BI.

 

 

Thank You,

Harisha

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.