Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Solved! Go to Solution.
Hi, @bharatis
You can try the following methods.
Sample data:
Measure =
IF ( HASONEVALUE ( 'Table'[Model] ),
SUM ( 'Table'[Sales] ),
"Total" & " "
& SELECTEDVALUE ( 'Table'[Brand] )
& CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Table', 'Table'[Brand] ) )
)
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, @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 | ||
Toyota | Corrolla | 5 |
Axio | 2 | |
Vitz | 3 | |
Vitz RS | 1 | |
Total Toyota | 11 | |
Nissan | Sentra | 3 |
Versa | 2 | |
Altima | 5 | |
Total Nissan | 10 | |
Total Sale | 21 |
Hi, @bharatis
You can try the following methods.
Sample data:
Measure =
IF ( HASONEVALUE ( 'Table'[Model] ),
SUM ( 'Table'[Sales] ),
"Total" & " "
& SELECTEDVALUE ( 'Table'[Brand] )
& CALCULATE ( SUM ( 'Table'[Sales] ), ALLEXCEPT ( 'Table', 'Table'[Brand] ) )
)
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.
User | Count |
---|---|
97 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |