Forum Discussion
MERGE TABLES WITH MULTIPLE ROW
Hello 👏,
I tried to merge tables to 1. I have unique KeyID column which not contain Duplicate.
After i expand table you can see that i have multiple channels.
When i merge to second table, it repeat values
Can you give me solution how to keep only first index?
Thank you in advance 😉
amitchandak v-jingzhang v-yalanwu-msft
- Anonymous3 years ago
Hi Anonymous ,
According to your statement, I think you want to keep the first index per Key ID. Here I suggest you to add a new index column before you expand your table.
Add a custom column in your table.
Table.AddIndexColumn([MTD ATT],"New Index",1)Then remove old [MTD ATT] and expand [New MTD ATT].
Then you can merge your tables and keep first index.
For reference: Create Row Number for Each Group in Power BI using Power Query
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 Replies
- IdrissshatilaSuper User
Hello Anonymous ,
You could try to remove duplicates from the last table you made.
If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍
- AnonymousNot applicable
I would like to keep the duplicates :(, because i need Business Type colum for later works
- IdrissshatilaSuper User
Anonymous,
Then you could add a new index for all the table,
https://learn.microsoft.com/en-us/power-query/add-index-column
If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍