Skip to main content
Community site session details

Community site session details

Session Id : +mzRQDOk0MoUObQlhIa3BB
Power Apps - Building Power Apps
Answered

Filter Items that match value(s) from multiselect Field in Sharepoint List

Like (0) ShareShare
ReportReport
Posted on 19 Feb 2024 12:46:25 by 9

Hi Powerapps experts,

 

my task is to create a dynamic form, based in form element data in a SharePoint list (named 'Formulare-Kommunikationsportfolio'). This works like a charm. I collect the elements and map it in a gallery on the respective form items.

 

Now, I struggle with filtering the items for the dynamic form. I only want to collect items from 'Formulare-Kommunikationsportfolio' in the collection "dynamicForm", where the value of the field entry in column "Kanal" in the collection "selectedWerbemittel" (which is a text field) matches one of the values in the field from column "Kanal" of 'Formulare-Kommunikationsportfolio' (which is a multiselect field). So basically to filter if a string (from selectedWerbemittel) in contained in an array (from 'Formulare-Kommunikationsportfolio').

This is my approach so far but I dont't know how to do the filter logic (syntax with ; and ;; is correct for my language version DE). 

 

Thank you in advance for a little help dear experts!

 

 

 

 

 

ClearCollect(
 dynamicForm;
 Filter(
 'Formulare-Kommunikationsportfolio';
 !IsEmpty(
 Filter(
 selectedWerbemittel;
 // match fields
 )
 )
 )
);;

 

 

 

 

 

  • Verified answer
    ChrisBer Profile Picture
    9 on 19 Feb 2024 at 14:41:58
    Re: Filter Items that match value(s) from multiselect Field in Sharepoint List

    Thank you @v-mengmli-msft . I ended up doing like this

     

     

    ForAll(
     Distinct(selectedWerbemittel; Kanal);
     If(
     CountRows(Filter(selectedWerbemittel; Kanal = Value)) > 0;
     Collect(
     dynamicFormPrep;
     Filter('Formulare-Kommunikationsportfolio'; Value in Kanal.Value)
     )
     )
    );;
    
    ClearCollect(dynamicForm; ForAll(Distinct(dynamicFormPrep; ThisRecord); Value));;

     

  • v-mengmli-msft Profile Picture
    on 19 Feb 2024 at 13:06:24
    Re: Filter Items that match value(s) from multiselect Field in Sharepoint List

    Hi @ChrisBer ,

     

    Here is a method for your reference:

    ClearCollect(dynamicForm;ForAll(Distinct(Ungroup(ForAll(selectedWerbemittel As C;Filter('Formulare-Kommunikationsportfolio';C.Kanal in Concat(Kanal,Value));"Value");ID) As B;LookUp('Formulare-Kommunikationsportfolio';ID=B.Value))

     

    Best regards,

    Rimmon

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete