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 / Having trouble joining...
Power Apps
Answered

Having trouble joining 2 datasources using the LookUp function

(0) ShareShare
ReportReport
Posted on by 380

@WarrenBelz I have a Sharepoint list called Trips and a collection called colTripData (based on the TripDetails list) - both have the field tripid amd I am trying to join them in the Items property of a Gallery so I can filter on the field region which is in the Trips list only. I want to have the region field equal to the value of a variable called varRegion which I have already set.

 

Here is the code I have tried on the Items property of the Gallery:

SortByColumns(
 With(
 {_details: colTripData},
 Filter(
 _details,
 LookUp(
 Trips,
 tripid = tripid
 ).region = varRegion
 )),
 "tripdate"
 )

it comes back with "Error when trying to retrieve data from the network"

 

what am I doing wrong?  thanks...

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @bobgodin ,

     

    Please try:

    ForAll(
     Trips,
     Patch(ThisRecord,LookUp(colTripData,tripid=Trips[@tripid]))
    )

     

    Best Regards,

    Bof

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard