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 / Delegation on SQL tabl...
Power Apps
Unanswered

Delegation on SQL table count?

(0) ShareShare
ReportReport
Posted on by 170
I need to count rows from a filtered data table coming from Azure SQL.  However, I get a delegation warning.  I also tried using CountIf (with true) and get the same. Is there a way to do with without delegation?  Thanks.
 
 
EDIT: For now, I am filtering the table into a collection and then doing a count on it.  
Categories:
I have the same question (0)
  • Verified answer
    jrletner Profile Picture
    720 Super User 2025 Season 2 on at

    Hi @CMSGuy,

    Unfortunately, that is not delegable to SQL.

    However, you have a couple of options.

    1. Write a stored procedure in SQL that accepts the WEDBID as a parameter and returns the count of records matching that condition.

    Call this stored procedure from Power Apps using a custom connector or the SQL connector if available.

    2. Using a collection

    ClearCollect(FilteredCollection, Filter(Financials, WEDBID = SelectedRecord.WEDBID));
    CountRows(FilteredCollection)

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