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 Dropdown based ...
Power Apps
Unanswered

Filter Dropdown based on Current User

(0) ShareShare
ReportReport
Posted on by 1,512

I feel silly asking this question but I cannot seem to get my syntax correct.

 

What I am trying to do is set the value in the Dropdown based on the current user logged in.  I have two list Apprentice List and Occupation list.


In the apprentice list i am using the Title field as the Position Field and in the Occupations list I am using Title as the matching Position.

 

In the apprentice list I have Title, Apprentice Name (which is a People Picker), I cannot use the Microsoft Office 365 Users, because it does not have the true position listed in it so I have the Apprentice List to get that information.

 

The only field in the Occupation list is Title.

 

How can I get this to work?

Categories:
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi Dorinda,

     

    From the currently logged in user you can get email, full name and image.

     

    User().Email

     

    Add the email to your apprentice table and you can do a lookup.

     

    Regards.

  • Dorinda Profile Picture
    1,512 on at

    @jcfDaniel so what is the syntax then?  I added the email address but I cannot seem to get it to work.

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    Lookup ( ApprenticeTable, Email = User().Email ).FieldToReturn

     

    I feel I am missing something about the occupation table... It has only the title column? Can't occupation be a column in apprentice?

     

    Regards

  • Dorinda Profile Picture
    1,512 on at

    @jcfDaniel I could however, if we do not have an entry then we have to do a new entry, so are you saying may the Title field in the list a lookup to the Occupation list?

     

    This is what is in the apprentice list

    Dorinda_0-1653500126593.png

    both the name and the email are people picker the Position has an internal name of Title.

     

    My occupation list has this

     Dorinda_1-1653500185318.png

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Well, as it is there is no relationship between Occupation and Apprentice. I guess data modelling depends also on the desired output.

     

    What is the main purpose of the occupation table?

  • Dorinda Profile Picture
    1,512 on at

    The relationship is the Position/Title they match on both lists, we will have employees that will have different positions in the Apprentice list so when they come into the app I want to set the dropdown to match what is showing as the position in the Apprentice list, if they are new I just want the Occupations dropdown to be available.

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    I see. I think the Title column is not best suited for that. I would create a Occupation column and then populate it when the newcomer chooses the occupation (they can choose, right?).

     

    Then, on the app you could do a couple of things like showing the dropdown only for those who have no occupation yet and show a label with the occupation name for the others. also you could leverage DisplayMode and toggle between Edit and View...

     

    As for the Title, you could probably populate it with Name and Occupation or something descriptive like that.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard