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 / Filter a gallery in it...
Power Apps
Unanswered

Filter a gallery in its lookuped values

(0) ShareShare
ReportReport
Posted on by 42

Hello everybody. Is there a way to filter a gallery in its lookuped values?

RPowerAutomated_1-1700825154434.png

 

 

 

Gallery.Items = tabVertrag

 

 

 

 

Vertrag has a Projekt Id, Projekt as a Kunde ID. 

 

In order to get the projekt name, i would use this formula

 

 

 

Text = LookUp(tabProjekt; ThisItem.ProjektID=Projekt_ID; Projektname)

 

 

 

 

In order to get the Kunde name this one: 

 

 

 

Text = LookUp(tabKunde; LookUp(tabProjekt; ThisItem.ProjektID=Projekt_ID; KundeID)=Kunde_ID; Kundename)

 

 

 

 

 

I also tryed this formula but unfortunately "ThisItem" is not being recognized there and as it seems ever "." is not allowed.

 

Gallery.Items = Filter(
tabVertrag,
LookUp(tabProjekt, ThisItem.ProjektID = Projekt_ID).Projektname = TextInputProjekt.Text &&
LookUp(tabKunde, LookUp(tabProjekt, ThisItem.ProjektID = Projekt_ID).KundeID = Kunde_ID).Kundename = TextInputKunde.Text
)

 

 

Thank yout in advance.

Categories:
I have the same question (0)
  • Chris-D Profile Picture
    1,246 on at

    Hi @RPowerAutomated, the problem here is that ThisItem is only valid inside the gallery so you can't use it on your Items property. We first need to add the extra columns and then search on them. 

     

    Try this, I hope I have understood your code properly:

    // Gallery.Items
    
    // Filter where your search matches either the projekt or kunde names
    Filter(
    
     // Add columns with projekt and kunde names fron the project record
     AddColumns(
    
     // Add a column to tabVertrag and look up the project record
     AddColumns( 
     tabVertrag,
     "projekt_record", LookUp( tabProjekt, ProjektID = Projekt_ID)
     ),
    
     "projekt_name", projekt_record.Projektname
     "Kunde_name", LookUp( tabKunde, KundeID = projekt_record.Kunde_ID).Kundename
     ),
    
     projekt_name = TextInputProjekt.Text || Kunde_name = TextInputProjekt.Text
    )
    
    

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard