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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymou5
New Member

(+/-) Icon behavior with the matrix hierarchy

I had many blanks values in the matrix hierarchy due to asymmetrical hierarchy levels. I managed to hide them with this metric :

 

Remove Blanks =  SWITCH(TRUE(),  AND(ISINSCOPE(hier[Level 2]),ISBLANK(VALUES(hier[Level 2]))),BLANK(),  AND(ISINSCOPE(hier[Level 3]),ISBLANK(VALUES(hier[Level 3]))),BLANK(),  AND(ISINSCOPE(hier[Level 4]),ISBLANK(VALUES(hier[Level 4]))),BLANK(),  SUM[value])

 

But (+) icons are still visible where the hidden blank values are. I want for the (+/-) icon to hide in all places where the last value in the hierarchy is reached, so where the blanks are hidden (or at least (-) icon instead of (+) icon to show).  Is there any way to change (+/- ) icon behavior, or other solution to my problem, so that (+/-) icon works as I need to? 

 

HierarchyHierarchy

 

On the screen above, the marked row is the last in the hierarchy for his parent row (next one was blank and is hidden now with metric), but there still is a (+) icon.

2 REPLIES 2
JemmaD
Helper V
Helper V

Was there any result with supressing + icons when the last point in the heirarchy is reached? I have three heirarchies in a matrix, but the third heirarchy only applies to one catgegory but the user is allowed to expand all categories to the third heirarchy which is pointless. Is there a measure I can use to tell the matrix not to show the expand icons when the heirarchy is not relevant? 

Anonymous
Not applicable

Hi @Anonymou5,
AFAIK, power bi will auto-hide the row if all column fields do not contain corresponding records.

BTW, SWITCH function not suitable to compare with summarised values, if multiple conditions matches, it always returns the first condition they match. So I think your formula does not work for your records, can you please share a pbix file for test?
In addition, it seems like your formulas also expand these 'hidden' rows. I'd like to suggest you add filters in your calculations formulas to ignore the calculation on the above rows to prevent the fill down '0.0' results on specific rows.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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