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 / Filtering last hour data
Power Automate
Unanswered

Filtering last hour data

(0) ShareShare
ReportReport
Posted on by 10

Good day

 

am trying to filter last hour data from SQL data using the following expression but it's not really working as it only extract everything that was loaded today

 

formatDateTime(addHours(utcNow(),-1),'yyyy-MM-ddT00:00:00Z')
 
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Lebo33 ,

    Please try this expression:

    addHours(utcNow(),-1,'yyyy-MM-ddTHH:mm:ssZ')

    Best Regards,

    Sunshine Gu

  • Lebo33 Profile Picture
    10 on at

    Hi

    i tried it, still does the same

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Lebo33 ,

    Could you go to the editing interface and post a screenshot of the Action you wrote the expression?

    Best Regards,

    Sunshine Gu

  • Lebo33 Profile Picture
    10 on at

    Lebo33_0-1710254707081.png

     

  • MrGott Profile Picture
    101 on at

    you dont need to wrap date() around your column and expression

     

    yourdatecolumn ge @{formatDateTime(addHours(utcNow(),-1),'yyyy-MM-ddT00:00:00Z')}

  • Lebo33 Profile Picture
    10 on at

    Hi 
    if i don't wrap it up, am not getting any output.

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

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard