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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Keeping duplicates

(0) ShareShare
ReportReport
Posted on by 15

Hello,

 

I have two Excel tables. What I would like to do is keep rows where column 1 from table 1 matches with column 1 in table 2  then feed those rows into an array. Please see below.

 

Table 1:

STE2_2-1715173726066.png

 

Table 2:

STE2_3-1715173739266.png

 So here row 3 in table 1 matches with row 9 in table 2 as they both have 'a' in the Name Column so the row would be taken from table 2 - the outcome is below:

 

STE2_4-1715173904242.png

 

Please advise on how I would achieve this cheers

 

 

Categories:
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @STE2 ,

    I would like to remind you that if you want to use Name as the primary key and get the value of the same Name in Column2, you have to create three tables in the excel file in advance.

    Like this:

    Table1:

    vyetonggumsft_3-1715225433059.png

    Table2:

    vyetonggumsft_4-1715225446705.png

    Table3:

    vyetonggumsft_5-1715225479693.png

    My Flow:

    vyetonggumsft_11-1715225970249.png

    Notice where my red arrow points to, 'Value' in Apply to each is from Table2 and 'Value' in Filter array is from Table1.

    vyetonggumsft_10-1715225907299.png

    item()?['Name']
    items('Apply_to_each')?['Name']
    length(body('Filter_array'))

    vyetonggumsft_9-1715225875543.png

    The Result:

    vyetonggumsft_6-1715225543600.png

    Best Regards,

    Sunshine Gu

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard