I would like to only show data in the Data Table from the present day. I.e. I do not want entries from days ago showing up on the power app otherwise the size of the table will be enormous. I still want this old data on sharepoint, just not displayed currently on the power apps.
Is there a specific formula I need to type under the "items" section?
I was thinking something along the lines of: Filter(Table, Date = Today()) however this does not work.
Solved! Go to Solution.
If you can keep the list item count under 2,000 by deleting old records it should continue to work.
This may sound weird but try it in this order:
Filter(DataSource, Today() = StartDate)
Otherwise this should work
Filter(DataSource, Text(StartDate, DateTimeFormat.ShortDate) = Text(Today(), DateTimeFormat.ShortDate))
Thank you for that!
It does filter correctly when I have the command: Filter(DataSource, Date = Today()) however, a blue icon comes up on the left hand side corner saying: 'Suggestion: Part of this Filter formula cannot be evaluated remotely due to service limitations. The local evaluation may produce suboptimal or partial results. If possible, please simplify the formula. For more information, please see the Filter function documentation'.
Any idea how to fix this please?
Hi. that is because the filter and today() functions and their interaction with the delegation capabilities of PowerApps. You should not use that function multiples times because that functions works locally and it will not work well if your data table filter o query returns more than 500 records. My recommendation is to preload the today() value in a global variable or to create a collection only if you are working with + 500 records. More information about delegation here: https://docs.microsoft.com/en-us/powerapps/delegation-overview#blue-dot-suggestions and https://docs.microsoft.com/en-us/powerapps/delegation-list
Thanks for that!
Given I will be dealing with 500+ records (not presently however the app is a form that will be submitted daily to Sharepoint, thus will reach 500+ records as time goes by), how do you suggest I "preload the today () value in a global variable"? I understand to create a global variable I need to set the value in the form: Set( MyVar, 1). What would you suggest the formula for this would be?
If you data list is over 500 but under 2,000 you could try a new feature that allows you to adjust the delegated row limit up to 2,000. Here is a blog post about the new feature.
Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.
Fill out a quick form to claim your user group badge now!
Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities
Features releasing from October 2019 through March 2020
Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.
Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications