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 / Lookup last related va...
Power Apps
Answered

Lookup last related value from a 2nd sharepoint list.

(1) ShareShare
ReportReport
Posted on by 42
I want to include a value from a 2nd sharepoint list that is related to a list being displayed in a vertical gallery.
Initial List: TicketList
2nd List: Notes
 
The Notes list includes a reference to the first list.  That reference column is named TicketID, which has the value from the TicketList.ID.  There is a one-to-many relationship between the TicketList item (1) and the Notes items (many).
 
The TicketList includes the following columns which are included in the Gallery: ID, Customer, Title, and others...
 
The Notes list includes the following columns which are pertinent to what I'd like to do:
 
TicketID (related to the unique TicketList Item, this is a Numeric column type))
Note (text field icontaining the note message, multiple line text column )
Created (Date/time the note was created, Date and Time column)
CreatedBy (The person who entered the note, Person or group column)
 
I'd like to include the last (most recent) Note associated with a Ticket (not every Ticket has notes, if that's pertinent to a solution).
 
I haven't gotten far enough to even display all notes, let alone the last one.  I've created a text field in the Gallery and have tried the following code:
Text=Lookup(Notes,TicketID=ThisItem.ID),Note (I get  the error "This formula uses scope, which is not presently available for evaluation").
 
In addition to the Note itself, I'd like to display who created it and when it was created.
 
Any assistance is appreciated.
 
 
 
I have the same question (0)
  • Verified answer
    ET-30071444-0 Profile Picture
    42 on at
    Never mind!  I figured out that I needed to create a child gallery, which works perfectly.  Thanks for reading.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard