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
Answered

Filter dropdown items

(0) ShareShare
ReportReport
Posted on by 11

I have a dropdown where employees can select their name before beginning a training. The names are pulled from a sharepoint list that also has a column with a checkbox for if the employee is an active employee or not. I would like to filter the names that appear in the dropdown box to only show those that have the active employee column selected as a yes. 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    Hi @ajd116 

     

    Try this code:

    Filter(
     SPList, 
     ActiveEmployeeColumn = "yes"
    )

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @ajd116 - you can use:

     

    Filter(
     'Your SharePoint List',
     'Your Yes/No Column'
    )
  • Verified answer
    Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @ajd116 ,

     

    Assuming your SharePoint list is named 'Employees' and the column indicating active status is named 'ActiveEmployee', you can modify the Items property of your dropdown as follows:

     

    Filter(Employees, ActiveEmployee = true).EmployeeNameColumn

     

    Replace 'EmployeeNameColumn' with the actual name of the column that stores employee names.

     

    Filter(Employees, ActiveEmployee = true) - This part filters the records in the 'Employees' list to include only those where the 'ActiveEmployee' column is set to true.

     

    By using this formula, you ensure that only the names of active employees will be displayed in the dropdown. Adjust the column names accordingly based on your SharePoint list structure.

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • ajd116 Profile Picture
    11 on at

    I am getting the same list of people with "yes" and "no". I am only getting the list of people that are not active employees. 

    Filter('Employee Safety Training','ActiveEmployee'= "yes") is what I have but I am getting people who do not have the box selected a yes on my sharepoint list. 

     

    I also want the dropdown sorted so it shows them in alphabetical order but when i try and combine the sort/filter I am getting an error. This is what I have for my combination:

    Sort(Filter('Employee Safety Training','ActiveEmployee'="yes"),'Employee Safety Training',Title,SortOrder.Ascending)

     

    Thanks for the help. 

  • ajd116 Profile Picture
    11 on at

    I figured it out, had to use true instead of yes and then when sorting and filtering I didn't need to call out my list a second time so it ended up looking like this: 

     

    Sort(Filter('Employee Safety Training','ActiveEmployee'=true),Title,SortOrder.Ascending)

  • SpongYe Profile Picture
    5,715 Super User 2026 Season 1 on at

    @ajd116 

     

    Nice to see that it worked out. 

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    @ajd116 - there is no need to evaluate a field for true if that field is a Boolean. Simply referencing the field will suffice.

     

    Sort(Filter('Employee Safety Training',ActiveEmployee),Title,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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard