Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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!
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
Hi @Anonymous ,
It's not supported for Power BI.
You could submit this as an idea.
Best Regards,
Jay
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.
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!
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
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:
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
109 | |
108 | |
93 | |
61 |
User | Count |
---|---|
171 | |
139 | |
133 | |
102 | |
86 |