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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.