web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter CDS with relate...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 802 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 273

Last 30 days Overall leaderboard