jamuna_T
(jamuna T)
October 11, 2024, 2:09pm
1
Hi,
I have a two datatable DT1 & DT2 with different headers & Range.
Tried to join both datatable by using the merge activity.
But getting output once the DT1 values completed , End of next row merging DT2 values.
Can someone assist me on this please. Thanks !!
lrtetala
(Lakshman Reddy)
October 11, 2024, 2:38pm
2
Hi @jamuna_T
Can you try the below
DT_Output = (From row1 In DT1.AsEnumerable
Join row2 In DT2.AsEnumerable
On DT1.Rows.IndexOf(row1) Equals DT2.Rows.IndexOf(row2)
Select DT_Output.Rows.Add(row1("Amount"),row2("Name"), row2("Value"), row2("Place"))).CopyToDataTable
Output:
Regards,
1 Like
Hi @jamuna_T
Please find my attached solution and let me know if it’s working
JoinDatatable.zip (113.8 KB)
Please mark as solution if its working!
Thanks
Akash Javalekar
1 Like
jamuna_T
(jamuna T)
October 13, 2024, 5:44am
4
Hi @Akash_Javalekar1
Its working as expected. Thanks a lot!
Great I am glad to help you!
Happy Automation
Please mark as solution
1 Like
jamuna_T
(jamuna T)
October 13, 2024, 5:49am
6
I marked as a solution. Thanks!!
1 Like
system
(system)
Closed
October 16, 2024, 5:50am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.