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 CDS with relate...
Power Apps
Answered

Filter CDS with related fields in Canwas app gallery

(0) ShareShare
ReportReport
Posted on by 144

I have two tables in CDS.  Projects and tasks.   There is a relation between Projects:Projectname and Tasks:Project.

 

I have one gallery in my Canvas app for "Projects"(ProjectGallery) and one gallery for "Tasks"(TaskGallery).   When i select a project (Thisitem.IsSelected) i like to filter the Tasks gallery, so i only see thasks that is related to the acutal project in the task table, without getting delegation warning. 

 

In "Tasks" the Project field is a lookup field.  In "Projects" is the primary name (text). Any idea how the correct: Filter(Tasks;.....) should be like to select related fields without delegation warning. 

cds-filter.jpg

I have the same question (0)
  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @TrulsB,

    Would it be possible to share your current filtering expression? The project's primary name is text but that's just what is displayed instead of the displaying the primary key. Behind the scenes, the Project record primary ID/key (GUID) is saved on Tasks so you'll have to filter with that. Here's an example:

    TaskGallery.Items = Filter(Tasks, Project.PrimaryId = ProjectGallery.Selected.PrimaryId)

     Hope this helps!

  • TrulsB Profile Picture
    144 on at

    Hi,

    my filter is project-filter.JPG

    With this filter it do now show the records in TaskGallery i, and i also get an delegation warning. 

     

    Without filter it looks like this: 

    projects-skjerm.JPG

     

    With filter it looks like this:

    project-withfilter.JPG

     

    My database tables look like this.  Norwegian "Oppslag" in Tasks, =  Lookup 🙂

    project-task.JPGproject-projects.JPG

     

    It must be somthing im missing here?

  • TrulsB Profile Picture
    144 on at

    I have problem With reply to you, please look into the case

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

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard