cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Filter Function No Error But Not Working

Hi,

 

I have some trouble with the Filter function. I have two SharePoint lists. One called General Info which contains general employee infos with a column called EID - DataField = ye5n. The other list called HR which includes assigned tasks for HR department to complete with a column called Employee ID. For each employee, there are multiple tasks. I'm trying to create a filter for tasks based on employee. This is the formula I'm trying to use. There is no error but nothing shows up.

 

Filter(HR, BrowseGallery1.Selected.ye5n = Employee_x0020_ID)

 

I really appreciate if someone could help me solve the problem.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter Function No Error But Not Working

Hi @Anonymous,

 

If both fields are text column type. Then the formula should be:

Filter(HR, DataCardValue1.Text=Employee_x0020_ID)

DataCardValue1 is the label control's name of EID column in General Info gallery.

 

If "Employee ID" is a lookup column, then the formula should be:

Filter(HR, DataCardValue1.Text=Employee_x0020_ID.Value)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Filter Function No Error But Not Working

Hi @Anonymous,

 

What is the column type of the column "Employee ID" in HR list? And what is the column type of the "EID" column in General Info list? 

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Filter Function No Error But Not Working

Hi @v-monli-msft,

 

I used to have the employee ID in HR as "LookUp" but it didn't work. So I now have it as "Single line of text". Both of them are "Single line of text". 

General Info.PNGHR.PNG

Community Support Team
Community Support Team

Re: Filter Function No Error But Not Working

Hi @Anonymous,

 

If both fields are text column type. Then the formula should be:

Filter(HR, DataCardValue1.Text=Employee_x0020_ID)

DataCardValue1 is the label control's name of EID column in General Info gallery.

 

If "Employee ID" is a lookup column, then the formula should be:

Filter(HR, DataCardValue1.Text=Employee_x0020_ID.Value)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Re: Filter Function No Error But Not Working

Thank you @v-monli-msft! That works out perfectly!

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,009)