Skip to main content

Notifications

Power Automate - Power Automate Desktop
Answered

FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

(0) ShareShare
ReportReport
Posted on by 292

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

 

 

 

  • Verified answer
    AS-06081019-0 Profile Picture
    AS-06081019-0 1,736 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

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

  • fgonzalez515 Profile Picture
    fgonzalez515 292 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    @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
    fgonzalez515 292 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    Hi @Ankesh_49 

     

    I do it to filter the columns I want

  • AS-06081019-0 Profile Picture
    AS-06081019-0 1,736 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    @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
    Gidi 592 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    the field is date time not date 😉

  • AS-06081019-0 Profile Picture
    AS-06081019-0 1,736 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    Select *

  • fgonzalez515 Profile Picture
    fgonzalez515 292 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    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
    AS-06081019-0 1,736 on at
    Re: FILTER COLUMN DATE SQL IN POWER AUTOMATE DESKTOP

    @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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard