web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Finding data based off...
Power Apps
Answered

Finding data based off another list

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

I have an app where by the User uses a drop down input to locate their role. Based on this, there are various screens that take to various information about their role. 

 

All these screens and galleries of information point to the single drop down.

 

However, there is a second list of information I would like to also compare and provide information with.

 

Both lists live on SharePoint. Both have a "roleconnector" column on each list (numerical number given for each code).

 

Is there a formula that will take the result of the drop drown, find the roleconnector numerical of that list, and find and compare to the second lists roleconnector to enable to to the link up another gallery of info?

 

Thanks. 

Categories:
I have the same question (0)
  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Hey @DGWolfe, you will have to substitute your own Data Source names, but I can demonstrate this using the Filter() function used in the "Data source" property of a gallery:

    Filter(SecondDataSource, ThisRecord.roleconnector = drpRole.Selected.roleconnector)

    metsshan_0-1658813942908.png

     

    Does this help with your question?

  • DGWolfe Profile Picture
    on at

    Thanks @metsshan 

     

    The above didn't work, but I continued to tweak and tried the below, which worked at the start, then I saved the app and now it's not working? So not sure what happened there?

    Filter('Second SP list", roleconnector = roleconnectorGallery1(*this gallery is connected to first SP list*).Selected.RoleConnector && Title = TextInput.Text)
  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Hey, what's the error you are getting?

     

    The only thing which stands out to me is the double quote at the end of <..  'Second SP list"  ..>, I think it should just be a single quote apostrophe.

  • DGWolfe Profile Picture
    on at

    There's no error, the galley just appears blank. And apologies, there is no " at the end, I just typed the code above, so that was a typo. 

     

    Strange, though? It worked...then it stopped but there is no error. Just a blank gallery?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @DGWolfe 

    To troubleshoot does your gallery show data with just 

     

    Filter('Second SP list', roleconnector = roleconnectorGallery1.Selected.RoleConnector)

     

     

  • DGWolfe Profile Picture
    on at

    @Drrickryp it does yes, but it shows all data for that specific role, where as I am trying to further define based on a second input. 

     

    But yes, it does show.

  • DGWolfe Profile Picture
    on at

    Correction. No, no that doesn't work either. Gallery remains blank

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @DGWolfe 

    Then try

     

     

    Filter('Second SP list', Title = TextInput.Text)

     

     

    I'm trying to see where the problem is, which part of the filter or the list itself. I'm assuming that if you just make 'Second SP list' as the items property, then the gallery populates! Check to make sure the double quote typo is fixed in your formulas. 

  • DGWolfe Profile Picture
    on at

    Hi @Drrickryp ,this works, yes.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    If PowerApps is not generating errors, then I would suggest making sure all your Gallery controls are mapped to a field properly. Try changing the Gallery Data Source to just 'Second SP List' if you want to be sure PowerApps is properly pulling any data.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard