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
graphIt
Frequent Visitor

HIde/remove matrix hierarchy row based on blank measure

Hello Friends,

 

Is there a way to hide or remove the rows below marked with an X whiles still displaying the rows marked with a check mark?

I have read through numerous posts here and haven't noticed anything other than to suggest it as an idea.

 

Basically what I want to do here is keep the Seat number (numbers in bold below) no matter what and hide the second level if the Scan ON field is blank. The hierarchy does not go any deeper than this, however the number of seats could change so I don't think that adding a white rectangle would suit my purpose as users also need to be able to expand or compress the levels if they choose to.

 

graphIt_0-1594244161948.png

 

Thanks for your help

 

1 ACCEPTED SOLUTION

Thanks for the help and suggestions everyone. I wasn't able to make the suggestions work in my scenario. What I ended up doing was insert empty seats with no passengers into the underlying table and then I was able to use the matrix heirarchy in a "normal" way by also also including items with no data.

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @graphIt ,

 

As a workaround, I create another measure in Values to make the part of hierarchy that you want to keep have a non-null value. And it will show when you did't select show item with no data. And Hide the column for the measure by shrinking the width of the coumn

Capture1.PNG

Please refer to my sample pbix file:  https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EXowA4JJmmxNqd4xS4...

 

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

 

Best Regards,

Dedmon Dai

 

 

Thank you @v-deddai1-msft for the suggestion. That didn't work for me probably because my schema is more complicated. I tried to use your idea to work around my specific scenario, but with no luck.

 

I have the pbix file on my onedrive if you care to take a look.

https://1drv.ms/u/s!AjvAVtAamBjR4kd7jtCy3hbz1J-c?e=Dc6Trd

 

The goal of this report is to show all the people that were on the same bus as a selected passenger in relation to where they were seated. Hopefully you can help. I have everything working the way it needs to with the exception of the matrix level display.

 

thanks again,

Thanks for the help and suggestions everyone. I wasn't able to make the suggestions work in my scenario. What I ended up doing was insert empty seats with no passengers into the underlying table and then I was able to use the matrix heirarchy in a "normal" way by also also including items with no data.

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.