Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
Hi @betty_bui2602 ,
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 Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @betty_bui2602 ,
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 👍
Proud to be a Super User! | |
I would like to keep the duplicates :(, because i need Business Type colum for later works
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 👍
Proud to be a Super User! | |
I read the article you shared.
Can you explain a bit more the purpose of new index since i already have 1.
Hi @betty_bui2602 ,
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 Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you very much @v-rzhou-msft. i able to achive my outcome follow the link you shared😍
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
77 | |
63 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |