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

ComboBox - DefaultSelectedItems - Filter Items based on Table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi! 

 

I need for the DefaultSelectedItems property of my ComboBox to display items based on the filtering of a table. 

 

I have the following formula - Filter(Markets.'Market Name', 'Market Name' in Split(ProjectList_Gallery.Selected.Multimarket,",")).'Market Name'

 

Basically I need to filter the DB called Markets and display as DefaultSelectedItems in my ComboBox all the values that match from the table created by Split(ProjectList_Gallery.Selected.Multimarket,","). At the moment the Split function is working as expected but for some reason there is only 1 market showing as DefaultSelectedItems.

 

Any ideas?

Thanks in advance 🙂 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    FC2000_0-1703616798843.pngFC2000_1-1703616821068.png

    FC2000_2-1703616833289.png

    Left you some screenshot in case seeing how the formula is redacted helps. As you may see, the Markets DB has a lot of records, the Split function is returning 2 records (austria, france) but the final Filter formula only returns 1 (austria)

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

    Hi @Anonymous,

    I have a test on my side, and it works as expected:

    vqiaqimsft_0-1703643278381.png

    I have found that you have column name mixed issue, not sure how you configure your data, however, I have found that your 'Market Name' column exists as Title column name.

    vqiaqimsft_1-1703643525421.png

    Not sure if it is the key, but I suggest you modify your formula as below:

    Filter(Markets, Title in Split(ProjectList_Gallery.Selected.Multimarket,","))

    If Power Apps does not recgonizes Title column, replace it with  'Market Name'.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Qi! Thanks for the response. 

     

    I've tried what you suggested but still the same unfortunately. My DB for Markets is a SharePoint list and reckon that the difference between "Title" and "Market Name" is purely semantical as the column in the list is named "Market Name" but the PowerApps for some reason recognizes it as "Title". I've tried also using the same formula in a gallery as you showed in the screenshots but still showing just one market. 

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

    Hi @Anonymous,

    Actually it is an easy logic issue, however, not sure how you configure your data source and some hidden clue are holding your back.😂

     

    In general, to filter the items both existing in two colums, we used to write:

    Filter(Data1, Column1 in Data2.Column2)

    You could try to simplize your formula to fit it.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard