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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bharatis
Frequent Visitor

Matrix: change row subtotals label

Hi Team,

 

I am not able to change matrix subtotal labels to something different than total. For example if my  category is the brand of a car, then subtotal by brand like Total Toyota, Total Nissan etc etc.

 

Please advise how to achieve this. I am using the latest desktop  Version: 2.118.621.0 64-bit (June 2023)

 

Kind Regards 

B

1 ACCEPTED SOLUTION

Hi, @bharatis 

 

You can try the following methods.

Sample data:

veqinmsft_0-1691562472065.png

Measure =
IF ( HASONEVALUE ( 'Table'[Model] ),
    SUM ( 'Table'[Sales] ),
    "Total" & " "
        & SELECTEDVALUE ( 'Table'[Brand] )
        & CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Table', 'Table'[Brand] ) )
)

veqinmsft_1-1691562615055.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi, @bharatis 

 

Can you show the output you expect in Excel?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Team,

Please refer to below output i would like to see in power bi.

  No of Car Sold
ToyotaCorrolla5
 Axio2
 Vitz3
 Vitz RS1
   
 Total Toyota11
   
NissanSentra3
 Versa2
 Altima5
   
 Total Nissan10
   
   
   
Total Sale 21

Hi, @bharatis 

 

You can try the following methods.

Sample data:

veqinmsft_0-1691562472065.png

Measure =
IF ( HASONEVALUE ( 'Table'[Model] ),
    SUM ( 'Table'[Sales] ),
    "Total" & " "
        & SELECTEDVALUE ( 'Table'[Brand] )
        & CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Table', 'Table'[Brand] ) )
)

veqinmsft_1-1691562615055.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

Thank you so much @v-eqin-msft:  Community Support Team _Charlotte

 

Kind regards 

Bharati

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.