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 / Using the LookUp funct...
Power Apps
Unanswered

Using the LookUp function to Join Tables

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I would like to create a gallery where the items of the gallery are a list of sales reps that have an associated account visit for the selected date.  I have an app with the following Tables and relationships.

 

What I've been trying to do is apply a filter to the visits table and save it into a new table.  Then join this new table with the customers and salesRep tables.  With the new collection use the distinct command to list the sales reps in the gallery.  Once the gallery is made, pass the generated joined table to the next screen.  The end goal is to be able to send an email to each sales Rep recapping the information from the visits table.

 

salesRep - 1 to many relationship with customers

customers - 1 to many relationship with visits

visits

 

Sales Rep

jhc5091_0-1639503072304.png

customers

jhc5091_1-1639503179028.png

Visits

jhc5091_2-1639503214596.png

 

 

 

 

 

 

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous In the Items property put (you can replace Now() with any other date),

    Filter(visits, yourDateColumn=Text(Now(), "mm/dd/yyyy" ))

    In the visit label,

    ThisItem.Name

    In the Sales Rep Label,

    LookUp(customers, customer=ThisItem.customers.customer).salesRep.'Full Name'

    You will get this result,

    CNT_0-1639517803018.png

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @CNTI would like it to look like the following.  The first column is a list of all the sales reps that have visits for today (or datepicker2.selectedDate).  When you select a sales rep, it opens a new screen where it lists the visits in another gallery.  I think I need to make a collection where it joins the visit table, the customer table, and the sales rep table.

     

    Gallery 1 
    Sales Rep 1Visit 1
     Visit 2
     Visit 3
    Sales Rep 2Visit 4
     Visit 5
    Sales Rep NVisit 6
     Visit 7

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

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard