Skip to main content
cancel
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

Reply
Anonymous
Not applicable

Table: expand and collapse columns

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

 

HO1.JPG

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 :

HO3.JPG

 

Columns expand:

HO2.JPG

 

Please, help!

 

 

 

 

7 REPLIES 7
lg1551
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.

 

https://community.powerbi.com/t5/Desktop/Table-expand-and-collapse-columns/td-p/1794850

 

 

 

v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

It's not supported for Power BI.

You could submit this as an idea.

https://ideas.powerbi.com/ 

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
webportal
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.

webportal
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 =
SWITCH(
      SELECTEDVALUE('FY_Calendar'[isCurrentMonth]), 
      1,[Stock],
      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

Anonymous
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:

HO4.JPG

 

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

Find out what's new and trending in the Fabric Community.