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 / Get Items filter query...
Power Apps
Answered

Get Items filter query getting the month of the date column

(1) ShareShare
ReportReport
Posted on by 836 Moderator

Im trying to get my head around the get items action filter query, 

what I want to get is the month of the date column of my sharepoint named DateofReport, however I cant seem to get what I want 

My purpose is so that the flow wouldn't take so long and will only get items that are within the month. This flow runs once everyday. 

What I've tried is

I have a varaible with this formula: 
 
formatDateTime(utcNow(), 'MM')

and in the filter query of the get items I have this formula. Outputs refer to the formula above.


 
formatDateTime(item()?['DateofReport'],'MM')


 
Categories:
I have the same question (0)
  • w.p Profile Picture
    8,345 Super User 2026 Season 1 on at
    OData in SharePoint's "Get items" does not support Power Automate expressions like formatDateTime.
    It can only use SharePoint columns with basic operations. e.g. Created ge 2025-04-01T00:00:00Z
     
    Retrieve all items first then use a Filter array action
     
  • Suggested answer
    WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    This should work
     
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • Suggested answer
    w.p Profile Picture
    8,345 Super User 2026 Season 1 on at
    you can also use filter array action.
  • Suggested answer
    ronaldwalcott Profile Picture
    3,866 Moderator on at
    If you want to increase the speed of the flow consider adding yearmonth as an index in the SharePoint list.
    Change your program to write a YearMonth column.
    In your flow filter by yearmonth extracted from the current date and the flow should retrieve the data quicker.
  • KevinGador Profile Picture
    836 Moderator on at
    @WarrenBelz

    I got a notif from you last Friday but I was out of work so I decided I will look into it this weekend but it was gone :( 

    @w.p 
    I tried the filter array but whenever I use this it iterates between two "apply to each" which is kind of odd
  • w.p Profile Picture
    8,345 Super User 2026 Season 1 on at
    Enter it manually, don’t use the dropdown.
      
  • w.p Profile Picture
    8,345 Super User 2026 Season 1 on at
     
    In-depth analysis into Get items and Get files SharePoint actions for flows in Power Automate
  • Verified answer
    WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at
    Very strange - I posted this, but it seems to have disappeared. This Flow should give you what you need (your column name will be different)
     
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,009

#2
11manish Profile Picture

11manish 672

#3
Valantis Profile Picture

Valantis 628

Last 30 days Overall leaderboard