Skip to main content

Notifications

Power Apps - Building 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:
  • Hardtime Profile Picture
    Hardtime 11 on at
    Re: Filtering a gallery from a comma delimited string of values

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

  • Verified answer
    Re: Filtering a gallery from a comma delimited string of values

    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

  • jimi_hendrix Profile Picture
    jimi_hendrix on at
    Re: Filtering a gallery from a comma delimited string of values

    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??

  • Re: Filtering a gallery from a comma delimited string of values

    Hi @jimi_hendrix ï¼Œ

    Please try:

     

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


    Best Regards,
    Tina

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard