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 / How to filter table by...
Power Apps
Answered

How to filter table by 1:N relationship table in PowerApps

(0) ShareShare
ReportReport
Posted on by 49

Hi!

 

I'm building a Power Apps Canvas application. I have a Dataverse tables Tasks and Assigned Tasks (one Task may have multiple related Assigned Tasks with different Assignee column value). 

 

Mock.drawio.png

 

In the canvas app I have a drop down of Users.

 

The goal is to show a gallery with list of Tasks which satisfy the following condtion: there are no Assigned Tasks related to the Task and assigned to the selected User. So basically it is the list of available Not Assigned Tasks for a particular person (not current user in general case).

 

E.g. I have Task 1 without Assigned Tasks, Task 2 assigned to User A, Task 3 assigned to User B, Tasks 4 assigned to User A and to User B. Then:

  • If User A is selected in the dropdown, then gallery shows Task 1 and Task 3.
  • If User B is selected in the dropdown, then gallery shows Task 1 and Task 2.
  • If User C is selected in the dropdown, then gallery shows Task 1, Task 2, Task 3 and Task 4.

I don't get how to achieve this using View or Filter function without using intermediate collections. The query has to be delegated to Dataverse.

I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @IuriiPalchuk 

    This is my test Dataverse table :

    vyueyunmsft_0-1701747710846.png

    This is my canvas app:

    vyueyunmsft_2-1701747929334.png

     

    I create a fixable vertical gallery and use the Visible property to realize the "not in" logic.

    Visibile: 

    Not(ThisItem.Name in ForAll( 'Assigned Tasks'.cr667_Task , {Task :Task.Name}) && ThisItem.Name in
    ForAll(Filter('Assigned Tasks' As Item , Item.Assignee.Name =Dropdown2.Selected.Name),{Task:Task.Name}) )

     

     

     

     

    If I misunderstand what you mean, you can describe your needs and your expected outcomes in detail so that we can better help you.


    Best Regards,

    Yueyun Zhang

     

  • IuriiPalchuk Profile Picture
    49 on at

    Hi Yueyun!

     

    I accept this as a solution.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard