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

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.

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,737)