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 Automate / Filter Array Date Ques...
Power Automate
Answered

Filter Array Date Question - Display items for Month

(0) ShareShare
ReportReport
Posted on by 8

I have a simple SharePoint list. 

ID | Title | Due 

1     Dave   01/15/2020

and created a workflow to fire the first day of each month. I.e 01/01/2020, 02/01/2020 etc. 

My goal is to go through my list, and email me a list of items with a due (date) occurring in the month. So if I run April 1, I should see items due for only April. If I run May, I should see items due only for May. 

 

For the life of me I can't grasp how to write the filter array. I found this;

@lessOrEquals(formatDateTime(addDays(item()?['Due'],30), 'MM/dd/yyyy') utcNow('MM/dd/yyyy'))

but it returns all items from the beginning. 

This returns everything from Jan through April. 

Categories:
I have the same question (0)
  • Min Rao Profile Picture
    187 on at

    @TxSteve 

     

    what about using startofmonth like following to compare two date ?

     

    equals(startOfMonth(variables('DueDate')), startOfMonth(utcNow()))

     

    CompareDateThisMonth.png

     

    result.png

     

    If I have answered your question, please mark your post as Solved.

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @TxSteve ,

     

    Please try this configuration:

    82.PNG

    Feel free to let me know if you have any other questions.

     

    Best Regards,

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 Automate

#1
David_MA Profile Picture

David_MA 103 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 87

#3
trice602 Profile Picture

trice602 63 Super User 2026 Season 1

Last 30 days Overall leaderboard