cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
JustinDoh1
Continued Contributor
Continued Contributor

How to expand all remaining rows horizontally from second (certain) row

I am sharing my PBIX file here.

 

I am trying to display all rows as shown below when I click the second row (Expand).

That means: when I click "Expand" (like D or E), all other rows / remaining fields would display horizontally at the same time like case below where I do not have to click each row to display/open all rows of data outcome horizontally.

 

JustinDoh1_0-1675887845262.png

 

This is how visual is structured using Matrix:

JustinDoh1_2-1675888450946.png

 

What I did/learned from my co-worker was, I set the Stepped layout as "Off" on the Row headers --> Options  --> Stepped layout (to make somehow works).

But, nothing else was done.

JustinDoh1_1-1675888028458.png

It works if I tried to expand all rows and save the PBIX file as last mode/status.

But, other than the behavior due to saving in that mode, it does not expand (if I try from the first time) automatically.

 

I am using Matrix for this visual.

Do I have to use other visual (other than Matrix) to make this work (expand all the way for all rows)?

 

I am trying to replicate something that works in Excel to PowerBI, but I am not sure it is possible.

 

Thanks.

 

1 ACCEPTED SOLUTION

@AllisonKennedy 

I think I got the solution without using measures.

I had to do this to make it work.

JustinDoh1_1-1675897406197.png

 

 

View solution in original post

5 REPLIES 5
AllisonKennedy
Super User
Super User

@JustinDoh1 

The only solution I have come up with for this issue is to create a Measure for the values you want expanded. Note this only works if you're already at the lowest level of granularity and 'expanding' will just give 1 row for each.

 

Create measures for selected values:

 

Deficiency Category Selected = SELECTEDVALUE(Table[Deficiency Category])

 

Then add those selected measures to the matrix in 'Values' and they won't need expanded. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy 

I think I got the solution without using measures.

I had to do this to make it work.

JustinDoh1_1-1675897406197.png

 

 

@JustinDoh1  That's a good alternative - I didn't think of that. May just need to add a note to the report as End Users will change frequently and they won't know that trick either. 🙂 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy 

Thank you for your feedback.

I am still having a hard time making this work.. Somehow, when I put the measure into the Values area, values get duplicated.

JustinDoh1_0-1675895586056.png

 

@JustinDoh1 

Ah, yes, as soon as you have multiple measures in Values AND something in columns too you get too much info going on, so either need to create explicit measures for everything (not ideal) or use your wonderful solution! 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors