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

Filter table based on multiple selection combo drop down

Hi,


I'm trying to filter a data table based on Sharepoint list.

 

I have a Sharepoint list (EmpDatabase) with a list of employees.

 

I created a data table in powerapps showing all the employees.

 

Now I'm trying to add a combo box where I need to get the employee names. If I select one employee then I need the data table to display only that employee data. If I select more than one employee I need the all the selected employee data to be displayed in the data table.
By default the data table should display all the employee data

 

Sharepoint list: Empdatabase

List item to be in combo dropdown: EmpName

data table Name: Empdatatable

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @Venkat_Veda ,

I did a test on my side for reference:

1. This is my list called "Empdatabase". I renamed the default "Title" column to ""EmpName, and add two text columns called "Phone" and "Email":

v-albai-msft_0-1616135957537.png

2. Set the item of comb box property to:

 

Distinct(Empdatabase,Title).Result   //Title is the column name of EmpName

 

Set the item of table to:

 

If(IsEmpty(ComboBox1.SelectedItems.Result),Empdatabase,Filter(Empdatabase,Title in ComboBox1.SelectedItems.Result))                         // Title is the column name of EmpName

 

Check results below:

v-albai-msft_1-1616135957540.png

 

v-albai-msft_2-1616135957543.png

Best Regards,

Allen

View solution in original post

1 REPLY 1
v-albai-msft
Community Support
Community Support

Hi @Venkat_Veda ,

I did a test on my side for reference:

1. This is my list called "Empdatabase". I renamed the default "Title" column to ""EmpName, and add two text columns called "Phone" and "Email":

v-albai-msft_0-1616135957537.png

2. Set the item of comb box property to:

 

Distinct(Empdatabase,Title).Result   //Title is the column name of EmpName

 

Set the item of table to:

 

If(IsEmpty(ComboBox1.SelectedItems.Result),Empdatabase,Filter(Empdatabase,Title in ComboBox1.SelectedItems.Result))                         // Title is the column name of EmpName

 

Check results below:

v-albai-msft_1-1616135957540.png

 

v-albai-msft_2-1616135957543.png

Best Regards,

Allen

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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