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 / SQL Delegation with Is...
Power Apps
Unanswered

SQL Delegation with IsBlank and multi layer filtering?

(1) ShareShare
ReportReport
Posted on by 732

I am trying to workaround the inability to delegate filtering to SQL with IsBlank. One idea was to do my primary filtering (table size reduction) on another filter and then do a surrounding filter with the IsBlank. I still see a delegation warning. Is PowerApps merging the filters into one SQL call?

 

 

 

Filter(
 Filter(
 '[dbo].[Today Activity Attendance]',
 'Grade Sort' < 0
 ),
 Not(IsBlank(MorningSigninTime))
),

 

 

Categories:
I have the same question (0)
  • BrianHFASPS Profile Picture
    732 on at

    Are you saying that my code will work to reduce initial size on query response and not to worry about outer filter delegation warning?

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    If you want it clean without errors, you can just utilize WITH function. Something like this. 

     

    With( {TodaysAttendance:  Filter('[dbo].[Today Activity Attendance]','Grade Sort' < 0)},

    Filter(TodaysAttendance, Not(IsBlank(MorningSigninTime)))

     

    This will basically get a temporary variable of the delegable data into TodaysAttendance, then run the 2nd filter inside powerapps which doesn't need delegation. However, thing to note, is you can still only return 500 default up to 2000 records with the setting of records for the first query. 

     

    Either way works, I prefer WITH as I can do more with that data being stored locally. 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard