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 / Text label formula help
Power Apps
Answered

Text label formula help

(0) ShareShare
ReportReport
Posted on by 161

I have two galleries, Gallery A that pulls from SharePoint List A and Gallery B that pulls from SharePoint List B. There is a text label in Gallery A, I want this text label (symbolized by the red question mark in the example provided below) to look through Gallery B for the contract number that matches the contract number in Gallery A, then look through those matching records under the Date Last Report Received column (highlighted in orange below) for the most recent date, and display the Next Report Due Date for that contract.  The Next Report Due Date is a column in Gallery B. I've tried to illustrate the situation in the below two tables. What formula can I use to get the desired result highlighted in bright yellow?

 

SamanthaLavoie_3-1699732632310.png

Thanks,

Samantha

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @SamanthaLavoie ,

    Try this format

    First(
     Sort(
     Filter(
     SPListB,
     'Contractor Name' = ThisItem.'Contractor Name' 
     ),
     'Date Last Report Received',
     SortOrder.Descending
     )
    ).'Next Report Due Date'

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • SamanthaLavoie Profile Picture
    161 on at

    Hi @WarrenBelz! Thanks for the quick response, that worked perfectly! 🙂

     

     

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard