Date.IsInNextMonth

Date

Returns true if the date falls in the next calendar month.

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

Syntax

Date.IsInNextMonth(dateTime as any) as logical

Parameters

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

Return Value

logicaltrue if the date falls in the month immediately after the current month, false otherwise.

Remarks

Date.IsInNextMonth returns true if the input date falls within the calendar month immediately after the current month (as determined by DateTime.LocalNow()). For example, if today is in March, this function returns true for any date in April — including dates beyond the current day in April. The function is re-evaluated on each query refresh.

This function is useful for surfacing upcoming renewals, upcoming billing cycles, or forward-looking pipeline data. It matches exactly one month: the next calendar month, not the next 30 days. For a 30-day rolling lookahead, use Date.IsInNextNDays(30) instead.

For a broader forward window spanning multiple months, use Date.IsInNextNMonths with the desired number of months.

Examples

Example 1: Filter next month's renewals

Table.SelectRows(
    Subscriptions,
    each Date.IsInNextMonth([RenewalDate])
)
Result
SubID
RenewalDate
Customer
1124/10/2026Contoso
2154/25/2026Fabrikam

Example 2: Flag next-month orders in Sales table

Table.AddColumn(
    Sales,
    "IsNextMonth", each Date.IsInNextMonth([OrderDate]), type logical
)
Result
OrderID
OrderDate
IsNextMonth
1423/8/2026FALSE
2434/10/2026TRUE
3445/20/2026FALSE

Example 3: Count orders expected next month

List.Count(
    Table.SelectRows(Sales, each Date.IsInNextMonth([OrderDate]))[OrderID]
)
Result
Result
13

Compatibility

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