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 excel table wit...
Power Automate
Answered

Filter excel table with Date and time column to fetch previous month Data

(0) ShareShare
ReportReport
Posted on by 94

Hi Makers,

 

I have created scheduled flow which triggers on the 1st of every month to filter data for previous month from the excel table based on completion time column which is of date and time. built flow as below and tried several methods avaible on web but not able to filter the data . belwo is the screen shot of the flow please help in achiveinging the same.

vrevankar_0-1711283909827.pngvrevankar_1-1711283941342.pngvrevankar_2-1711283956201.png

The current flow is not working with this method 

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @vrevankar ,

     

    What is the result of List Rows? Empty?

     

    If there are a lot of rows in your data source but few that match the criteria, I recommend that you turn on the pagination settings and test again.

    vmengmlimsft_0-1711285895283.png

     

     

    Best regards,

    Rimmon

  • vrevankar Profile Picture
    94 on at

    @v-mengmli-msft  Sir thank you for quick response the pagination is turned on and set the limit to 5000 but still getting the error as below

    vrevankar_0-1711286330308.png

    not sure why is this taking following input as filter query 

    "CompletionTime gt '2024-03-01T00:00:00.0000000Z' and CompletionTime le '2024-02-29T00:00:00.0000000Z'\n",
     
    vrevankar_1-1711286422015.png

     

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

    Hi @vrevankar ,

     

    The error shows gt and le can't be in filter query at the same time.

    I recommend you use gt in filter query and put le in "Filter array" action.

    vmengmlimsft_0-1711287282348.png

     

     

     

    Best regards,

    Rimmon

     

  • vrevankar Profile Picture
    94 on at

    @v-mengmli-msft tried with the above steps seems the flow is still failing stating its not able to find the column named Completion time in excel Table but the table exists as show below screen shot 

     

    vrevankar_0-1711355692373.pngvrevankar_1-1711355712409.pngvrevankar_2-1711355727603.png

    please suggest to move forward below is the error screen shot

    vrevankar_3-1711355806355.png

     

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

    Hi @vrevankar ,

     

    The filter query doesn't support column name with spaces as well.

    Two ways for you reference.

    1/Delete spaces in column name.

    2/Use Filter array action again.

     

     

    Best regards,

    Rimmon

  • vrevankar Profile Picture
    94 on at

    @v-mengmli-msft Thanks for the quick response sir now the flow runs perfect but post filtering the data in List rows and Filter array im trying to create a CSV Table to send the filtered data . once the flow runs succesfully the CSV table shows blank in email attchement .

    vrevankar_0-1711361182216.pngvrevankar_1-1711361212270.png

    vrevankar_2-1711361234578.png

    Recent scucces screen shot 

    vrevankar_3-1711361371275.png

    vrevankar_4-1711361412413.png

     

     

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @vrevankar ,

     

    I recommend you create Html table instead of CSV table if you are inserting table in email body. This is because email body expects html format.

     

    Best regards,

    Rimmon

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

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard