Forum Discussion
Combining data sets with duplicate information (real tester!!)
What is the desired outcome with the example data? Show us
- Anonymous5 years agoNot applicable
Thanks for getting back to me HotChilli!! I would like to get the following data:
Name Position ID a 1 b 2 c 3 d 4 Each row in 'Name' should be linked to an appropriate, unique 'Position ID' via the type of 'Role'.
Does that make sense?
Let me know if you have any questions, or if you require a greater data set!
Thanks again!!!
- mahoneypat5 years ago
Microsoft Employee
You can add a sub index for role column in both tables and then do a merge using both columns. However, if you truly have the same number of rows in both tables, you can just use Table.FromColumns with the formula shown in the pic below to get the shown table. DS1 and DS2 and the names I gave to the two queries/tables.
Regards,
Pat
- Anonymous5 years agoNot applicable
Hi mahoneypat!!
Thanks for getting back to me 🙂
A sub-index is a great idea! However, my DS is quite large and it would be time consuming to add in a sub-index to specific each specific role and ensure they matched up correctly.
I was hoping to be able to implement logic which could exclude previoulsy used Position IDs.
Thanks again Pat you are a legend