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 / Combo box using two sh...
Power Apps
Unanswered

Combo box using two sharepoint lists

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi @cwebb365 

 

My scenario is that I have two SharePoint lists:

List 1 is a reference table which contains list of all the countries: ex. CountryRef

                  Title      CountryID

                  USA           101

                  Canada      102

List 2 is the main table where I'm patching all the values to, for ex. MainTable

                   ID        PersonFname     PersonLname      Country     CountryID

                    1           Joe                     John                    USA              101

                    2           Jane                    Jim                     Canada         102

In my app, I'm displaying the countries in a combox box since I want the user to be able to SEARCH and I have the multi select off. I'm successfully able to patch the country selection in List 2.

 

Issue: The issue I'm having is that it is NOT displaying the user's selection when I click on the record in the app. The code I have is as follows on the combo box:

 

Items- Distinct(CountryRef, Title )

DefaultSelectedItem- Filter( CountryRef, ID in Filter('MainTable', ID = Gallery.Selected.ID).CountryID )

 

The combo box is NOT displaying any values and neither is it showing any errors. 

 

Please help! Thank you so much in advance!

 

Categories:
  • cwebb365 Profile Picture
    3,334 Most Valuable Professional on at

    Your values should already be unique in CountryRef table, don't use Distinct Function, it's not delegable for one, but also makes things a bit weird. 

     

    Should just utilize the table as your items. so Items: CountryRef 

     

    Then your Display Field or whatever can be Title. DefaultItem should just be like Filter(CountryRef, CountryID = Gallery.Selected.CountryID) 

     

     

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard