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 / Non-Delegable gallery ...
Power Apps
Answered

Non-Delegable gallery formula

(0) ShareShare
ReportReport
Posted on by 61

Dears,

 

I am having below formula which is non-delegable formula. How do i make it delegable formula in order to avoid unnecessary issues in the future? Your support is highly appreciated.

 

If(LookUp('SP1', RequestID = ThisItem.RequestID, Status.Value) = "In-Use" && CountRows(Filter('SP2', RequestID = ThisItem.RequestID)) < 2, true, false)

 

Best Regards,

Zayar

Categories:
  • Verified answer
    QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,

    I image that you have a delegation warning for the CountRows part of the formula, this formula is non-delegable with SharePoint.

    So Instead of this, use a combination of Sum, ForAll and Filter :

    LookUp('SP1', RequestID = ThisItem.RequestID, Status.Value) = "In-Use" && Sum(ForAll(Filter('SP2', RequestID = ThisItem.RequestID), 1), Value) < 2

     
    (And you don't need a If statement since your formula will return a bool)

    Regards,

  • zayarminaye Profile Picture
    61 on at

    Thanks, @QuentinDURIEZ . It worked perfectly. Appreciate your support.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard