Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Powerapps - Filter a dropdown collection for another dropdown Collection

(0) ShareShare
ReportReport
Posted on by 22

Hi guys, 

 

I've 2 dropdowns in a app. 

The Dropdown1 have a collection with all departments. 

The Dropdown2 have a collection with all employees. 

 

Right now, in the gallery, i get the result if i choose the department and person, the problem is when i choose the department, the dropdown2 shows all the persons in the sharepoint and not only the people in the department. 

 

I inserted this formula, but didn't work:

Filter(CollectOwner, Dropdown7.Selected.Result)

 

Can u help me? 

Thanks!

 

Categories:
  • Rivius Profile Picture
    Rivius 269 on at
    Re: Powerapps - Filter a dropdown collection for another dropdown Collection

    Great! Have a good day.

  • Verified answer
    PowerBSC_Dev Profile Picture
    PowerBSC_Dev 22 on at
    Re: Powerapps - Filter a dropdown collection for another dropdown Collection

    It's solved. I modify the collections. 

     

    thx. 

  • PowerBSC_Dev Profile Picture
    PowerBSC_Dev 22 on at
    Re: Powerapps - Filter a dropdown collection for another dropdown Collection

    I doesn't work. 

    The collection CollectOwner only have the information of the owners, not the deparment. The department is in another collection called CollectVideo. 

     

    So:, the dropdown1 is with the collection CollectVideo 

    The dropdown2 with the collection CollectOwner

     

  • Rivius Profile Picture
    Rivius 269 on at
    Re: Powerapps - Filter a dropdown collection for another dropdown Collection

    Are the employee records linked to the department they're in?

    If so, you need to adjust the Filter code you have there (I don't know your schema so this is just guesswork):

    in the Items of your dropdown 2 have something like: Filter(CollectOwner, EmployeeDepartment = Dropdown7.Selected.Result)

    That should dynamically filter dropdown2 based on the department you select in dropdown1.

     

    Where EmployeeDepartment is whatever you call that particular field in the employee data.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard