Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to Filter Data By Year

(0) ShareShare
ReportReport
Posted on by 115
Hi,
 
I was wondering if you could filter by year. I have done by month before, but when I try "StartOfYear" it does not work... does anybody know the best course of action to filter by the start of the year until now?
 
My code I attached may be wrong because I based it off of the month filter, I made.
 
Thanks in advance.
 
Edit:
Someone stated that I had a space in the title of the column. I fixed it and it still had an issue. The AI helper stated this:
 
The error you're encountering is due to referencing the 'startOfYear' function, which is not defined or valid in the context of the 'Get_items_Report_Approved' action. To fix this, consider using a different function or ensuring that the correct function is being called for the date manipulation you intend to perform.
  • Suggested answer
    David_MA Profile Picture
    11,512 Super User 2025 Season 1 on at
    How to Filter Data By Year
    Your approach is correct, but I think there is a typo in your expression Query filters require that you use the internal name of the fields in the filter. In your screen shot, I see a space in the filter query for the Request Date. Internal names would never contain a space. You can get the internal name of a field by going into the list settings and opening the field. At the end of the URL will be the internal name. Use that in the filter.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492