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 / Filter a SharePoint Li...
Power Automate
Answered

Filter a SharePoint List based on a multi column table

(0) ShareShare
ReportReport
Posted on by 229

Hi,

 

As the subject says I'm trying to create a flow to filter a sharepoint list based on the values from a table. That is, given Table [T1] and SharePoint List [SP 2] below, I would like to filter SP2 to get only the rows in green.

 

Name - Code (T1)

John - 2

Jane - 3

 

Name - Code - Month - Total  (SP2)

John - 2 - April - 50000000

Jane - 3 - May - 6000000

Jake - 4 - June - 333333333

Jill - 1 - October - 25000

Jane - 4 - Feb - 100

Jane - 3 - August - 300

 

I am trying to put an APPLY TO EACH row in T1 (2 iterations) and then FILTER SP2 so I will get the following

  • First Iteration (one record): John - 2 - April - 50000000
  • Second Iteration (two records): Jane - 3 - May - 6000000, Jane - 3 - August - 300

    Next step would be to join the records from Iteration 1 and 2 but I'm failing in join them (using Append to Array but it is not working). Screenshot below

    Capture.JPG

     

    Can anyone help me out with

    1) If there is a better way of doing this

    2) How can I merge the records got in Iteration 1 and 2.

     

    Kind Regards

     

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

     

    Hi @Sam4 ,

     

    I think you have adopted a very appropriate plan to deal with your needs.

     

    We often use Apply to each to deal with collections. You even use the Filter array to process the data.

     

    But I don't seem to understand your second question, could you provide more explanation?

     

    If you want to group items, you can refer to the following article:

    Do Group By in Microsoft Flow with two simple elegant loops — John Liu .NET

     

    Best Regards,

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 213 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 151

Last 30 days Overall leaderboard