cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Filter Drop Down Box based on previous selections

I have 4 Lookup fields in my sharepoint list (Drive1, Drive2, Drive3 & Drive4).  The 4 lookup fields all point to a "DriveLetter" list.  The DriveLetter list is a single column with 26 records, A-Z.  If I select a Letter in one of the lookup fields how can I exclude that letter from the other dropdown fields?  I have tried using distinct, filter and search for that past 4 hours and simply can't get it to work or wrap my head around it.  I have searched and tried every example with no luck.

 

Please help...

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @dgarza,

 

Do you want to exclude that letter from the other dropdown fields when you select it previous?

I think you can try following workaround:

My Test as next:

 

Data Source:

1.20190205Filterdown1(My SP list name)

20190205filterdropdownSP1.png

2.20190205FilterDropdown2(My SP list name),

Column Drive1,Drive2,Drive3,Drive4 are look up type.

20190205filterdropdown2sp2.jpg

App Test:

Add 4 drop down controls and rename them as Drive1,Drive2,Drive3,Drive4.

Drive1.Items: Choices('20190205FilterDropdown2'.Drive1)

Drive2.Items: Filter(Choices('20190205FilterDropdown2'.Drive2),Value<>(Drive1.Selected.Value))

Drive3.Items: Filter(Choices('20190205FilterDropdown2'.Drive3),Value<>(Drive1.Selected.Value)&&Value<>(Drive2.Selected.Value))

Drive4.Items: Filter(Choices('20190205FilterDropdown2'.Drive4),Value<>(Drive1.Selected.Value)&&Value<>(Drive2.Selected.Value)&&Value<>(Drive3.Selected.Value))

20190205filterdropdownapptest.png

Result Test:

20190205filterdropdown2.gif

Hope this can be helpful.

Best Regards.

Yumia

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Hi @dgarza,

 

Do you want to exclude that letter from the other dropdown fields when you select it previous?

I think you can try following workaround:

My Test as next:

 

Data Source:

1.20190205Filterdown1(My SP list name)

20190205filterdropdownSP1.png

2.20190205FilterDropdown2(My SP list name),

Column Drive1,Drive2,Drive3,Drive4 are look up type.

20190205filterdropdown2sp2.jpg

App Test:

Add 4 drop down controls and rename them as Drive1,Drive2,Drive3,Drive4.

Drive1.Items: Choices('20190205FilterDropdown2'.Drive1)

Drive2.Items: Filter(Choices('20190205FilterDropdown2'.Drive2),Value<>(Drive1.Selected.Value))

Drive3.Items: Filter(Choices('20190205FilterDropdown2'.Drive3),Value<>(Drive1.Selected.Value)&&Value<>(Drive2.Selected.Value))

Drive4.Items: Filter(Choices('20190205FilterDropdown2'.Drive4),Value<>(Drive1.Selected.Value)&&Value<>(Drive2.Selected.Value)&&Value<>(Drive3.Selected.Value))

20190205filterdropdownapptest.png

Result Test:

20190205filterdropdown2.gif

Hope this can be helpful.

Best Regards.

Yumia

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (13,930)