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 / Filter Items that matc...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on 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
 )
 )
 )
);;

 

 

 

 

 

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

    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

  • Verified answer
    ChrisBer Profile Picture
    9 on at

    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));;

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard