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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation issue in Da...
Power Apps
Unanswered

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,741 Super User 2025 Season 2 on at
    Re: Delegation issue in Dataverse filtering looked-up data

    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
    Re: Delegation issue in Dataverse filtering looked-up data

    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
    Re: Delegation issue in Dataverse filtering looked-up data

    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard