Skip to main content

Notifications

Community site session details

Community site session details

Session Id : OkeQRy+Ff+kUG2LG1SQ+cK
Power Automate - Building Flows
Answered

Opposite of intersection exist in PA?

Like (1) ShareShare
ReportReport
Posted on 22 Oct 2021 15:00:49 by 626

So basically the title, I do an intersection() I get the common items, all is good. Now, is there an expression to get the items that don't match or would I be forced to use some filter array actions for this?

  • Community Power Platform Member Profile Picture
    on 18 Sep 2023 at 08:14:00
    Re: Opposite of intersection exist in PA?
    Hi, could you please explain what output-item is?
  • testasdfasfsafa Profile Picture
    307 on 27 Mar 2023 at 14:47:12
    Re: Opposite of intersection exist in PA?

    I don't understand, you will still need an apply for each for each item in 1 array...

  • ericwhitley Profile Picture
    137 on 05 Aug 2022 at 18:03:55
    Re: Opposite of intersection exist in PA?

    Works great! Just make sure your arrays have the same structure.

  • risham Profile Picture
    2 on 04 Aug 2022 at 18:09:04
    Re: Opposite of intersection exist in PA?

    It does not work for me, instead of giving me the unique items, the flow returns all the items that are in the List 2

  • steve_hendy Profile Picture
    371 on 08 Jul 2022 at 08:01:05
    Re: Opposite of intersection exist in PA?

    Wish I saw this earlier, well done

  • dlprentice Profile Picture
    626 on 22 Oct 2021 at 17:52:33
    Re: Opposite of intersection exist in PA?

    Thank you! This works so much better than a Apply_for_each loop!

  • Verified answer
    fchopo Profile Picture
    7,968 Super User 2025 Season 1 on 22 Oct 2021 at 16:05:32
    Re: Opposite of intersection exist in PA?

    Hi @dlprentice 

    I guess the only solution you have is to use Filter Array action. In this sample, this filter array action is getting items that are in List2 (array) and not present in List1 (array):

     

    image-23You could do it for List1 and List2 in another action, and finally use a union operation to get a list of all items.

     

    Hope it helps!

    Ferran

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 51

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 39 Super User 2025 Season 1

#3
Chriddle Profile Picture

Chriddle 21 Super User 2025 Season 1

Overall leaderboard