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
nidhs909
Frequent Visitor

remove total from sub column in matrix

Hello, 

 

I have a matrix with multiple level of columns as below and i would like to remove 2 columns which is marked in red. 

 

Your help will be appreciated. 

 

nidhs909_0-1735126704638.png

nidhs909_1-1735126730915.png

 

Thank you in advance. 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @nidhs909 

 

It is not possible to selectively remove subtotal  of measures in the matrix viz out of the box - it's either you disable them or show them all - out of the box that is. You can somehow achieve this using  a disconnected table containing the possible column combinations.

In the screenshot below, I would like to return the total for Revenue but not for transactions so I added an extra row for transactions and another columns to identiy the measure and the formatting.

danextian_0-1735130550587.png

I then proceeded with creating two new measures:

Measure_Rev_Transactions = 
SWITCH (
    SELECTEDVALUE ( DisconnectedGeo[Measure] ),
    "Revenue", [Total Revenue],
    "Transactions", [Total Transactions]
)

Revenue/Transactions Geo = 
VAR SelectedGeo =
    SELECTEDVALUE ( DisconnectedGeo[Geo] )
VAR _SelectedMeasure =
    SELECTEDVALUE ( DisconnectedGeo[Measure] )
RETURN
    IF (
        SelectedGeo = "Total",
        [Measure_Rev_Transactions],
        CALCULATE (
            [Measure_Rev_Transactions],
            KEEPFILTERS ( TREATAS ( VALUES ( DisconnectedGeo[Geo] ), Geo[Geo] ) )
        )
    )

 

The result is on the second matrix. Note: Total is not in bold letters because it is not a total column but a value that is present in the DisconnectedGeo table and there is no option conditionally format as column/row categories or the values to be bold.

danextian_2-1735130626830.png

 

This is just a sample to serve as a guide and the actual solution may be different.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @nidhs909 

 

It is not possible to selectively remove subtotal  of measures in the matrix viz out of the box - it's either you disable them or show them all - out of the box that is. You can somehow achieve this using  a disconnected table containing the possible column combinations.

In the screenshot below, I would like to return the total for Revenue but not for transactions so I added an extra row for transactions and another columns to identiy the measure and the formatting.

danextian_0-1735130550587.png

I then proceeded with creating two new measures:

Measure_Rev_Transactions = 
SWITCH (
    SELECTEDVALUE ( DisconnectedGeo[Measure] ),
    "Revenue", [Total Revenue],
    "Transactions", [Total Transactions]
)

Revenue/Transactions Geo = 
VAR SelectedGeo =
    SELECTEDVALUE ( DisconnectedGeo[Geo] )
VAR _SelectedMeasure =
    SELECTEDVALUE ( DisconnectedGeo[Measure] )
RETURN
    IF (
        SelectedGeo = "Total",
        [Measure_Rev_Transactions],
        CALCULATE (
            [Measure_Rev_Transactions],
            KEEPFILTERS ( TREATAS ( VALUES ( DisconnectedGeo[Geo] ), Geo[Geo] ) )
        )
    )

 

The result is on the second matrix. Note: Total is not in bold letters because it is not a total column but a value that is present in the DisconnectedGeo table and there is no option conditionally format as column/row categories or the values to be bold.

danextian_2-1735130626830.png

 

This is just a sample to serve as a guide and the actual solution may be different.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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
Top Kudoed Authors