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 Platform Community / Forums / Power Automate / SEARCH ITEMS IN OTHER ...
Power Automate
Answered

SEARCH ITEMS IN OTHER TABLES

(0) ShareShare
ReportReport
Posted on by 296

Hello Community,

I have two Excel tables, named DTE and BCO, I want to create a new table that shows me the Items not found or that do not match in their three columns (RUT, FOLIO AND CR).
The search must be done with the DTE Items and look for them in the BCO table.

I leave an example.

 

fgonzalez515_0-1646508290035.png

 

Categories:
I have the same question (0)
  • Verified answer
    takolota1 Profile Picture
    4,978 Moderator on at

    Hello @fgonzalez515 

     

    As long as RUT FOLIO and CR form a unique key that is different for every row in the table…

     

    I would use two Excel List rows actions to get both the tables in Power Automate..

     

    Then use a Select action and in the array From input field, use the intersection expression on the values output of both the Excel List rows, like: Intersection(values(List rows 1), values(List rows 2)). That should generate an array with only the matching values between the two tables. In the Key field just put “Key” and in the value field put item()?[‘RUT’] item()?[‘FOLIO’] item()?[‘CR’] just enter each expression one after the other so it basically concatenates them. That should generate a unique key for each of the matching items in the two tables.

     

    Then use a Filter array action with the BCO table’s Values output in the From array input.

    In the filter conditional use String(Body(‘Select’)) Does not contain item()?[‘RUT’] item()?[‘FOLIO’] item()?[‘CR’]

    That should check if the list of unique keys from the matching records contains the unique key of each record from the BCO table and only return the records not in the matching records list.

     

    From there you can use a Parse JSON on the Filter array action to get the records into dynamic content.

     

    That should accomplish things in a really efficient way incase you have a lot of records.

  • fgonzalez515 Profile Picture
    296 on at

    Hi @takolota,

     

    Thanks for the help.

    I want to take the obtained result to an HTML table, but it throws me the following error.

    How can I solve that?

     

    fgonzalez515_0-1646581114015.png

     

    fgonzalez515_1-1646581144538.png

     

     

  • takolota1 Profile Picture
    4,978 Moderator on at

    Hello @fgonzalez515 

     

    Well you would want to use the Append to Array variable not Append to String in that case.

     

    However, I think the Parse JSON body should already have the array set up that way. Did you try just putting the JSON body in the Create HTML From field? Heck, you may not even need the Parse JSON that action may also take the Filter array outputs.

    But you may need to change the expressions in the Values column there to select just that Key’s value for each row there.

    So…

    item()?[‘Rut’]

    item()?[‘Folio Dte’]

    item()?[‘CR Luciano’]

  • fgonzalez515 Profile Picture
    296 on at

    Hi @takolota,

     

    Thanks.

    This link is helpful

    https://www.damobird365.com/efficien-union-except-and-intersect-great-method/ 

  • takolota1 Profile Picture
    4,978 Moderator on at

    Oh nice @DamoBird365 already has some cleaner documentation for this.

     

    That actually may help me make some of my other flows more readable.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard