cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
PeteMc
Resolver I
Resolver I

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.
v-yuazh-msft
Community Support
Community Support

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

Anonymous
Not applicable

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

Anonymous
Not applicable

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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,388)