Date.IsInNextYear

Date

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

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

Syntax

Date.IsInNextYear(dateTime as any) as logical

Parameters

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

Return Value

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

Remarks

Date.IsInNextYear returns true if the input date falls anywhere within the calendar year immediately following the current year (as determined by DateTime.LocalNow()). For example, if today is in 2026, this function returns true for any date in 2027. The function is re-evaluated on each query refresh.

This function matches exactly one year: the next calendar year from January 1 to December 31. For a broader multi-year window, use Date.IsInNextNYears. To include the current year as well, combine with or Date.IsInCurrentYear([OrderDate]).

Use this function for annual planning and budgeting scenarios where you need to identify items that fall in the upcoming fiscal or calendar year.

Examples

Example 1: Filter orders scheduled for next year

Table.SelectRows(
    Sales,
    each Date.IsInNextYear([OrderDate])
)
Result
OrderID
CustomerName
OrderDate
150Alice3/15/2027
251Bob9/22/2027

Example 2: Flag next-year orders

Table.AddColumn(
    Sales,
    "IsNextYear", each Date.IsInNextYear([OrderDate]), type logical
)
Result
OrderID
OrderDate
IsNextYear
1423/8/2026FALSE
2503/15/2027TRUE
3551/1/2028FALSE

Example 3: Summarize orders by whether they are in the current or next year

Table.AddColumn(
    Sales,
    "Period",
    each
        if Date.IsInCurrentYear([OrderDate]) then "Current Year"
        else if Date.IsInNextYear([OrderDate]) then "Next Year"
        else "Other",
    type text
)
Result
OrderID
OrderDate
Period
13510/10/2025Other
2423/8/2026Current Year
3503/15/2027Next Year

Compatibility

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