Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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?
Hierarchy
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.
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?
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |