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 Apps / Filtering a gallery fr...
Power Apps
Answered

Filtering a gallery from a comma delimited string of values

(0) ShareShare
ReportReport
Posted on by

As the title outlines, looking to filter a dataset from a sharepoint list using a comma delimited string that is of any number of items. These items should be compared to the same sharepoint column. Any suggestions.. I was looking at ForAll loops within a filter but it doesnt work. 

 

Thanks in advance

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

    Hi @jimi_hendrix ï¼Œ

    Please try:

     

    ForAll(Split(Text,","),Filter('SPList',Value = ColumnName))


    Best Regards,
    Tina

  • jimi_hendrix Profile Picture
    on at

    Thanks @v-hanytian-msft , so that gets me a table of tables in a single column.. You can go into each table and the records that match are there but how do I put all of these tables that have results for each forall and put them into one table to display into a gallery??

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

    Hi @jimi_hendrix ,

     

    We made a simple for you.

    Data source:

    vhanytianmsft_0-1690166292017.png

     

    OnChange of TextInput:

    ClearCollect(Col,ForAll(Split(TextInput1.Text,","),Filter('SP List',Value = ColumnName).ID))

    vhanytianmsft_1-1690166292018.png

     

    Items of Gallery:

    ForAll(Col.Value,LookUp('SP List',ID in Value.ID))

    vhanytianmsft_2-1690166292020.png

     

     

    Hope this will help you,

     

    Best Regards,

    Tina

  • Hardtime Profile Picture
    11 on at

    Tried to copy this but the ".ID" part isnt recognized, can I have a bit more explanation about that @v-hanytian-msft ?

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard