cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
garyf2104
Regular Visitor

Compare Multiple Datatables

Hi,

 

I have three datatables with similar data. 

 

garyf2104_4-1656432210531.pnggaryf2104_1-1656431969810.pnggaryf2104_2-1656431990326.png

 

(Unfortunately in my example the data was exactly the same hence the terrible job painting data in). Using the first table, I want to compare it with the other tables. If the row is different from the same rrow in table 2 and table 3, then I'll do something with it. In the case above, the only which would be marked is the round 1 data, because in that row it has 10-9 instead of 9-10.

 

I'm just having trouble figuring out how to compare them to one another. 

 

Thanks,

GF

 

2 REPLIES 2
Gidi
Resolver I
Resolver I

What‘s about the idea to create a list out of the data tables ( there exists a action in Power automate desktop) and compare the lists?

VJR
Super User
Super User

If you are sure that you want to compare the same row of all the three datatables, then you can loop through any 1 datatable, then using IF condition along with AND compare the value 1 of datatable 1 AND value 1 of datatable 2 AND value 1 of datatable 3. Likewise for the other columns too.

If the datatables are large of course it is going to take time.

Also look out for some alternatives like writing all 3 datatables to excel and then adding a formula in a helper column that will compare the values of that row and give the output as MATCH or MISMATCH.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Top Solution Authors
Users online (1,370)