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 / How to do apply to eac...
Power Automate
Unanswered

How to do apply to each value in Excel row for 20000 rows file?

(0) ShareShare
ReportReport
Posted on by 32

I'm having a large Excel file which contains up to 20000 rows including space, comma for some rows as it's using to manage users. I When I do list row in Excel it works and runs within 3mins.

 

However when it goes to the part Apply to each value and filter array as I want to filter Date row from last week. This taking more than 10mins and the flow failed. Are there any other better ways to work with large Excel file? Thank you! 

 

biboy852_0-1694791205789.png

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,932 Moderator on at

    You want to use a Do Until loop, not an apply to each. You would need to essentially create a counter, based on the number of rows you have in Excel. The Do Until supports setting timeouts for each loop.

     

    You would want to break down your loop into chunks, meaning you won't necessarily have to process all 20,000 in a single loop of the Do Until, but that's up to you but you want to break it down into chunks that won't time out (based on your time out configuration)

     

    The trick will be to get your data so that you can do this. I haven't seen your data, but there are lots of great guides that provide specific examples that you can pick one that matches your situation.

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • takolota1 Profile Picture
    4,978 Moderator on at

    @biboy852 

     

    If you just want to filter to the rows where the date is from last week, then you shouldn’t need the Apply to each at all. You should be able to combine expressions in a single Filter array action to check the date column for values greater than today - 14 days and less than today - 7 days. And that should run in a second or two.

  • biboy852 Profile Picture
    32 on at

    biboy852_0-1695130617124.png

    How can I take the row to run filter? It becomes blank as an output.

  • takolota1 Profile Picture
    4,978 Moderator on at

    @biboy852 To reference a column in the Filter array you need to use expressions like

    item()?['InsertColumnNameHere']

     

    Then you can put that in expressions like formatdatetime.

     

    It looks like you are currently comparing two static variable inputs for each row. That’s not going to dynamically check each row, it just checks those static variable values each time.

  • biboy852 Profile Picture
    32 on at

    biboy852_0-1695146456451.png

    Not sure if my output for filter last week day is correct or not. It's still showing blank after run the flow...

  • takolota1 Profile Picture
    4,978 Moderator on at

    @biboy852 

    With that set up the filter array is checking

    if data-date is greater than or equal to today’s date

     

    Unless you have future dates in this column I’d expect it to return a blank or no rows.

  • biboy852 Profile Picture
    32 on at

    biboy852_0-1695152203783.png

    I have the remove blank filter before run the filter array to get date from last week on the Date column. 

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

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard