Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to set by default Matrix visual to Expand All levels

Hi Team,

 

Is there a way to keep Matrix visual by default expanded to all levels (Even after a new row/column is added to Matrix).

Our requirement is to show all the levels of matrix without manually selecting Expand -> All option.

As of now when a new row/column is added to matrix visual data is shwoing in collpased mode and we need to manually expand.

 

Any work around/property can be set in Matrix theme to set expand all levels by default?

 

like this:

 

Thanks in advance.

 

V-lianl-msft Anonymous 

 

Thanks,

Guna

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    By default, when a hierarchy is first added into the matrix, it won't be expand all levels. You need to click the button to expand.

     

    For the unsupported feature, you may submit an idea and vote for it: Ideas (powerbi.com)

     

     

    Best Regards,

    Stephen Tao

     

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

     

16 Replies

  • I believe this will resolve it: go to the Matrix settings, Row Headers > Options, turn off Stepped Layout.

    • sahabatsuria's avatar
      sahabatsuria
      Frequent Visitor

      I don't see this as an option though? I'm using Power BI version 2.143.878.0 64-bit (May, 2025)

      • alakay_10's avatar
        alakay_10
        New Member

        If you choose "Tabular" in the Format Visual part of the Visualization pane while on the Matrix visual within "Layout and style presets" then back in the Matrix visual right click on each column with expansion capability and select "Expand to next level" for each, it gets the same effect since the Stepped Layout option appears to not be available anymore.

         

  • ghoshabhijeet's avatar
    ghoshabhijeet
    Icon for Solution Supplier rankSolution Supplier

    Anonymous  Thanks for sharing your query.

     

    Try saving the PBIX file in the expanded form of your matrix visual and then publish the report. It should stay expanded if you have new data added to the matrix.

     

    ** If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution, so that it comes in top of the search and help others. Thank you !

    Good Luck 👍

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hello, I don't think this works completely.

      I tried what you suggest and it worked at first but Power BI autoamtically switch back to default hierachy if you go to a different page and then go back.

      It showed things expanding all down to next level the first time I open and load that page in the published site (supposed that's the page 1 of the Power BI). However, if I finish looking at page 1 and go to page 2 and then go back, the page 1 will be reset to the default hierachy where nothing was expanded. This created some confusion to viewers and I had to stop doing expand down all level.

    • Anonymous's avatar
      Anonymous
      Not applicable

      It kinda worked for me. Thanks.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    By default, when a hierarchy is first added into the matrix, it won't be expand all levels. You need to click the button to expand.

     

    For the unsupported feature, you may submit an idea and vote for it: Ideas (powerbi.com)

     

     

    Best Regards,

    Stephen Tao

     

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

     

    • Khushboobarai's avatar
      Khushboobarai
      Icon for Helper IV rankHelper IV

      Can you help me too, my doubt is also same, but in my case I made the row as a button liek from the parameter field okay.. so i have 4 button and it work properly ike if i select one button matrix will show that row wise value, now the question is if i want to select more than one button then the matrix should show exanpded with tabular form this is how i want if i select 2 button matrix shoudl show 2 row properly, but instead its showing me the compacted way like i need to manually drill down to see that 2nd row as per the selection of button.
      I hope you get my question, pls let me knwo how can this be resolved?

       

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks for the input ghoshabhijeet🙂

     

    Even if I save Matrix in expanded form and when I add a new filed in Rows section the newly added filed is collapsed.

     

    This is happening both in PowerBI Desktop and Online Service, any other solution please.

    • ghoshabhijeet's avatar
      ghoshabhijeet
      Icon for Solution Supplier rankSolution Supplier

      Anonymous  I have tried the solution I have stated in my earlier and it's working at my end. I am using the latest version of Power BI desktop. So, hopefully it should work at your end too. Please check.

    • BoundedNutshell's avatar
      BoundedNutshell
      Frequent Visitor

      I'm rather late to this party, so this may go unseen.  The following will achieve what you need:

       

      1. In the matrix format options:
        1. Go to "Layout and style presets"
        2. Make sure you have "Tabular" layout chosen
      2. Expand all in the visual
      3. In the matrix format options:
        1. Go to "Row Headers"
        2. Turn the "+/- icons" option to OFF

      Done!