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 / Gallery with Filter fr...
Power Apps
Answered

Gallery with Filter from 2 SharePointlists

(0) ShareShare
ReportReport
Posted on by 18

Dear All,

 

I have a Question about a Gallery Filter:

Following Szenario:

2 Sharepoint Lists:

 

TravelSeatrequests
IDID
departureTimeTravelID
returnTimeRequester
Owner 

 

Employees can Create a travel and offer seats for other colleagues. The TravelID in Seatrequests is the Value of the ID from the associated Travel. 

 

I have a Gallery where all my Seatrequests are shown with a Simple Filter: Filter(Seatrequests,Requester.Email = currentUser.Email)

Problem: It shows also requests from the Past because the departureTime is in an other SharepointList (Travel) and this makes it not possible to Filter it easily for me. I think I have to use a Lookup or someting to merch the ID with TravelID to get the depatruretime > now().

Filter( Seatrequests, Requester.Email = currentUser.Email && LookUp(Travel, ID = TravelID, departureTime > now())) shows me nothing. Has anyone an Idea how I can format the Filter? Many Thanks, Peter

Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Peter_Sch 

     

    Try this formula,

     

    Filter( 
    Seatrequests,
    Requester.Email = currentUser.Email &&
    Lookup(
    Travel,
    ID = Seatrequests.TravelID,
    departureTime
    ) > Now()
    )

    (Or)

    Filter(
    Seatrequests,
    Requester.Email = currentUser.Email &&
    LookUp(
    Travel,
    ID = Seatrequests.TravelID && departureTime > Now()
    ) <> Blank()
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • Peter_Sch Profile Picture
    18 on at

    Thanks for your Time,

     

    the first one tells me Lookup is an unknown or unsupported funktion. 

     

    the second one tell me he cant compare ID = Seatrequests.TravelID because ID is a number and Seatrequests.TravelID is a table. And <> cant be compared be cause of types Record,objnull.

  • Verified answer
    Peter_Sch Profile Picture
    18 on at

    I got the Solution. Sometimes it just need a sleep and more Coffee 🙂 

     

    Filter(Seatrequests, TravelID in Filter(Travel, ID && currentUser.Email = User().Email && departureTime > Now()).ID)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard