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 / filtering a gallery ba...
Power Apps
Answered

filtering a gallery based on a label using a lookup?

(0) ShareShare
ReportReport
Posted on by 148

Have a simple gallery that displays all records from a sharepoint list called Task

I have added an additional field (named Taskname) to the gallery that looks up a matching Name from another sharepoint list called Task_ID

LookUp('Task_ID ', ID = ThisItem.ID, Name)

 

I only want to display those records that have a Name and cannot work out how to filter in the gallery

tried this but doesnt work:

Filter(Task, Not(IsBlank(Taskname))) 

 

Any help appreciated

 

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

    Hi @cheezy ,
    The structure would be like this

    Filter(
     AddColumns(
     Task, 
     "TaskName",
     LookUp(
     'Task_ID ' As aTask, 
     aTask.ID = ThisItem.ID
     ).Name
     ),
     !IsBlank(TaskName)
    )

    but I am wondering whether the matching field in 'Task ID ' is something other than ID (I doubt matching records would have the same ID ).

     

    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

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard