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 / Delegation issue in Da...
Power Apps
Answered

Delegation issue in Dataverse filtering looked-up data

(0) ShareShare
ReportReport
Posted on by 87

Hello,

 

I am facing issue querying through data in my canvas app. There are 2 Dataverse tables - 'Projects' and 'Assignments' (see examples at the bottom).

 

Here is a scenario:

I am logged in to the app as User().Email = 'support2'. This means, that I am supporting projects 'Project1' and 'Project2'.

When I open app, I want to see all the resources assigned to the projects, where I am assigned.

 

So the formula in Items of Resources gallery, looks like this:

 

 

Filter(Assignments, User().Email in LookUp(Projects, ProjectName = ProjectName).SupportTeam)

 

 

Is there a way to make this delegable? Assignments table contains 2000+ rows.

 

Projects table

ProjectNameSupportTeam
Project1support1; support2; support3...
Project2support2; support4; support5
Project3support6

 

Assignments table

ResourceProjectName
resource1Project1
resource2Project1
resource3Project2
resource4Project3
Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @MalyMajo 

     

    Create a collection on app start to store the projects supported by the logged-in user. This is a one-time operation and will not be affected by delegation limits.

     

    // On the OnStart event of the app
    ClearCollect(
    ColSupportedProjects,
    Filter(
    Projects,
    User().Email in SupportTeam
    )
    );

     

    Use the created collection to filter the Assignments table. Since the collection ColSupportedProjects will have all the projects that the logged-in user supports, you can use it to filter the Assignments table.

     

    // Items property of the Resources gallery
    Filter(
    Assignments,
    ProjectName in ColSupportedProjects.ProjectName
    )

    Use AddColumn function also

     

    Filter(Assignments, User().Email in 
    LookUp(
    AddColumn(
    Projects, ProjectName,prjna),prjna = ProjectName).SupportTeam
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • MalyMajo Profile Picture
    87 on at

    Hi @Rajkumar_404 ,

     

    second formula (Items property of the Resources gallery) is non-delegable due to 'in'.

  • Verified answer
    MalyMajo Profile Picture
    87 on at

    Ok, seems like the second formula was delegable in the end, but combination of LookUp with in is non-delegable.

    We have found a workaround, where we patch the project data to assignments table when resource is onboarded. It is not the best solution in terms of data redundancy, but it works. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard