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 Lookup Dropdown...
Power Apps
Answered

Filter Lookup Dropdown list based on values in another SharePoint list

(0) ShareShare
ReportReport
Posted on by 99

Hi There – I’m hoping someone can help me with this.

 

In my PowerApp, I have a form for users to complete a timecard. The form contains a single-select drop-down field called HourType which is a lookup to another SharePoint list called CSHourTypes. This lookup works just fine.

 

However, I want to filter the options in the drop-down to only display HourTypes that the user is permitted to bill against.

 

I store the logged in user’s email address in a global variable called gbl_User and am trying to lookup the user in the CSUsers SharePoint list where the EmailAddress field = gbl_User and get the values in the CSHourTypesAllowed field which a multi-select field.

 

Then I want to populate the Items in the drop-down to only display matching hour types.   

 

I've tried a couple of things along the lines of the following, but can't seem to get it to work. Any help or insight is greatly appreciated!

Filter(CSHourTypes, Title in LookUp(CSUsers, EmailAddress = gbl_User, HourTypesAllowed.Value), "Title")

 

CSHourTypes SharePoint List

  • Title
  • ID

CSUsers SharePoint List

  • EmailAddress
  • CSHourTypesAllowed
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,962 Most Valuable Professional on at

    Hi @tsparkman ,

    I am not sure if I am "undercomplicating" this, but if your have the user stored in a Variable and want a list of hour types, this will get it

    Filter(
     CSUsers, 
     Title = gbl_User, 
    ).CSHourTypesAllowed

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    tsparkman Profile Picture
    99 on at

    Hi Warren - thanks so much for your response!

     

    Unfortunately this didn't work for me, but it did get my mind thinking in a different direction -- so THANK YOU!

     

    I was able to solve it by:

    1. Changing the field from a drop-down to a combo-box. (Something I read made it sound like some of the things you can do with combo-boxes simply can't be done with drop-downs.)
    2. Then, in my Items property I added the following which basically filter the HoursTypes list to only display items that are in the HourTypesAllowed field on the user profile. 
    Filter(CSHourTypes, Title in LookUp(CSUsers, EmailAddress=gbl_User, HourTypesAllowed.Value).Value)

    3. Then I set the DefaultSelectedItems to this, so it would default to the users Preferred HourType.

    LookUp(CSUsers, EmailAddress = gbl_User, PreferredHourType)

     

    There might have been a different/easier/more efficient way to do this, but it was the only thing I could get to work 😀

     

    Thanks again for your guidance and setting me on a different path! 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard