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
sanjanarama
Resolver I
Resolver I

collapse all and expand all functionality over a button for matrix

 

 

is there a posibility to have a button as "expand all" and "collapse all" to expand and collapse all records in a matrix.

I know there is a functionality in matrix visual if we hover over we would get options to move to next hierarchy or expand. but can we implement this over a button.?

sanjanarama_0-1645369759909.png

 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

Hi, @sanjanarama 
Way 1: Drill Up and Drill Down
With this way you don't even need to create additional buttons.

Drill down and drill up in a visual


Way 2: Bookmarks + Buttons
Create bookmarks to record the expanded and collapsed state of the matrix, and create buttons to link to the bookmarks.
Create report bookmarks in Power BI to share insights and build stories

 

Result:

vangzhengmsft_0-1645583801839.pngvangzhengmsft_1-1645583810913.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @sanjanarama 
Way 1: Drill Up and Drill Down
With this way you don't even need to create additional buttons.

Drill down and drill up in a visual


Way 2: Bookmarks + Buttons
Create bookmarks to record the expanded and collapsed state of the matrix, and create buttons to link to the bookmarks.
Create report bookmarks in Power BI to share insights and build stories

 

Result:

vangzhengmsft_0-1645583801839.pngvangzhengmsft_1-1645583810913.png

Please refer to the attachment below for details.

Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

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.