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 Warning Issues
Power Apps
Answered

Delegation Warning Issues

(0) ShareShare
ReportReport
Posted on by 114

Hello everyone, i'm facing some delegation issues in my app.
I tried various t osolved the problem by following various videos but couldn't make it through.

Below are the 2 problems i'm facing:

Rudy_Digital_0-1620649499624.png

Thanks loads for helping 🙂

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Rudy_Digital 

     

    Count is not a delegable function. You would need to take help of flow.

    Check Power Apps Delegation - Working with Large Data Sources - YouTube

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

  • Rudy_Digital Profile Picture
    114 on at

    Hello,

     

    @JR-BejeweledOne; 

    @JB0007;

    @RandyHayes 

    Could you guys please me sort out this issue?

    Thanks loads 🙂 

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Unfortunately you will always get delegation warnings when using a First function.   Count is only delegable when Dataverse (CDS) is your data source and you have to turn it on in advanced functions.

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-counts

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-first-last

     

    If you haven't watched the video in Reza's answer, you should.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Rudy_Digital 

    You can consider changing your formulas to the following to remove the delegation warning.

    With({_itms: Filter('Shipment Request', 'Shipment Status'= "Shipment Requested")},
     CountRows(_itms)
    )

    The Filter statement is delegable and it is assigned to a With Scoped variable.  CountRows will not experience delegation issues with a local table.

     

    Do the same for the the remaining.

     

    Another consideration is to look to the Items property of your Gallery - I am assuming the 4 statuses are in a horizontal gallery, if not, I would consider using a gallery instead of separate labels and icons.

    Then, your items property can be the following:

       GroupBy('Shipment Request', "Shipment Status", "_recs")

    Your title Label would then become : ThisItem.'Shipment Status'

    Your count label would then become : CountRows(ThisItem._recs)

     

    As for the bottom formula. Your formula is "technically" delegable.  The editor will provide this warning though.

    You can avoid it with the following formula replacement:

    With({_itms: Sort('Shipment Request', Title, Descending)},
     Value(First(_itms).Title) + 1
    )

     

    I hope this is helpful for you.

  • Verified answer
    Rudy_Digital Profile Picture
    114 on at

    @RandyHayes 
    For the Problem 1, i used your solution and it worked perfectly fine. Thanks 🙂

    Problem 2 i used this formula:

    If(Form1.Mode=FormMode.New,Last('Shipment Request').Title+1,ThisItem.Title), it is working without delegation issue.

    Thanks a lot 🙂 

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 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard