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 / Need help understandin...
Power Apps
Unanswered

Need help understanding delegation

(0) ShareShare
ReportReport
Posted on by

Hi,

I have the following formula:

CleanAndClear_0-1661511639254.png

 


Filter(Check,task_id = LookUp(Task,task_name = CurrentTask).ID).check_name
"Check" and "Task" are SharePoint lists, VarCurrentTask is a context variable. ID, task_id, task_name and check_name are columns in the lists.

 

What I don't understand is why I get a warning message that this formula is not delegable on the "equals" and ID part. I don't use any non-delegable formulas, both Filter() and LookUp() should be delegable to SP, and all the columns I use are either string or integer, nothing else.

 

Can someone explain please why is this not delegable? And maybe suggest a way to make it delegable?

Categories:
I have the same question (0)
  • Verified answer
    PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @CleanAndClear Could you try this instead?

    Set(myId, LookUp(Task,task_name = CurrentTask).ID);

    Filter(Check,task_id = myId).check_name

     

    Does this make any difference?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • CleanAndClear Profile Picture
    on at

    @PowerRanger  It indeed worked.

    So is it the nested lookup that is the problem? So you cannot delegate nested functions, even when the functions themselves are delegable? And you need to stay on the top level to keep delegation?

     

    Anyway, thanks a lot!

  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @CleanAndClear ,

    Firstly you should accept @PowerRanger 's solution to this. To answer your question, SharePoint is not a Relational Database and Relational (secondary) queries are not Delegable - you have asked it to Filter Check and it will not do Task in the same query, however you can send it two separate Delegable queries, either as in @PowerRanger 's response, or if you do not want to trigger anything (the Variable) and simply have a Filter

    With(
     {
     wID:
     LookUp(
     Task,
     task_name = CurrentTask
     ).ID
     },
     Filter(
     Check,
     task_id = wID
     ).check_name
    )

     

  • CleanAndClear Profile Picture
    on at

    Hi  @WarrenBelz 

    Thank you for the explanation, now it's perfectly clear.

    I didn't accept the solution sooner as I did not want to close the topic because even though I had a working solution, but I still did not understand the issue completely. Now I am very happy to thank you both for help and close it.

     

    Cheers!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard