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 / Filter delegation erro...
Power Apps
Answered

Filter delegation error with sharepoint list (startswith and =)

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm getting a blue dot error for filtering a data table like this:

Filter(MyList, StartsWith(Title, ThisTitle), StartsWith(Class,ThisClass), DateDiff(Created, Today())=0).

The last part of the filter (intended to only show records created today) causes the error. 

I'm worried that MyList will eventually exceed 500 records and the latest records (the ones i'm most interested in for this filter) are at the bottom of my sharepoint custom list. Will this filter stop working once the list exceeds 500 items? Is there a way to ensur that the 500 items that are evaluated in powerapps always include the latest ones?

Thanks in advance for your help!

 

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @melsch123,

     

    I moved your posts from Microsoft Flow to PowerApps general discussion.

    For delegation, please check:

    https://docs.microsoft.com/en-us/powerapps/delegation-list

     

    To workaround this, we could first sort the List based on the ID column,

    For example:

    Filter(
     SortByColumns(MyList, "ID", Descending), 
     StartsWith(Title, ThisTitle), 
     StartsWith(Class,ThisClass), 
     DateDiff(Created, Today())=0)

    Regards,

    Michael

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi @melsch123

     

    Have you tried setting a variable beforehand and then filtering by it instead of filtering by the Today() function?

     

    So, on App OnStart or on Screen's onVisible (depending on your needs/usage)

    = Set( TodaysDate, Today() )

    Then when filtering, have it as follows:

    Filter(
              MyList,
                         StartsWith(Title, ThisTitle),
                         StartsWith(Class, ThisClass),
                         Created=TodaysDate
            )

  • Milansinh Raj Profile Picture
    149 on at

    You can increase your record limit to 2000 from Advance settings if needed. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard