0% found this document useful (0 votes)
83 views3 pages

Time Intelligence Functions (DAX) - DAX - Microsoft Docs

Data Analysis Expressions (DAX) includes time intelligence functions that allow manipulation of data using time periods like days, months, quarters, and years. The article describes over 30 functions for working with dates including calculating opening and closing balances, shifting dates forward or backward, retrieving dates within a period, and calculating year-to-date, quarter-to-date, and month-to-date totals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views3 pages

Time Intelligence Functions (DAX) - DAX - Microsoft Docs

Data Analysis Expressions (DAX) includes time intelligence functions that allow manipulation of data using time periods like days, months, quarters, and years. The article describes over 30 functions for working with dates including calculating opening and closing balances, shifting dates forward or backward, retrieving dates within a period, and calculating year-to-date, quarter-to-date, and month-to-date totals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Docs

​/
Data Analysis Expressions (DAX) Reference
​/
DAX functions
​/  

Time intelligence functions


Article • 06/22/2022 • 3 minutes to read • 4 contributors  

In this article
In this category

Data Analysis Expressions (DAX) includes time-intelligence functions that enable you to
manipulate data using time periods, including days, months, quarters, and years, and
then build and compare calculations over those periods.

In this category
Function Description

CLOSINGBALANCEMONTH Evaluates the expression at the last date of the month in the
current context.

CLOSINGBALANCEQUARTER Evaluates the expression at the last date of the quarter in the
current context.

CLOSINGBALANCEYEAR Evaluates the expression at the last date of the year in the current
context.

DATEADD Returns a table that contains a column of dates, shifted either


forward or backward in time by the specified number of intervals
from the dates in the current context.

DATESBETWEEN Returns a table that contains a column of dates that begins with a
specified start date and continues until a specified end date.

DATESINPERIOD Returns a table that contains a column of dates that begins with a
specified start date and continues for the specified number and
type of date intervals.

DATESMTD Returns a table that contains a column of the dates for the month
to date, in the current context.

DATESQTD Returns a table that contains a column of the dates for the
quarter to date, in the current context.
Function Description

DATESYTD Returns a table that contains a column of the dates for the year to
date, in the current context.

ENDOFMONTH Returns the last date of the month in the current context for the
specified column of dates.

ENDOFQUARTER Returns the last date of the quarter in the current context for the
specified column of dates.

ENDOFYEAR Returns the last date of the year in the current context for the
specified column of dates.

FIRSTDATE Returns the first date in the current context for the specified
column of dates.

FIRSTNONBLANK Returns the first value in the column, column, filtered by the
current context, where the expression is not blank

LASTDATE Returns the last date in the current context for the specified
column of dates.

LASTNONBLANK Returns the last value in the column, column, filtered by the
current context, where the expression is not blank.

NEXTDAY Returns a table that contains a column of all dates from the next
day, based on the first date specified in the dates column in the
current context.

NEXTMONTH Returns a table that contains a column of all dates from the next
month, based on the first date in the dates column in the current
context.

NEXTQUARTER Returns a table that contains a column of all dates in the next
quarter, based on the first date specified in the dates column, in
the current context.

NEXTYEAR 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.

OPENINGBALANCEMONTH Evaluates the expression at the first date of the month in the
current context.

OPENINGBALANCEQUARTER Evaluates the expression at the first date of the quarter, in the
current context.

OPENINGBALANCEYEAR Evaluates the expression at the first date of the year in the current
context.
Function Description

PARALLELPERIOD Returns a table that contains a column of dates that represents a


period parallel to the dates in the specified dates column, in the
current context, with the dates shifted a number of intervals either
forward in time or back in time.

PREVIOUSDAY Returns a table that contains a column of all dates representing


the day that is previous to the first date in the dates column, in
the current context.

PREVIOUSMONTH Returns a table that contains a column of all dates from the
previous month, based on the first date in the dates column, in
the current context.

PREVIOUSQUARTER Returns a table that contains a column of all dates from the
previous quarter, based on the first date in the dates column, in
the current context.

PREVIOUSYEAR Returns a table that contains a column of all dates from the
previous year, given the last date in the dates column, in the
current context.

SAMEPERIODLASTYEAR Returns a table that contains a column of dates shifted one year
back in time from the dates in the specified dates column, in the
current context.

STARTOFMONTH Returns the first date of the month in the current context for the
specified column of dates.

STARTOFQUARTER Returns the first date of the quarter in the current context for the
specified column of dates.

STARTOFYEAR Returns the first date of the year in the current context for the
specified column of dates.

TOTALMTD Evaluates the value of the expression for the month to date, in the
current context.

TOTALQTD Evaluates the value of the expression for the dates in the quarter
to date, in the current context.

TOTALYTD Evaluates the year-to-date value of the expression in the current


context.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy