Date.IsInNextDay

Date

Returns true if the date is tomorrow relative to today.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Date.IsInNextDay(dateTime as any) as logical

Parameters

NameTypeRequiredDescription
dateTimeanyYesA date, datetime, or datetimezone value to test.

Return Value

logicaltrue if the date falls on tomorrow's date, false otherwise.

Remarks

Date.IsInNextDay returns true if the input date falls on the calendar day immediately following today's date (DateTime.LocalNow() + 1 day). It does not include today itself. The function is re-evaluated on each query refresh, making it useful for highlighting tomorrow's deadlines, scheduled deliveries, or upcoming events.

This function checks only a single day. To check a range of upcoming days, use Date.IsInNextNDays. For a broader window that includes today, combine Date.IsInCurrentDay and Date.IsInNextDay with an or expression.

As with all Date.IsIn* functions, the reference point is DateTime.LocalNow(). In cloud refresh environments, this is UTC-based and may not match your local "tomorrow" if you are in a different timezone.

Examples

Example 1: Filter upcoming orders due tomorrow

Table.SelectRows(
    Sales,
    each Date.IsInNextDay([OrderDate])
)
Result
OrderID
CustomerName
OrderDate
143Alice3/9/2026

Example 2: Flag tomorrow's orders in a boolean column

Table.AddColumn(
    Sales,
    "DueTomorrow", each Date.IsInNextDay([OrderDate]), type logical
)
Result
OrderID
OrderDate
DueTomorrow
1423/8/2026FALSE
2433/9/2026TRUE
3443/15/2026FALSE

Example 3: Flag today or tomorrow (two-day alert window)

Table.AddColumn(
    Sales,
    "AlertWindow",
    each Date.IsInCurrentDay([OrderDate]) or Date.IsInNextDay([OrderDate]),
    type logical
)
Result
OrderID
OrderDate
AlertWindow
1413/7/2026FALSE
2423/8/2026TRUE
3433/9/2026TRUE
4443/15/2026FALSE

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks