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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Not applicable

Table: expand and collapse columns

I am designing a table with many columns. The columns can be grouped by diferent concepts.



In this example "Prov €/caja", "Prov Img" and "Total provisionado" can be part of same group.


I want to display by default just one columm "Total provisionado" and, if user press a buton, then display rest of columns.


Something like this:


Columns collapse :



Columns expand:



Please, help!





Resolver II
Resolver II

I had the same question and found this. Need a table to group them under and use the table, and a measure for the table columns to pulls your measures through.




Community Support
Community Support

Hi @Anonymous ,


It's not supported for Power BI.

You could submit this as an idea. 


Best Regards,


Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Impactful Individual
Impactful Individual

Ah, ok, I thought you wanted to drill down the columns.

To my knowledge, what you want to do isn't possible with Power BI.

Impactful Individual
Impactful Individual

You need to build a table to define how you want the groupings.

For example:


Group1    |  Group2

A              | Total provisionado

A              | Prov Caja

A              | Prov Img

B              | etc...


Then, on the matrix, you add both fields to the Columns: Group1 and Group2.

This will add a hierarchy to the columns.


Finally, to display the right values on the matrix, you will need to build a calculated measure:


Measure =

SWITCH( Group1, "A", SWITCH( Group2, "Total provisionado", [Total provisionado], "Prov Caja", [Prov Caja], ....)


Hope it helps!

The following are my measurements. The months that need to be unfolded can also be controlled through slicers, so that the final presentation will be more flexible and meet the needs of the questioner.
stockDynamic =
      0,IF( HASONEVALUE('FY_Calendar'[Week]),BLANK(),[Stock])

Thank you very much. Your suggestion is very effective. Through SWTCH and HASONEVALUE, you can dynamically expand only the weekly details of the current month

Not applicable

Thanks for your answer but that is not what I want to do.


I don't want to display diferent columns by selecting diferent groups.


I try to be able to display for every group (an I want to display all groups at same time) only the main column of each group or all columns.


Using my example, By default I want to display only "Total provisionado" column but If user press a button (+/-) then display all columns: "Prov €/caja", "Prov Img" and "Total provisionado".


It is similar to "+/-" button on matrix:





Helpful resources


Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors