cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MicroMarc365
Helper I
Helper I

Having issues with filtering column in PowerApp with dropdown

Hi, 

 

I'm working with a drop down field in PowerApp that is pulling data from a SharePoint list.  In the drop down field, I would like certain names to populate.  For example, I've created a mockup SharePoint list

 

Name (Single Text)Email (single text)Department (Drop-down)
John SmithJohnSmith@smith.comHR
Jane SmithJaneSmith@smith.comAccounting
Ben SmithBenSmith@smith.comNA
Tina SmithTinaSimth@smith.comAccounting
Aaron SmithAaronSmith@smith.comHR

 

In the name drop down field in PowerApp, I would like it to populate only the names that are assigned to the HR and Accounting Department.  So, all the names besides Ben Smith should show up in the drop down. 

 

Would really appreciate the help.  Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @MicroMarc365

Set the Items property of the dropdown as below:

Filter(list, Department.Value="HR" ||Department.Value="Accounting").Name
Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @MicroMarc365

Set the Items property of the dropdown as below:

Filter(list, Department.Value="HR" ||Department.Value="Accounting").Name
Best Regards,
Qi

It worked!!! I removed the ".Name" at the end and it worked! 

 

Next question, how do I make sort it by ascending now? 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,350)