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.App.PNG

4 REPLIES 4
Highlighted
Resolver I
Resolver I

Re: Filter Function No Error But Not Working

Are the employee ids numbers or text, for filters to work both sides of the check need to be the same type, you can change either side into text or numbers by using value() or text() if they are text the also need to match on case, to do this use upper() or lower() on both sides.
Highlighted
Community Support
Community Support

Re: Filter Function No Error But Not Working

Hi @Anonymous,

 

I have made a test on my side and don't have the issue that you mentioned.

Could you please share more details about columns and datas in the sharepoint lists?

 

Will the value in the ye5n column in the General Info list  have a same value in the Employee ID column in the HR list?

Please make sure the value in the ye5n column in the General Info list  have a same value in the Employee ID column in the HR list.

 

If the value in the ye5n column in the General Info list  have a same value in the Employee ID column in the HR list, so the function that you used would get the filtered date back to the gallery, and then I afraid that you haven't choose a Layout for your Gallery. 

You could choose your Gallery firstly, then you could choose the Layout for your Gallery as screenshot below:

 

 

Capture.PNG

 

Capture.PNG

 

Capture.PNG

 

Regarding how to customize a gallery in PowerApps, please follow the document below:

Customize Gallery layout in PowerApps

 

 

Best regards,

Alice

Highlighted
Anonymous
Not applicable

Re: Filter Function No Error But Not Working

HI @v-yuazh-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". I checked the Gallery Layout and changed it to a different Layout but it still didn't work.

General Info.PNGHR.PNG

Highlighted
Anonymous
Not applicable

Re: Filter Function No Error But Not Working

Thank you for the information @PeteMc! I didn't know about that. But I changed to add both upper() and lower() but nothing works.

Lower.PNGUpper.PNG

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,470)