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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / ODATA Filter 'ge' 'gt'...
Power Automate
Answered

ODATA Filter 'ge' 'gt' etc. not working for me

(0) ShareShare
ReportReport
Posted on by

Hi there im trying to use ODATA filter to filter out dates that are exactly 31 days old or older.

I've been testing out using "ge" and "gt" filters but this is the error i get every time.

 

Daniel_orn_0-1668166710885.png

"eq" filter works, but i'd like to also keep notifying when its greater than the date not just equal to it.

 

Any suggestions?

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  as the error says, ge and gt filters are not supported. You can use Filter Array action to further filter rows returned from excel to filter by date.

  • Community Power Platform Member Profile Picture
    on at

    I realized as i posted this it should of course be "lt" or "le" but that does not work either since the site says it's not supported.

  • Community Power Platform Member Profile Picture
    on at

    Hi Anna, 

    Thanks for the input.

    As i'm new to this, could you give me an example of a filter array that would provide this?

    If you have the time.

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  you can refer to this blog post https://www.tachytelic.net/2020/11/convert-excel-dates-power-automate/

     

  • Verified answer
    RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    Not wishing to step on @annajhaveri 's toes but I had an example already open as I was explaining filter arrays to a colleague:

    FilterArrayExcelge.png

     

  • Community Power Platform Member Profile Picture
    on at

    Thank aslot, Rob and Anna.

     

    @RobElliott 

    So for instance, would this filter give me the dates that are inserted into the column "SeinastUppfært" that are older than 31 days?

     

    Daniel_orn_0-1668171961841.png

     

  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    I would do it with formatDateTime(addDays(utcNow(),-31),'yyyy-MM-dd')

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hey again, thanks for the feedback @RobElliott I combined the suggestion but could not get it to work for some reason, however I tried a workaround that was found within the link that @annajhaveri  provided that worked for me. I created another column in my spreadsheet that gives a True or a false if the date from the date column was more than 62 days old (Changed conditions to 2 months). then I used the ODATA Filter to filter by that column to send the emails if it that column equaled to "True"

    It's a very straight forward brute force workaround but if anyone's having this issue this is what I did: 

    Daniel_orn_0-1668415039193.png

    Daniel_orn_1-1668415076003.png

    Daniel_orn_2-1668415094625.png

    Daniel_orn_3-1668415166240.png

     

    Thanks again for your inputs.

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard