cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hong_yip
Helper II
Helper II

Filter base on sharepoint list combobox

i want to create combobox, merge two choice field values in combobox, and add filter function select one of staff.

e.g staff1 login and combobox only have "A"  and "D" value at combobox, staff2 login and combobox only have "B"  and "F" value at combobox

combobox1.jpgcombobox2.jpgcombobox3.jpg

hong_yip_0-1612174776935.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

According to your description, I did a test for you:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

ManagersDepartment.'Manager''s Name'

 

Set the combo box control's Onchange property to:

Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

Table(LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_1,LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_2)

 

3\ The result is as follows:

QQQ.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

3 REPLIES 3
v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

According to your description, I did a test for you:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

ManagersDepartment.'Manager''s Name'

 

Set the combo box control's Onchange property to:

Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

Table(LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_1,LookUp(ManagersDepartment,'Manager''s Name'=ComboBox1.Selected.'Manager''s Name').Dept_2)

 

3\ The result is as follows:

QQQ.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Thx v-xiaochen-msft

 

now i can get dept_1 and dept_2 at combobox, i want to do one more thing, how can i filter other sharepoint list at gallery from combobox.

 

other list below

 

order(Single line of text)    Department(Lookup)
O-1234                                A
O-1235                                B
O-1236                                C
O-1237                                D
O-1238                                E
O-1239                                F

v-xiaochen-msft
Community Support
Community Support

Hi @hong_yip ,

 

Glad to help you.

This post has been solved. If you have a new problem, please create a new post.

I am glad to continue to help you.

 

Best Regards,

Wearsky

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,186)