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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
CC25
Frequent Visitor

Show Row Subtotal for Only One Row in Matrix

I have this data:

 

Item NumberSiteWarehouseLocationInventory Physical
1AABC1110
1ADFG1250
1APTN15100
1BFF22150
1BGG25200

 

And I am trying to figure out how I can have a matrix with the rows in the following order: Item Number > Site > Warehouse > Location, and then Inventory Physical in the values with stepped layout off. 

 

Where it gets tricky is I only want to see the sum of inventory physical for the item number level, I don't want to see totals for site, warehouse, or location. I have went through all of the matrix settings and can't figure out how to achieve this.

1 ACCEPTED SOLUTION
v-kongfanf-msft
Community Support
Community Support

Hi @CC25 ,

 

You can try below formula and turn off stepped layout icon.

TotalInventoryPhysical = 
SUM('Table'[Inventory Physical])
DisplayInventoryPhysical = 
IF(
    ISINSCOPE('Table'[Item Number]),
    [TotalInventoryPhysical],
    BLANK()
)

vkongfanfmsft_0-1721379388212.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-kongfanf-msft
Community Support
Community Support

Hi @CC25 ,

 

You can try below formula and turn off stepped layout icon.

TotalInventoryPhysical = 
SUM('Table'[Inventory Physical])
DisplayInventoryPhysical = 
IF(
    ISINSCOPE('Table'[Item Number]),
    [TotalInventoryPhysical],
    BLANK()
)

vkongfanfmsft_0-1721379388212.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jdbuchanan71
Super User
Super User

In the matrix settings, under Row subtotals, you can switch on 'Per row level' and that will let you select which levels get a sub total.

jdbuchanan71_1-1721066375137.png

You would select the rows you want to disable it on in the 'Row level' dropdown then turn off 'Show Subtotal'

When I turn off subtotal for all rows except item number, it doesn't work correctly, it is still somehow managing to sum by the last row, "Location".

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.