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 based upon mult...
Power Apps
Answered

Filter based upon multi-select choice column

(0) ShareShare
ReportReport
Posted on by 241

Hi! 🙂

I need some syntax help please... 

There are two lists - 'Scenarios' and 'Tools'. The scenarios list includes choice fields that are represented as dropdown menus within the app. The user filters the data based upon the first 3 columns and the result is 1 item from the 'Scenarios' list. 

The second list 'Tools' is shown as a Gallery in the app, and should be filtered based upon the 'Scenarios' list in such a way that all those 'Tools' list items should be shown where the Product Name is in the 'Scenarios' result. 

 

Capture2.PNG

 

My Problem:

The 'Scenarios' Product name field is a choice column allowing for multiple selections... So in the collection the 'Scenarios result' shows [object Object] as below.  I cannot work out how to filter the 'Tools' list from this? 

Capture1.PNGCapture3.PNG

I considered creating a variable that creates a string from all the resulting values, and then filtering 'Tools' list by whether the Tools product name is included in that string. But again, I could not work out the syntax to do that..

 

Any help would be greatly appreciated!!! Heart

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

    Hi @DanielaHo ,

    Could you tell me what's the data type of Product Name in 'Tools' list?

    I assume it's a text column.

    I've made a similar tes for your reference:

    1)modify your collection:

    ClearCollect(test,AddColumns(Coll_Scenarios,"ProductValue",Concat(ProductName.Value,Value&",")))

    2)filter data:

    Filter(Tools,Product Name in Concat(test,ProductValue&","))

    Then, 'Tools' list will filter based on multiple choice column in Scenarios list.

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • DanielaHo Profile Picture
    241 on at

    Brilliant - that works! 

    Thank you so much 🙂 🙂 🙂

  • britagrace Profile Picture
    26 on at

    This looks like a pretty cool app. Care to share?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, as britagrace says, it looks like a candidate for sharing, in the power app community examples, or the github samples. Please do so ;-). 

    May be interesting to link to a similar question: 
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Filtering-a-Table-by-a-Multi-Selection-Choice-Column/m-p/1518511#M392477

    Also solved by first create a collection, and then filter using in  

    Clear(colDept);
    ForAll(
     ComboBoxName.SelectedItems,
     Collect('
     colDept,
     Filter(
     ListName,
     Value in Department
     )
     )
    )

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard