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 / Populating choice fiel...
Power Apps
Answered

Populating choice field based on look up field

(0) ShareShare
ReportReport
Posted on by 14

Hi everyone ,

 

I am trying to find a way people picker field in a PowerApps SharePoint form based on the value of a separate drop down. 

I have created I share point list called Countries , that has "Title" and "ID" as columns.

I also have another share-point  list called ProjectManagers that has "User" (person or group) and "Country" look up columns .

In my powerapp form I would like the ProjectOwner dropdown shows the values based on the Country selected value. 

 

I have set the items property of county dropdown  to : ShowColumns(Countries,"Title","ID")

I tried to make a collection with the filtering 
On Change (Country Dropdown) : Clear(Pms);
Collect(
Pms, Filter(ProjectManagers,Country.Id=CountryDC.Selected.ID).User)

Screenshot_1.png

What I should do on Project Owner dropdown to be populated from Pms collection?

 

Thanks in advance for your help.

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi  @Tereza ,

     

    The Project Owner is also Person or Group column, right?

    If so, please try to set the DefaultSelectedItems property to First(Pms).User

     

    Expect that, you can directly set the default items without a collection, like this:

    LookUp(ProjectManagers,Country.Id=CountryDC.Selected.ID).User

    Hope this helps.

    Sik

  • Tereza Profile Picture
    14 on at

    Hi @v-siky-msft ,

     

    Thanks for your reply .Yes Project Owner is Person or group column , I tried this solution but it populates me only the first User.

    The look up function fetches me only the first record . I would like to display all the Users in this particular country.

     

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Tereza ,

     

    Ok, I got you. Please try to modify the OnChange property of Country Dropdown as follows:

     

    ClearCollect(Pms,ShowColumns(AddColumns(Filter(ProjectManagers,Country.Id=CountryDC.Selected.ID),"Claims",User.Claims,
    "Department",User.Department,
    "DisplayName",User.DisplayName,
    "Email", User.Email,
    "JobTitle",User.JobTitle,
    "Picture",User.Picture
    ),"Claims","Department","DisplayName","Email","JobTitle","Picture"))
    
    

    Then set the DefaultSelectedItems property of Project Owner to Pms.

    Hope this helps.

    Sik

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard