I am trying to only show items within today if the start time and end time is today since this is being displayed on Sharepoint.
the gallery does not change no matter if i use Now as well which i think should work.
Sort(Filter('PTO Calendar', 'Start Time' <=Today() && 'End Time' >=Today()), SortOrder.Descending)
Looks like its a logic issue as the 'start time' is less than or equal to and the 'End Time' is greater than or equal to.
So try that:
Sort(Filter('PTO Calendar', 'Start Time' >=Today() && 'End Time' <=Today()), SortOrder.Descending)
I would also say that Today() should be stored in a variable as it will help with delegation.
If you want it to show only if start time and end time are both today then use:
Sort(Filter('PTO Calendar', IsToday('Start Time') && IsToday('End Time'), SortOrder.Descending)
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."
Sorry, I left out a bracket, my bad.
I get delegation warnings, but not errors.
Can you please share your formula, with the errors?
Fixed that and now its blank and i know there are items in the list with a Start Date and End date.
I can only guess it does not like the format of the date/Time in the list but not 100% that's it.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.