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 / FILTER COLUMN DATE SQL...
Power Automate
Answered

FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

(0) ShareShare
ReportReport
Posted on by 296

Hello Community,


I have a SQL DataTable in Power Automate Desktop, these elements come from an Excel.

How can I filter the column 'Recepcion' for example only '01-07-2022' ??

 

fgonzalez515_0-1656798263995.png

 

fgonzalez515_2-1656798355444.png

 

 

 

I have the same question (0)
  • Verified answer
    AS-06081019-0 Profile Picture
    1,736 Super User 2024 Season 1 on at

    SELECT * FROM [YOURSHEETNAME$]WHERE[Recepcion] between #01-07-2022# and #01-07-2022 23:59:59#

  • fgonzalez515 Profile Picture
    296 on at

    @Ankesh_49 

     

    It shows me the same error, "Error in SQL statement Data types mismatch in criteria expression."

    fgonzalez515_0-1656883541690.png

     

  • fgonzalez515 Profile Picture
    296 on at

    Hi @Ankesh_49 

     

    I do it to filter the columns I want

  • AS-06081019-0 Profile Picture
    1,736 Super User 2024 Season 1 on at

    @fgonzalez515  As @Gidi  correctly pointed out it’s a date time field. Therefore, if you have control over the data then remove time from it or tweak the query as below giving a range

    SELECT * FROM [YOURSHEETNAME$] WHERE[Recepcion] between '01-07-2022' and '01-07-2022 23:59:59'

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • Gidi Profile Picture
    601 on at

    the field is date time not date 😉

  • AS-06081019-0 Profile Picture
    1,736 Super User 2024 Season 1 on at

    Select *

  • fgonzalez515 Profile Picture
    296 on at

    Hi @Ankesh_49

     

    I try but show me this error "Error in SQL statement Data types mismatch in criteria expression"

     

    fgonzalez515_0-1656858191308.png

  • AS-06081019-0 Profile Picture
    1,736 Super User 2024 Season 1 on at

    @fgonzalez515  Try this

    SELECT * FROM [YOURSHEETNAME$] WHERE [Recepcion]='01-07-2022'

     

    Cheers,

    Ankesh

    --------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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
David_MA Profile Picture

David_MA 258 Super User 2025 Season 2

#2
trice602 Profile Picture

trice602 205 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 204 Most Valuable Professional

Last 30 days Overall leaderboard