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 Apps
Answered

Delegation warning

(0) ShareShare
ReportReport
Posted on by 494

Hi Guys,
Does anyone know how to fix this delegation warning, I have 8K plus records and I wanted to display them in the gallery. here's my code.

With({wreq: Sort(
 Filter(
 '[dbo].[Request]', Status = 1,
 ApprovalStatus = Dropdown3.SelectedText.Value,
 Requester=_myProfile.UserPrincipalName
 ), Descending
 ), 
 condition1: RequestDates_1.SelectedDate=Blank() && RequestDates.SelectedDate =Blank(), 
 condition2: RequestDates.SelectedDate = Blank()
 }, 
 
 If(
 condition1, Filter(wreq, TransactionDate >= RequestDates.SelectedDate), 
 condition2, Filter(wreq, TransactionDate <= RequestDates_1.SelectedDate),
 Filter(wreq, TransactionDate <= RequestDates_1.SelectedDate && 
 TransactionDate >= RequestDates.SelectedDate
 )
 )
)

Here's the warning screenshot

Big_S_0-1628136212612.png

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Big_S 

    You are missing the column name to sort on. It needs to be in front of the Descending in the formula.

  • Big_S Profile Picture
    494 on at

    Hi @Drrickryp ,
    I have added the column TransactionDate but still get the warning

    Big_S_0-1628137576749.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    It doesn't make sense. Sort is delegatable in every datasource.

  • Big_S Profile Picture
    494 on at

    Hi @Drrickryp ,
    I figured it out it was my mistake thank you so much, adding the transaction date column was correct.

  • Big_S Profile Picture
    494 on at

    Hi @Drrickryp 
    I have used and updated your code and added the If statement now I got a delegation warning can you help me how to fix this? here's the screenshot of the code.

    Big_S_0-1635345964241.png

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard