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 / 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
    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
    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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard