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 on partial dates
Power Automate
Answered

Filter on partial dates

(0) ShareShare
ReportReport
Posted on by 187

I have a birthday checker running on our employee list at the moment, but it takes close to an hour to run as it has run a date checker on every item / employee on the list, checking their birthday which is in a DD/MM/YYYY format.

 

Is it possible to filter the 'get items' based on a partial date, i.e. just the DD/MM part?

 

I've tried setting up a calculated column that reads their birthday as DD/MM, but you can't filter on a calculated column, so that option failed.

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @JamesSnaps ,

     

    Do you want to send a notification when today is employees’ Birthday?

     

    Please take a try with the function formatDateTime to format the date to “dd/MM”.

     

    I have made the following test for your reference.

     

    In the list, there is a date column of type “yyyy-MM-dd”.

     

    Trigger the flow with a button, then get items from the list.

    Add a Condition with the following formulas:

     

    formatDateTime(items('Apply_to_each')?['Date'],'dd/MM')
    
    is equal to
    
    utcNow('dd/MM')

     

     

    Under If yes branch, send a mobile notification.

     

    Image for your reference.

    1.PNG

     

    Best regards,

    Mabel

     

  • JamesSnaps Profile Picture
    187 on at
    Hi Mabel, I actually already have the flow doing exactly as you suggest. However I’m looking for a way to filter the initial ‘get items’ query. At the moment it has to get every item on the list before running the date check as a condition. So is there a way to use a filter query to only get the items that match the current day and month?
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @JamesSnaps ,

     

    Thanks for updating.

     

    I have made some research and test, I am afraid that it might be not possible to format the column you want to use in the Filter query field.

     

    I also tried using a calculated column instead, however, calculated column is not supported in Filter query.

     

    Further, you could also try with action Filter array instead of a Condition. Please check the following flow for a reference:

     

    The function used in Filter array:

    @equals(formatDateTime(item()?['Date'], 'dd/MM'), utcNow('dd/MM'))

    Function used in Compose action is:

    item()?['Title']

    1.PNG

     

    Best regards,

    Mabel

     

  • JamesSnaps Profile Picture
    187 on at

    Thanks Mabel, bit of tinkering and I've got this working, although I ended up filtering on my calculated column through the filter array action. The whole Flow now runs in under a minute instead of 45 of them.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard