cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dlprentice
Responsive Resident
Responsive Resident

Opposite of intersection exist in PA?

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?

1 ACCEPTED SOLUTION

Accepted Solutions
fchopo
Super User
Super User

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

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!

View solution in original post

5 REPLIES 5
fchopo
Super User
Super User

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

 

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
dlprentice
Responsive Resident
Responsive Resident

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

steve_hendy
Resolver I
Resolver I

Wish I saw this earlier, well done

risham
New Member

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

Works great! Just make sure you're arrays have the same structure.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,482)