Forum Discussion

vgeldbr's avatar
vgeldbr
Icon for Helper IV rankHelper IV
6 years ago

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.

 

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