Power Automate Filter Date Less Than Today: Build It Step by Step

A facilities manager wants a list of every overdue request, without opening SharePoint. For a Power Automate filter date less than today, we’ll put one OData query on the Get items action.

In this tutorial, we’ll build the Power Automate filter date less than today query step by step, then test every wrong version so you can skip them. Here’s what we’re building:

Power Automate output with five overdue SharePoint row IDs from a date less than today filter
The finished query returned the five overdue rows and skipped the two blank ones

Before You Start

You need a license that includes the SharePoint connector and a list you can read. We’re using Customer Requests, which has a date-only column named DueDate. I ran this on November 9, 2026:

IDTitleDueDate
1Ergonomic chairs – Austin office10/15/2026
2Laptop refresh – Denver sales teamblank
3Conference room AV upgrade – Seattle10/20/2026
4Printer toner – NYC front desk10/09/2026
5Standing desks – Chicago officeblank
6Badge printer – Boston lobby10/21/2026
7Copier lease renewal – Dallas office11/09/2026 (today)
8Network switch swap – Atlanta office11/08/2026 (yesterday)
9Desk phones – Phoenix call center11/10/2026 (tomorrow)
10Safety signage – Miami warehouse11/16/2026

Rows 1, 3, 4, 6, and 8 are overdue. Row 7 is due today, so it must not appear. For the wider query syntax, see our Get items filter query guide.

Step 1: Create the Flow and Store Today’s Date

We’ll keep today’s date in one place, in Eastern time.

  1. Go to Create and choose Instant cloud flow.
  2. Name it, pick Manually trigger a flow, and select Create.
  3. Add a Compose action and rename it Today Eastern.
  4. Click Inputs, type /, choose Insert expression, paste the code, and select Add.
convertFromUtc(utcNow(),'Eastern Standard Time','yyyy-MM-dd')

Checkpoint: After a test run, this Compose action shows a date like 2026-11-09 and no time. Prefer a variable? Here’s how to set a variable to today’s date.

Step 2: Add the Filter Query to Get Items

  1. Add the SharePoint Get items action.
  2. Choose your Site Address and List Name.
  3. Open Advanced parameters and show Filter Query.
  4. Type the query below, inserting the Today Eastern output between the single quotes.
DueDate lt '@{outputs('Today_Eastern')}'
Power Automate Get items code view with DueDate lt today OData filter query
Code view of the action. GI is the short name I gave my Get items test actions

lt means less than. The column has to be the internal name, and the date needs its single quotes. In the designer, you’ll see the Compose output as a token.

Checkpoint: Your Filter Query box shows DueDate lt ', the token, and a closing '.

Step 3: Exclude Closed Requests

Overdue usually means overdue and still open. Add a second condition with and:

DueDate lt '@{outputs('Today_Eastern')}' and Status ne 'Closed'

That dropped row 4, the closed toner request, and returned rows 1, 3, 6, and 8.

Checkpoint: One fewer row comes back. Note that row 3 has no status, and it stayed in. To work through the returned rows, you can loop with Apply to each.

Step 4: Sort the Oldest or Newest First

Open Order By in the same advanced parameters and enter DueDate desc. My result came back as rows 8, 6, 3, 1, and 4, most recent first.

Checkpoint: Row 8 from November 8 is now on top.

Test the Flow

Select Test, then Manually, then Run flow. Open the Get items action in the run history and read value. Here’s every variation I ran on the same list:

Filter QueryRows returned
DueDate lt 'today'1, 3, 4, 6, 8
DueDate le 'today'1, 3, 4, 6, 8 (row 7 is missing)
DueDate lt 'tomorrow'1, 3, 4, 6, 7, 8
DueDate lt '@{utcNow()}'1, 3, 4, 6, 7, 8
DueDate lt '11/09/2026'1, 3, 4, 6, 8
DueDate lt 'today' or DueDate eq null1, 2, 3, 4, 5, 6, 8
DueDate lt 'today minus 7 days'1, 3, 4, 6

Here, “today” means the Today Eastern value. The two surprises are worth remembering. le didn’t include the row due today, and a full timestamp did.

Power Automate result including row 7 due today when filtering with utcNow
Filtering with the full utcNow() value wrongly treated today’s row as overdue

Blank rows never appear in a less-than filter. If you want them, add the or DueDate eq null shown above, or read how to check if a date field is empty.

Same Result With a Filter Array

If the rows are already in your flow, use Filter array. Pick advanced mode and paste this:

@if(empty(item()?['DueDate']),false,less(formatDateTime(item()?['DueDate'],'yyyy-MM-dd'),outputs('Today_Eastern')))

It returned the same five rows. This approach reads every row first, so I keep it for small lists. See how Filter array works for details.

Troubleshooting

Each of these failed in a real run:

  • Missing quotes. DueDate lt @{utcNow()} returned BadRequest with “Creating query failed.” Add single quotes.
  • Function typed as text. DueDate lt utcNow() returned “The query is not valid.” Use an expression token.
  • Display name. Due Date lt ... failed as well. Use the internal column name.
  • Filter array with no guard. less(item()?['DueDate'], ...) failed on blank rows.
Power Automate Get items BadRequest error from an unquoted date in the filter query
An unquoted date made the query invalid
Power Automate Filter array error comparing a null SharePoint date with less
A single blank row failed the Filter array that had no guard

Note: A Filter Query runs on SharePoint, while Filter array runs inside your flow. Fix errors in the matching place.

Where to Take It Next

You could work out how late each item is with a date difference in days. Or you could target a single day using an is-today check.

Frequently Asked Questions

How do I filter SharePoint dates less than today in Power Automate?

Use DueDate lt 'yyyy-MM-dd' in the Get items Filter Query, with today’s date from a formatted expression.

Why does le not include today’s items?

In my date-only column test, le with today’s date left out the row due today. Use lt with tomorrow’s date instead.

Does a date filter return blank rows?

No. Add or DueDate eq null when you want them. The SharePoint connector reference lists the filter option.

Should I use Filter Query or Filter array?

Use Filter Query for lists, since SharePoint returns fewer rows. Use Filter array for data already in your flow.

Why do I get Creating query failed?

It’s usually missing single quotes around a date or a column display name that contains a space.

More Power Automate Tutorials

We often add one of these right after an overdue query: