web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filtering a gallery fr...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard