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 / People Picker Field Ba...
Power Apps
Answered

People Picker Field Based on choice column, from 2 different SP List

(0) ShareShare
ReportReport
Posted on by 241

Hello,

 

I am trying to narrow down the approvers based on the selected departments in the modern form control.

 

I have 2 list, Vacation request and Approvers.

 

When an employee creates a new vacation request, I want them to be able to choose their supervisors based on the department they select.

 

Following is the Vacation request List where the Requestor & SupervisorName are people field and department, reason, status are choice fields.

vivekravi_0-1698765062199.png

 

Approvers list has 2 columns, departments- choice and SupervisorsName-people.

vivekravi_1-1698765193462.png

 

So my requirement is if I choose 'HR' in the departments field of the modern form control, it should automatically give me the dropdown of all the people (in the SupervisorName field of the form) who are mentioned as HR (in the departments column) in the approvers SPlist.

 

It should also update the same supervisor name in the vacation request list, along with other details.

 

 

vivekravi_2-1698765340090.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    vivekravi Profile Picture
    241 on at

    I figured out a way and posting if someone else would require in future.

     

    On the SupervisorName Drop down, type the following

     

    LookUp(
     Filter(
     Approvers,
     Departments.Value = DataCardValue38.Selected.Value
     ),
     Departments.Value = DataCardValue38.Selected.Value,
     SupervisorsName
    )

    Here the DataCardValue38 is the dropdown of Departments Data Card.

  • Verified answer
    vivekravi Profile Picture
    241 on at

    The above solution works only if you have one supervisor per department. If you have more than one supervisor per department, then On the SupervisorName Drop down, type the following

     

    ForAll(
     Filter(
     WoodstockApprovers,
     Departments.Value = DataCardValue38.Selected.Value
     ),
     SupervisorsName
    )

     

     

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard