NEXTYEAR Function (DAX)

How does the NEXTYEAR function (DAX) work?

The NEXTYEAR function (DAX) returns a table that contains a column of all dates in the next year, based on the first date in the dates column, in the current context.

NEXTYEAR Formula Syntax

NEXTYEAR(
     <dates>[,<year_end_date>]
)

How do you use the NEXTYEAR function?

This function returns all dates in the next year, based on the first date in the input column. For example, if the first date in the dates column refers to the year 2007, this function returns all dates for the year 2008.

Related Blog Posts

Related Support Forum Posts

Measures not calculating sum in matrix
Dax Calculation question
Dax not working

Considerations when using the NEXTYEAR function

The dates argument can be any of the following:

  • A reference to a date/time column.
  • A table expression that returns a single column of date/time values.
  • A Boolean expression that defines a single-column table of date/time values.

The year_end_date parameter is a string literal of a date, in the same locale as the locale of the client where the workbook was created. The year portion of the date is ignored.

Related Video Tutorials

Formula examples using the NEXTYEAR function

=CALCULATE(SUM(InternetSales_USD[SalesAmount_USD]), NEXTYEAR(‘DateTime'[DateKey]))

= CALCULATE ( SUM (Sales [Sales Amount]), NEXTYEAR (Sales [Date]) )

Related DAX Functions

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI
Center of Excellence

DOWNLOAD


Download our comprehensive DAX Formula Reference Guide as perfect companion as you learn how to use DAX formulas within Power BI.


Download DAX Formulas Reference Guide
Download DAX Formula Reference Guide
Membership