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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Remove Some subtotals from Matrix

 

Hi I would like to remove some subtotals from a matrix table, like this:

adriandumitru_0-1660288676549.png

adriandumitru_0-1660288912267.png

 

I tried with this formula, but something is missing from it:

MTD =
IF(
    ISINSCOPE(CanalGrup[Canal 2]),
    IF(
        ISINSCOPE(CanalGrup[Canal 2])=BLANK(),
        IF(ISINSCOPE('dw_si DimChain'[Chain]), IF(SELECTEDVALUE(UnitateMasura[Tip])="Value",TOTALMTD( SUM('dw_si FactSI'[TotalValue]),'Calendar'[Date]),TOTALMTD( SUM('dw_si FactSI'[Quantity]),'Calendar'[Date])),BLANK()),
        IF(SELECTEDVALUE(UnitateMasura[Tip])="Value",TOTALMTD( SUM('dw_si FactSI'[TotalValue]),'Calendar'[Date]),TOTALMTD( SUM('dw_si FactSI'[Quantity]),'Calendar'[Date]))
    ),
    IF(SELECTEDVALUE(UnitateMasura[Tip])="Value",TOTALMTD( SUM('dw_si FactSI'[TotalValue]),'Calendar'[Date]),TOTALMTD( SUM('dw_si FactSI'[Quantity]),'Calendar'[Date]))
)
 
Thank you!
3 REPLIES 3
Anonymous
Not applicable

The problem is that I have to crate another channel named: "Direct Secom", which is a total of "LL Other", "Farmacii Independente" and "LL KA":

adriandumitru_0-1660296884046.png

And the chain is from another table. 

So I have Level 1 Channel/Canal drilled down level 2, which is Chain for all level 1 except "Direct Secom", which has "LL Other", "Farmacii Independente" and "LL KA".

Anonymous
Not applicable

Thank you @tamerj1 

I tried your solution but nothing is happening 😐

tamerj1
Super User
Super User

Hi @Anonymous 
Please try
IF ( 
ISBLANK ( SELECTEDVALUE ( CanalGrup[Canal 2] ) ) && HASEONEVALUE ( CanalGrup[Canal 2] ),
BLANK ( ),
"The rest of the calculation...
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.