web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get the interse...
Power Automate
Unanswered

How to get the intersection of two datatable in power automate desktop ?

(0) ShareShare
ReportReport
Posted on by

I have two datatables extracted from excel.

 

Now, I need to get the data that is the same between two tables. which means intersection( or inner join in SQL).

 

 But I can't find an available function in PAD.

 

Any advice?

 

 Thanks

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    There is no way to do that natively in PAD. But since you mentioned an inner join, I assume you want to compare it based on some main identifier column. What you would need to do then is loop through one of the tables and then use Find or replace in data table on the other table to check which items from the first table are in the second one. The action will return the row index for you, so you will be able to retrieve the matching row, if needed.

    This will be slow, as you will need to do it for each line. But that is pretty much the only way to do it properly.

     

    An alternative could be running a SQL query to the Excel file, if the two tables are in the same file, but separate sheets. You could do a join then.

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard