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
Anonymous
Not applicable

remove total of one column

Hello,

 

I have a table F_AMOUNTS

 

HeadingPARTSAmountunits
Heading 1Part 1164.359,325,27
Heading 2Part 1174.287,465,27
Heading 3Part 191.490,225,27
Heading 4Part 1170.542,865,27
Heading 5Part 1145.656,665,27
Heading 6Part 1109.116,845,27
Heading 1Part 2117.873,523,48
Heading 2Part 297.241,043,48
Heading 3Part 288.716,043,48
Heading 4Part 295.003,163,48
Heading 5Part 260.206,603,48
Heading 6Part 2118.863,603,48
Heading 1Part 359.339,141,65
Heading 2Part 349.168,861,65
Heading 3Part 354.748,821,65
Heading 4Part 345.641,201,65
Heading 5Part 339.527,101,65
Heading 6Part 348.561,781,65

 

I added two calculated columns

Amount per unit = ROUND(F_AMOUNTS[Amount] / F_AMOUNTS[units];2)
Part = F_AMOUNTS[PARTS] & " - " & F_AMOUNTS[units] & " units"
 
I use a matrix visualisation
Rows: Part, Heading
Columns: -
Values: Amount, Amount per unit
Part_01.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The Drill mode is On and Drilled down to the lowest level

Part_02.jpg

 

I want to remove The total value of the second column

Not the subtotals of the second column

This is the result I want:Part_03.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks

 

R.W.

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

Sure. There is a workaround to accomplish this, since the default Matrix visual doesn't offer the option to calculate subtotals differently.  You can instead use a measure that behaves differently if it is in a grand total vs a single row or a subtotal row.

 

Amt/unit for Matrix = 
IF(
ISINSCOPE(F_AMOUNTS[Heading]) || ISINSCOPE(F_AMOUNTS[PARTS]),
SUM(F_AMOUNTS[Amount per unit]),
BLANK()
)

In this example, if the current scope is the Heading or the PARTS, it sums the Amount per unit normally.  If it is neither of these (like when you're in a grand total row), it returns a blank.  You can read more about it here.

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

Sure. There is a workaround to accomplish this, since the default Matrix visual doesn't offer the option to calculate subtotals differently.  You can instead use a measure that behaves differently if it is in a grand total vs a single row or a subtotal row.

 

Amt/unit for Matrix = 
IF(
ISINSCOPE(F_AMOUNTS[Heading]) || ISINSCOPE(F_AMOUNTS[PARTS]),
SUM(F_AMOUNTS[Amount per unit]),
BLANK()
)

In this example, if the current scope is the Heading or the PARTS, it sums the Amount per unit normally.  If it is neither of these (like when you're in a grand total row), it returns a blank.  You can read more about it here.

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!

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