cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jota90
Frequent Visitor

Filter a table with existing values in a collection

Hi!, 

 

I've searched a lot but can't find a way to do this.

I work with sharepoint lists.
I have the following tables:

  • Events (Title, Category*, Employee*) //Employee User Created by
  • Categories (Title)
  • Employees-Categories(Employee*, Categories*) // The Categories column can select multiple values

 

I want to filter the Events table based on the Categories assigned to the Employee.

 

I have tried to do:
1. App.OnStart:

Set(colCategoriesEmployee; Filter('Employee-Categories';Employee.Email = User().Email).Categories)

 

2. Gallery.Items:

Filter(Events, Category in colEmployeeCategories.Categories)

... also

Filter(Events, Category.Id in colEmployeeCategories.Categories.Id)


... also many other tests but I can't.

 

Can somebody help me?

 

Thank you!!!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jota90
Frequent Visitor

 

Hi!, I have found a way that works for me, maybe there are others...

 

1. App.OnStart

Set(_EmployeeCategories; Concat(First(Filter('Employee-Categories';Employee.Email = User().Email)).Categories;Value;" "))

 

2. Gallery.Items: 

Filter(Events; Category.Value in _EmployeeCategories)

 

 

Greetings

View solution in original post

1 REPLY 1
Jota90
Frequent Visitor

 

Hi!, I have found a way that works for me, maybe there are others...

 

1. App.OnStart

Set(_EmployeeCategories; Concat(First(Filter('Employee-Categories';Employee.Email = User().Email)).Categories;Value;" "))

 

2. Gallery.Items: 

Filter(Events; Category.Value in _EmployeeCategories)

 

 

Greetings

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,576)