cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dgarza
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
v-yuxima-msft
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
v-yuxima-msft
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (35,065)