Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Matching multiple values from different tables in a drop-down

(0) ShareShare
ReportReport
Posted on by 224

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!

Categories:
  • kgiles123 Profile Picture
    224 on at
    Re: Matching multiple values from different tables in a drop-down

    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)')

  • kgiles123 Profile Picture
    224 on at
    Re: Matching multiple values from different tables in a drop-down

    Wooooohoooo! This works! Thank you so much!

  • Verified answer
    Ash13 Profile Picture
    576 on at
    Re: Matching multiple values from different tables in a drop-down

    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? 

  • kgiles123 Profile Picture
    224 on at
    Re: Matching multiple values from different tables in a drop-down

    Sure and thanks again: 

    1. Age Restriction: TextInput1 = “”
    2. State: NameList1_8 = Distinct(Sort('Provider Inclusion By State','State (State0)'),'State (State0)')
    3. Skilling: NameList_9 = Distinct(Sort(Filter('Provider Inclusion By State', 'State (State0)' = NameList1_8.Selected.Value),Skilling),Skilling)
    4. Name: NameList1_11 = 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)')
  • Ash13 Profile Picture
    576 on at
    Re: Matching multiple values from different tables in a drop-down

    Would you be able to share what you have in the Items property for each of the filters/dropdowns/listboxes?

  • kgiles123 Profile Picture
    224 on at
    Re: Matching multiple values from different tables in a drop-down

    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!

  • Ash13 Profile Picture
    576 on at
    Re: Matching multiple values from different tables in a drop-down

    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)'
    )

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard