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 items where th...
Power Apps
Answered

Gallery items where the filter source is a different list

(0) ShareShare
ReportReport
Posted on by 19

Hi,

I'm planning to do an simple event manager for a reccuring event and one part of it is the session backlog.

The data is located in two different sp lists: 'EMT.Sessions' and 'events'

One column 'EDD' within 'EMT.Session' looks up the data from the 'events' list.

The 'events' list has a colum (type choice) with the state of the event (planned, open for registration, done)

 

What I want to do now is to create a Gallery where it only shows sessions which are assigned to events that are not in the status 'done', but I really can't get my head around the syntax and the expected format.

 

At the moment the Items value of the Gallery has the following formula:

SortByColumns(Filter('EMT.Session', StartsWith(Title, TextSearchBox1.Text),EDD.Value = "2018-2"), "Title", If(SortDescending1, Descending, Ascending))

 

for what I plan to do the "2019-2" after EDD.Value should be replaced with something like this:

lookup(events, status != 'done')

But I can't get it to work as it always rejects either the operator and/or the returned result as wrong

 

Categories:
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    You're looking for something along the lines of the expression below:

    SortByColumns(
     Filter(
     'EMT.Session',
     StartsWith(Title, TextSearchBox1.Text),
     EDD.Id in Filter(events, status <> "done").ID),
     "Title",
     If(SortDescending1, Descending, Ascending))

    The idea is to take the ID property of all events with status different than 'done', then filter the sessions list where the id of the lookup column is in the ids you found before.

  • Verified answer
    tuhriel Profile Picture
    19 on at

    Okay that makes sense. There was still an argument missmatch, but I could figure that out:

     

    SortByColumns(
     Filter(
     'EMT.Session',
     StartsWith(Title, TextSearchBox1.Text),
     EDD.Id in Filter(events, status.Value <> "done").ID),
     "Title",
     If(SortDescending1, Descending, Ascending))

    Thanks a lot

     

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard