Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Delegation Warning

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have a formula (below) to show the number of tickets in a sharepoint list that matches the value that has been selected in a drop down list. This has now exceeded 2000 so i'm only seeing the result of 2000. How am I able to see beyond 2000 please? 

CountRows(
 Filter(QualityPortal, 'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value))

 Thanks in advance

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: Delegation Warning

    Hi @Dave-ITMan ,

    If you have a filter that outputs more than 2,000 rows, the CountRows() on this output will not work. There are some other workarounds - for instance if you had another column that had a small number of possible values (example 3) and none of these combined with the main filter had more than 2,000 records

    With( 
     {
     wData1:
     Filter(
     QualityPortal, 
     'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value &&
     YourTextField = "A"
     ),
     wData2:
     Filter(
     QualityPortal, 
     'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value &&
     YourTextField = "B"
     ),
     wData3:
     Filter(
     QualityPortal, 
     'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value &&
     YourTextField = "C"
     )
     },
     CountRows(wData1) + CountRows(wData2) + CountRows(wData3)
    )
    

     

  • Dave-ITMan Profile Picture
    on at
    Re: Delegation Warning

    Hi @WarrenBelz  and @Drrickryp  thank you for the response. 

     

    Basically, the screen that I have is like a dashboard to count certain required options from dropdown lists (see attached image), each of these will eventually grow above 2000 records which as you can see that one already has. I've used your recommended code for the one over 2000 records which has removed the delegation warning, what would be my best way to actually view the total figure in this scenario so that my users can see exactly how many have been reported? 

     

    Appreciate the help

  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Re: Delegation Warning

    Hi @Dave-ITMan and thanks for the tag @Drrickryp ,

    This may assist by "pre-filtering"

    With( 
     {
     wData:
     Filter(
     QualityPortal, 
     'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value
     )
     },
     CountRows(wData)
    )

    so up to 2,000 rows resulting from the filter can be counted (but CountRows in itself is not Delegable and cannot count more than this).

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Delegation Warning

    @Dave-ITMan 

    Take a look at @WarrenBelz 's blog Practical PowerApps under Delegation for several work arounds.  Which one to use depends on the ultimate size of the list. 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard