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

Have a trouble: need to subtotal all lines, except .INDICADORES. Is that possible ?

Rabelo_1-1659213791303.png

 

Is it possible to define wich kind of data to SUBTOTAL in a matrix ?

In this case, I'd like that all .INDICADORES data sholud't SUBTOTAL.

Thanks so much !! 😅

6 REPLIES 6
Anonymous
Not applicable

Hi @Rabelo ,

 

Pleae try this measure:

subtotal =
IF (
    ISINSCOPE ( 'table'[subrow] ),
    SUM ( 'table'[value] ),
    CALCULATE (
        SUM ( 'table'[value] ),
        FILTER ( ALLSELECTED ( 'table' ), 'table'[subrow] <> ".INDICADORES" )
    )
)

 

Best Regards,

Jay 

Thks so much!!! 

I've decided to avoid this aproach ... better separate in 2 differente tables and 2 matrixes.

Best Regards!!!

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thks so much!!! 

I've decided to avoid this aproach ... better separate in 2 differente tables and 2 matrixes.

Best Regards!!!

tamerj1
Super User
Super User

Hi @Rabelo 

yes possible. Please clarify exactly the filter contrxt of this matrix. Which columns and which tables. Sample data would be greatly hepful to create a sample file for you. Thank you

Thks so much!!! 

I've decided to avoid this aproach ... better separate in 2 differente tables and 2 matrixes.

Best Regards!!!

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.