Trevor Napier July 07, 2016 15:57
I ended up solving this problem by creating a plug in to join tables based on shared columns/keys.
I did try this method as well which will give a final result set of rows that were the same in both tables, but does not actually perform a join of the data.
Hi Alex. I am trying to use this method to join 2 tables but am not familiar with “loop through”. Is it possible to explain this further and, even better, provide a simple example xaml file.
Hi Aksh. I am looking to join 2 tables to extend the data in each row using a field common to each table (similar to vlookup). Is that possible using merge? I thought that merge would take 2 tables with the same (or similar) field structures and add the rows, e.g. one table with 10 rows and the other table with 15 would output a new table with 25 rows.
Yeah i have mentioned it in the post already if you have different then you can use For-each construct or For-each row activity and add new data to a new datatable using Add Data row activity.
You means if suppose same email field found in both then just skip that row or if not present then just add it ? right?
Having joined 2 tables, I now have some rows with blank fields (because the join field is only present in 1 table). I have tried to filter and remove rows based on the blank fields but this is not working. How can the output table best be filtered to include rows for which join data is available in both tables?
I’m working on something similar and I cannot seem to get this to work. I’ve tried both the default Merge DataTable activity and your Invoke Method version, and I am having the same issue in both cases - the rows from the second datatable are being appended rather than merged with the rows with the same primary key from the first datatable.
In my case, the datatables in question are being generated by the Excel Read Range activity to pull from two different worksheets, but I have confirmed that the Excel formatting is the same, and the columns are successfully merging where applicable, just not the rows with the same primary key.
When i declare the PrimaryKey; and so the key has already repeated values on the column. How can i previously detect and delete them (with a rule like keeping the first or the more fullfilled row) (I was planning a double for to check everything, but to hard with plenty of rows)
I whant to do a LEFT join, so if the 2nd Datatable has extra values of keys that doesn’t appear on the 1st DT, don’t include that rows on (i was planning to iterate and clean those, but maybe you have a better efficient idea. Also a DT.Select could be)