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 / Filtering ComboBox by ...
Power Apps
Answered

Filtering ComboBox by Multiple choice ComboBox

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I need to filter a ComboBox by a Multiple choice ComboBox

 

ComboBox1 items looks like this:

 

 

Distinct('SharepointList'.Column;Column)

 

 

I use the Distinct because i use a column for categories.

ComboBox2 items looks like this:

 

 

Filter('SharepointList'; Column = ComboBox1.Selected.Result)

 

 

The problem is that in the way the filter is acting it only shows the items corresponding to the last choice that was selected in ComboBox1 but i need all the items of each of the selected choices. On top of that, i was testing the form in the SharePoint List and it wasn't saving the new items that i was selecting in the ComboBoxes

I have been looking for an answer but i didn't find it or it wasn't my case so i couldn't apply any solution.

 

Appreciate any kind of help, Thanks

 

 

 

Categories:
  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @Gian1 ,

    Firstly, you may get a Delegation warning on this due to the in filter

    Filter(
     'SharepointList'; 
     ComboBox1.SelectedItems in Column
    )

    Second, what is the Update property of the DataCard this is contained in?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Gian1,

    Based on the issue that you mentioned, do you want to display all the items corresponding to the selections from the ComboBox1?

    Combine that with the second formula you provided, It does only display the last selected choice from the ComboBox1. I think there is something wrong with the Filter() syntax. I have a test on my side, please modify your formula as below.

    • Set the ComboBox1.Items property as :

     Distinct('SharepointList',ColumnName)

    • Set ComboBox2.Items property as: 

    Filter('0608', ColumnName in ComboBox1.SelectedItems.Result)

    9.png

    Note: Make sure that you have set the DisplayFields & SearchFields as:

    [“ColumnName”]

    After that, you can see selections in ComboBox2 after you select some items in ComboBox1.

    Now let’s move to the second issue that you mentioned, do you mean that selected items are not saved to SP list when you submit?

    Could you please share more about your column type, is it a Text or any other else?

    I assume that it is a Text column, please take a try as below:

    • Set the Update property of this column data card in the form as: 
    ComboBox1.Selected.Result​
  • Set the DefaultSelectedItems property of the ComboBox1 as:
  • {ColumnName:ThisItem.ColumnName}​

     

    Best Regards,

    Qi

     

  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    @Gian1 ,

    Happy to respond when you provide the requested information,. Please tag me if you require my assistance.

  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @Gian1 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • 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

    Leaderboard > Power Apps

    #1
    11manish Profile Picture

    11manish 220 Super User 2026 Season 2

    #2
    WarrenBelz Profile Picture

    WarrenBelz 189 Most Valuable Professional

    #3
    Mohsin Ali Profile Picture

    Mohsin Ali 139

    Last 30 days Overall leaderboard