Matching multiple values from different tables in a drop-down
I have two SharePoint Lists: ‘Provider_Resource_Guide’ & ‘Provider Inclusion By State’
‘Provider Inclusion By State’ includes 'State (State0)', 'Name (Title)', & ‘Skilling’
‘Provider_Resource_Guide’ includes 'Name (Title)', ‘Skilling’, 'AR Start' & 'AR End'
The dropdown I would like to filter to is currently only filtered to 'AR Start' & 'AR End':
Distinct(Filter(Provider_Resource_Guide, 'AR Start' <= Value(TextInput1.Text) && 'AR End' >= Value(TextInput1.Text)),'Name (Title)')
In my form AR (age range) is represented by TextInput1, State is NameList1_8, and Skilling is NameList1_9
This is the only advanced filtering I need other than the match I need on ‘Skilling’
Here is my failed attempt:
Distinct(
Filter(
Provider_Resource_Guide,
'AR Start' <= Value(TextInput1.Text) && 'AR End' >= Value(TextInput1.Text) && Skilling in Lookup('Provider Inclusion By State', 'State (State0)', NameList1_8.Selected.Value, 'Skilling')
),
'Name (Title)'
)
Please and thank you!
Sorry but one more item... I want to join 'Provider Inclusion By State','State (State0) so that ,'Name (Title) from Provider_Resource_Guide matches 'Provider Inclusion By State','Provider. Would you like me to start a new discussion? Thank you again for all your help Ash13!
Distinct(Filter(Provider_Resource_Guide, 'AR Start' <= Value(TextInput1.Text) && 'AR End' >= Value(TextInput1.Text) && Skilling = NameList1_9.Selected.Value && 'Provider Inclusion By State'.'State (State0)' = NameList1_8.Selected.Value && 'Name (Title)' = 'Provider Inclusion By State'.Provider), 'Name (Title)')
Wooooohoooo! This works! Thank you so much!
Ok, does simply putting for NamesList1_11:
Distinct(
Filter(
Provider_Resource_Guide,
'AR Start' <= Value(TextInput1.Text) && 'AR End' >= Value(TextInput1.Text) && Skilling = NameList_9.Selected.Value
),
'Name (Title)'
)
get you what you're after?
Sure and thanks again:
Would you be able to share what you have in the Items property for each of the filters/dropdowns/listboxes?
This seems to partially work. When I enter a numeric value into ‘TextInput1’ then select the 'Provider Inclusion By State','State (State0)' from NameList1_8, the Skilling (matching item from both SP tables) selections appear in NameList1_9. The list box in question does not populate a filtered list of 'Name (Title)' items though. It just gives me everything. Thank you for all the effort!
Hi @kgiles123
I think you should be using Filter instead of LookUp - LookUp only returns the first row it finds that matches the criteria.
Try this:
Distinct(
Filter(
Provider_Resource_Guide,
'AR Start' <= Value(TextInput1.Text) && 'AR End' >= Value(TextInput1.Text) && Skilling in Filter('Provider Inclusion By State', 'State (State0)'= NameList1_8.Selected.Value).'Skilling'
),
'Name (Title)'
)
WarrenBelz
146,635
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional