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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kala2
Helper III
Helper III

How to remove subtotal in Matrix for specific level

I want to remove subtotal for specific rows in matrix. I have a conditionall rule which change the font color if value is greater than 20 but it highlights the totals in the upper level of skill matrix.

 

Untitled.png

kala2_0-1627560522765.png

kala2_1-1627560535899.png

 

 

 

is there any way to remove total from Year and months and keep only the total for the of the person level? With the options off when i toggle the year the total is removed correclty but when i close the level the total is appearing again.

1 ACCEPTED SOLUTION

Hi @kala2 ,

 

After replacing the created measure with the value in the matrix, you need to set the conditional judgment in the conditional formatting to be effective.

vhenrykmstf_0-1628064031479.png

 

just like:

vhenrykmstf_1-1628063785701.png


 If there are still problems, please provide a test data model (delete sensitive information), otherwise no further testing can be done if only screenshots are provided.


Best Regards,
Henry


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

5 REPLIES 5
v-henryk-mstf
Community Support
Community Support

Hi @kala2 ,

 

I think you can create a measure and use HASONEVALUE to make conditional judgments to achieve the results you expect. The reference is as follows:

M =
IF (
    HASONEVALUE ( 'Table'[Month] ),
    MAX ( 'Table'[Value] ),
    CALCULATE ( SUM ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[Year] ) )
)

vhenrykmstf_0-1627897712910.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

hi @v-henryk-mstf , thanks for the info!
I have applied your measure. I made some modifications in your measure. I changed the MAX to SUM since i want the sum of all the values. Below is the changed measure:

MeasureTest = IF (
HASONEVALUE ( 'Auswertung_Person (2)'[Date].[Month] ),
SUM ( 'Auswertung_Person (2)'[Values] ),
CALCULATE ( SUM ( 'Auswertung_Person (2)'[Values] ), ALLEXCEPT ( 'Auswertung_Person (2)', 'Auswertung_Person (2)'[Date].[Year] ) )
)
The problem still persists since it highlights the months and the year as a red color.
kala2_0-1627900304066.pngkala2_1-1627900319644.png

 

Hi @kala2 ,

 

After replacing the created measure with the value in the matrix, you need to set the conditional judgment in the conditional formatting to be effective.

vhenrykmstf_0-1628064031479.png

 

just like:

vhenrykmstf_1-1628063785701.png


 If there are still problems, please provide a test data model (delete sensitive information), otherwise no further testing can be done if only screenshots are provided.


Best Regards,
Henry


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

amitchandak
Super User
Super User

@kala2 , You are looking at the correct option. if you switch off-year and save visual on that it should work.

@amitchandak I have year switch off but it still showing the subtotal of the year when closed

 

Untitled2.png

 

Untitled3.png

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.