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 / Join two SharePoint li...
Power Apps
Answered

Join two SharePoint lists and return one value

(0) ShareShare
ReportReport
Posted on by 182

I am sure this has been asked and answered before.  In my app I am getting a list of items based on a Plant ID number.  In this list is another ID that points to an item in another list.  It is that item description I am trying to get to.  So in SQL I would write something like.  Also a quick DD

Select il.description from PlantItems pi

join ItemList il on pi.itemID = il.itemID

where pi.PlantID=1100

 

Screenshot 2021-10-28 084603.jpg

how would this work for a gallery in my app?  Would I use a With statement?

 

Thanks for the information

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

    Hi @guyinkalamazoo 

     

    In my example, I have used 3 SharePoint List but the concept is the same.

     

    IssueTracker --> EventIItinerary --> Address

     

    Set the Items property of Gallery to SPList1

    StalinPonnusamy_0-1635425695662.png

     

     

    Each column description

    SPList1 Desc

    • ThisItem.'Issue description'
    • SPList 1 - Field

    SPList1 ID - ThisItem.ID (SPList 1 - Unique ID)

    SPList2 ID - ThisItem.SingleEvent.Id (SPList 2 - Unique ID)

    SPList1 Lookup to SPList2 - ThisItem.SingleEvent.Value (Lookup Field to SPList 2)

    SPList3 Lookup ID

    • LookUp(EventIItinerary, ID= ThisItem.SingleEvent.Id).Address.Id
    • Id of SPList 3
    • lblAddressId

    SPList3 Data - LookUp(Addresses, ID= LookUp(EventIItinerary, ID= lblAddressId.Text).Address.Id).Address1

     

    StalinPonnusamy_1-1635425765803.png


    Thanks,
    Stalin - Learn To Illuminate

  • guyinkalamazoo Profile Picture
    182 on at

    Thanks, this was enough to get what I need.  Have a great day!

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @guyinkalamazoo 

     

    I realized, already has a table setup so I just put it together.

     

    StalinPonnusamy_0-1635426750917.png

     

    SQL

    StalinPonnusamy_1-1635426811465.png

    Gallery Items property to 

    StudentTest

     

    • "Table 1 Data" - ThisItem.FirstName
    • "Table 2 ID" - ThisItem.TeacherID
    • "Table 2 Data" - LookUp(Teacher, TeacherID= ThisItem.TeacherID).TeacherName
    • "Table 3 ID" - LookUp(Teacher, TeacherID= ThisItem.TeacherID).TeacherInfoID
    • "Table 3 Data" - LookUp(TeacherInfo, TeacherInfoID= Value(lblTeacherInfoId.Text)).TeacherInfoName


    Thanks,
    Stalin - Learn To Illuminate

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 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard