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 / filter combobox based ...
Power Apps
Unanswered

filter combobox based on user's department

(0) ShareShare
ReportReport
Posted on by 576

I have an app with a people picker. Due to the number of records, I have created an excel table with all members of an Azure AD group. I want to filter the people picker so that it only displays people from the table with the same officelocation as the logged in user of the app. How would that formula be structured an where would I need it to go? items?

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @ahhollan, In the Excel table that you have created from the Azure AD Group, do you have the OfficeLocation, and the User Display Name or Emails?

     

     

    If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • ahhollan Profile Picture
    576 on at

    I actually figured it out. 

    First, I created a label that houses the current user's officelocation. 

    Office365Users.UserProfileV2(User().Email).officeLocation

     

    Then I refer to that label in the following formula.

    SortByColumns(Filter(colUsers,officeLocation=Label1.Text),"displayName",SortOrder.Ascending)

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard