Forum Discussion

JanSoltys's avatar
JanSoltys
New Member
10 months ago
Solved

Expand from nested table does not match with nested view

Dear comunity,  please help me with following issue.  1) I have a merge with match by selected parameters. In nested table view, I see that for the row 1, all records are with VersionNo "007", whic...
  • v-tejrama's avatar
    v-tejrama
    10 months ago

    Hi JanSoltys ,

     

    Thanks for reaching out to the Microsoft fabric community forum.

     

    The behavior you are observing in Power Query is expected. When merging tables, the result is a nested table column, which retains all matching rows within that nested table. If you expand this column, Power Query duplicates the parent row for each matching row in the child table, which may appear as if the original values are changing, but they are actually being repeated for each match. Using expressions like Table.Column([BMWConditions], "VersionNo"){0} or Table.FirstValue([BMWConditions][VersionNo]) retrieves a single value directly from the nested table without expansion. Therefore, the merge itself is functioning correctly; the difference lies in how expansion is handled. If you want to bring in all matching rows, expanding is appropriate. If only one value is needed, extracting it directly is the best approach. Alternatively, you can expand and then use Group By to return to one row per key if needed.


    Best Regards,

    Tejaswi.

    Community Support