web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter by Date not wor...
Power Apps
Answered

Filter by Date not working

(1) ShareShare
ReportReport
Posted on by 71
Hi Hoping I could get some help
 
My filter on my sharepoint list is returning blank table.

In Summary I am trying to have it always return the current year as the dynamic value, but then all items within the month of January
 
The Code: 
 
With(
    {
        StartDateJan: Date(
            Year(Today()),
            Month(1),
            Day(1)
        ),
        EndDateJan: Date(
            Year(Today()),
            Month(1),
            Day(31)
        )
    },
    ClearCollect(
        PackagesJanNewChartvar,
        Filter(
            'Alldeliveredvar',
            Created >= StartDateJan,
            Created <= EndDateJan
        )
    )
)

The SP List
 
Categories:
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,117 Super User 2026 Season 1 on at
    Hey,
     
    could you try to change it like this:
    With(
        {
            StartDateJan: Date(
                Year(Today()),
                1,
                1
            ),
            EndDateJan: Date(
                Year(Today()),
                1,
                31
            )
        },....
      Either this or you need to enter a complete Date into Month() and Day(). 
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

  • Sirbatchu Profile Picture
    71 on at
    Hi DBO DV, thanks for the post.
     
    Unfortunately, this did not make any difference, still a blank table.
  • timl Profile Picture
    36,634 Super User 2026 Season 1 on at
    I would have thought that @DBO_DV's suggestion would work.
     
    Could you confirm what 'Alldeliveredvar' is? Judging by the name, is a variable rather than the actual SharePoint list?
     
  • Daniel Bocklandt Profile Picture
    5,117 Super User 2026 Season 1 on at
     
    I've just got another idea. Maybe it is a Formating problem. 
    Just add the Datasoruce in a gallery and put 'Created' in a Textlabel.
    Sometimes it doesn't work as expected when you compare DD/MM/YYYY with MM/DD/YYYY. Could you check if the date frome SharePoint and The variable are the same? 
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

  • Verified answer
    Sirbatchu Profile Picture
    71 on at
    Hi All
     
    Firstly, massive apology, I believe you are all correct, the formula I believe does indeed work, the issue is actually the old delegation issue.
     
    I have 2000+ records, and powerapps was set to only grab 500, I believe to combat this, as I am only wanting to fetch the current years records, I could do something that includes "Last" or, look at scrubbing the sharepoint list a bit to reduce the amount of records present.

    Regards
     
    Matt

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 211 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard