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 GetItems Dates ...
Power Automate
Answered

Filter GetItems Dates stored in a Text column

(0) ShareShare
ReportReport
Posted on by 163

Hi

 

I have a column in an SP list that is set to text, but holds date values, and I need to filter that column to get any items from the last week, however it is returning all sorts of items instead. Are there anyways to do this as my current option doesnt seem to work. Below is my current Filters:

I am setting a variable to get the date 1 week ago:

addDays(utcNow(),-7,'yyyy-MM-dd')

lalford09_0-1713782742857.png

 

I then filter on the GetItems:

PageStatus eq 'Fully Approved' and FinanceApproverApprovedDate ge@{variables('var_DateFilter')} ' and field_1 eq 'TEST'

lalford09_0-1713783037530.png

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @lalford09 

     

    Pls try the below filter query:

    PageStatus eq 'Fully Approved' and FinanceApproverApprovedDate ge @'{variables('var_DateFilter')}' and field_1 eq 'TEST'

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • lalford09 Profile Picture
    163 on at

    Hi @ManishSolanki 

     

    Works perfectly, thank you! Although it looks identical to mine, whats the difference?

  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Here is the list of differences in the filter query syntax:

     

    1. There was no blank space between ge and variable.

    2. The variable was not wrapped inside single quotes.

    3. There was extra blank space before the end single quote in the variable expression.

     

    I have highlighted the diffrecensc in red color:

    PageStatus eq 'Fully Approved' and FinanceApproverApprovedDate ge@{variables('var_DateFilter')} ' and field_1 eq 'TEST'

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard