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

Filter dropdown items based on another column's value

(0) ShareShare
ReportReport
Posted on by 4

New to powerapp but I have a sharepoint list with a lookup column to another list. I've also added some additional columns from that list.

 

I currently have an Employee ID dropdown but I'd like to filter it so it shows only Employees with a Status = "Active"

 

My current Items code is:

Choices([@'Weld Wire Tracker'].'Employee ID')

 

I believe I need to wrap that with a filter but nothing I've tried is working. Like this:

Filter(Choices([@'Weld Wire Tracker'].'Employee ID'),'Weld Wire Tracker'.'Employee ID: Status'="Active")

 

I get the error:

Incompatible types for comparison: These types can be compared: Table, Text

 

 

Steeluser_0-1659714712904.png

 

Categories:
  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Steeluser ,

    Your structure will possibly cause you some grief here and later (Lookup columns are best avoided unless you really need to use them) and the below is not Delegable, but should get you the list you need

    AddColumns(
     Filter(
     'Weld Wire Tracker',
     'Employee ID:Status'.Value = "Active"
     ),
     "EmpID",
     'Employee ID'.Value
    ).EmpID

     

    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.

    Visit my blog Practical Power Apps

  • Steeluser Profile Picture
    4 on at

    Thanks for replying but for some reason this code still generates a list of all employee IDs when I run the published app. Within the editor it doesn't generate any items when checking. Maybe I'm missing something.

    Steeluser_0-1659967513160.png

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Steeluser ,

    Does not surprise me actually - it is valid code to Power App but (as I noted) not Delegable. Please consider throwing away that Lookup column - they are not "best friends" with Power Apps at the best of times and "secondary" fields simply are not designed to work in Power Apps like that. It is way better to have "one degree of separation" between your lists.

  • Steeluser Profile Picture
    4 on at

    Are you saying throw away the Employee ID: Status lookup? How would I go about setting up my lists so that I can have a filtered dropdown of active employees?

     

     

  • WarrenBelz Profile Picture
    156,528 Most Valuable Professional on at

    Hi @Steeluser ,

    Just query the employee list directly in both the dropdown (simply EmployeeListName.FieldName) will get the same as the Lookup and write back to a Text field. Then Lookup the employee list with the item matching your Text field and get the Status

    Lookup(
     EmployeeList,
     NameField = YourDropdown.Selected.NameField
    ).Status

    which is completely Delegable.

     

    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.

    Visit my blog Practical Power Apps

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard