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 values within...
Power Automate
Answered

Filter a values within one array which contains values from another array

(0) ShareShare
ReportReport
Posted on by 10

Hello, I have 2 arrays and I need to filter the values within one array (let's call it Array1) which contains values from another array (let's call this one Array2). The first one (column) I take from sharepoint  :  List Rows + Select and the second one I have stored in variable.

 

Example: 

Array1: helping, source, never, power, automate, keyboard

Array2: help, brb, auto, sou

So the output will look like: helping, source, automate.

 

I tried to to use Filter array but I do something wrong. Could you please advise?

Categories:
I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @MPlo ,

    My SharePoint List:

    vyetonggumsft_3-1708946007648.png

    My Flow:

    vyetonggumsft_0-1708945693924.png

    vyetonggumsft_1-1708945860725.png

     

    item()
    items('Apply_to_each')

     

    If you still have problem, please post a screenshot of your complete flow configuration.

    Best Regards,

    Sunshine Gu

  • MPlo Profile Picture
    10 on at

    Great, thanks a lot, I did struggle with right parameters in filter arrays step. So the output now is the array within an Apply to each.

    How do I get the values out of this loop and get the array (or string) of matching values?

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

    Hi @MPlo ,

    Please reference this test.

    vyetonggumsft_7-1708995998330.png

    Add another variable named test, and apply to each 'Filter_array' body.

    Then using 'item()' expression to Append to array variable.

    vyetonggumsft_1-1708995391878.png

    item()

    Jump out of the two loops and add the compose control, put the test variable in, run the flow, check the output of compose, and you can get the value of the test variable.

    vyetonggumsft_6-1708995884030.png

    Best Regards,

    Sunshine Gu

     

     

  • MPlo Profile Picture
    10 on at

    many thanks for your solution ! 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard