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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
vgeldbr
Helper IV
Helper IV

Conditionally expanding a table in a column

I'm stuck and hope somebody has some ideas. I'm not a Power BI developer just a "power" user.

 

I have a query where there is a column that is an embedded table with 1, 2 or 3 rows. I want to expand that table based on a filter on the 1, 2 or 3 rows taking the "best" one based on the values of the column in the table. If there is only 1 row then take that, if there are two rows then take the "best" one based on the value in one or more of the columns.

 

2020-07-16_10-55-45.png

What I would like to end up with is a record in [All Rows] containing the best row from the table. I think I can then easily expand taht record for the columns/fields I want.

 

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hi @vgeldbr ,

 

You could learn from this blog: Conditionally expanding table’s columns with Power Query M language to create a function to implement it.

 

Hope it can help you.

 

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@vgeldbr , refer if this can help

https://www.youtube.com/watch?v=wG3J8lO9d5I

https://www.youtube.com/watch?v=sbPS3ZKIt7g

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak. The Guy in a Cube video is very old and really just addresses the simple scenario available from the UI. I had found and viewed Parker's video but have not been able to use what he describes for my specific scenario so I am not sure what I'm missing. I agree what he is doing is 99% of what I need though.

@vgeldbr , while it is difficult to tell without looking at data. This what I do.

 

I open these table see what option I have (with those two righ angles near to column name), row or column, look at data and take a call and repeat this till i reach last point in data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors