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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Swathi1
Helper I
Helper I

How to display Row level totals in the grid

I have posted sample data in below, here my question is I want to show each metric level legend and totals in the grid at the bottom(Row level). How can I achieve this requiremnt. If we add sub totals option in BI we can get totals but each metric level I am not getting.

Can any one please help me out.

Territory Metric3/1/20253/2/20253/3/20253/4/2025Totals
ASales345719
 Profit 11024
 Loss00202
BSales426921
 Profit 01023
 Loss00202
CSales354315
 Profit 03126
 Loss10001
TotalSales10111519 
 Profit 1516 
 Loss1040 
1 ACCEPTED SOLUTION

Hi @Swathi1,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

 

Power BI doesn't show child-level subtotals by default. 

 

but as an alternative You can check below solution

 

 

I’ve tried to reproduce the scenario using the DAX below. Please review and adjust it according to your data source. If the issue still persists, feel free to share more details, and we’ll be happy to assist further.

 

Unpivot the date columns in Power Query.

then create a measure like

MetricTotal =
IF (
SELECTEDVALUE('Table'[Territory]) = "Total",
CALCULATE(SUM('Table'[Value]), ALL('Table'[Territory])),
SUM('Table'[Value])
)

 

If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

 

Best regards,
Prasanna Kumar

View solution in original post

9 REPLIES 9
v-pgoloju
Community Support
Community Support

Hi @Swathi1.,

 

Just a gentle reminder  has your issue been resolved? If so, we’d be grateful if you could mark the solution that worked as Accepted Solution, or feel free to share your own if you found a different fix.

This not only closes the loop on your query but also helps others in the community solve similar issues faster.

Thank you for your time and feedback!

 

Best,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @Swathi1,

 

We wanted to kindly check in to see if everything is working as expected after trying the suggested solution. If there’s anything else we can assist with, please don’t hesitate to ask.

If the issue is resolved, we’d appreciate it if you could mark the helpful reply as Accepted Solution  it helps others who might face a similar issue.

 

Warm regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @Swathi1,

 

Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.

If the response addressed your query, kindly mark it as Accepted Solution and click Yes if you found it helpful  this will benefit others in the community as well.

 

Best regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @Swathi1,

 

Thank you for reaching out to the Microsoft Fabric Forum Community.

 

Swap the Row Order like Put Metric first, then Territory in the Rows of the matrix.
This makes Metric the parent level, so its subtotals (totals across territories) will be shown.

 

Let us know if you need further assistance  we’re happy to help. If this addressed your query, please consider marking the response as an Accepted Solution so it can assist others in the community as well.


Thank you & Regards,
Prasanna kumar

 

Its not Helped, any other approach please.

Hi @Swathi1,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

 

Power BI doesn't show child-level subtotals by default. 

 

but as an alternative You can check below solution

 

 

I’ve tried to reproduce the scenario using the DAX below. Please review and adjust it according to your data source. If the issue still persists, feel free to share more details, and we’ll be happy to assist further.

 

Unpivot the date columns in Power Query.

then create a measure like

MetricTotal =
IF (
SELECTEDVALUE('Table'[Territory]) = "Total",
CALCULATE(SUM('Table'[Value]), ALL('Table'[Territory])),
SUM('Table'[Value])
)

 

If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

 

Best regards,
Prasanna Kumar

Ashish_Excel
Super User
Super User

Hi,

Not sure of whether the image is your raw data or your expected result.  Very clearly, show 2 tables - one being the raw input data table and the other being the expected result.

Hi, 

Territory Metric3/1/20253/2/20253/3/20253/4/2025Totals
ASales345719
 Profit 11024
 Loss00202
BSales426921
 Profit 01023
 Loss00202
CSales354315
 Profit 03126
 Loss10001
TotalSales10111519 
 Profit 1516 
 Loss1040 

What ever I have highlighted in RED color that is my challenge to show in the grid and remains everything populated from the Backend Table.

That does not answer the question i asked in my previous post.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors