Pbi Dax Time Intelligence Functions
Pbi Dax Time Intelligence Functions
Function Description
Evaluates the specified expression at the calendar end of the
CLOSINGBALANCEMONTH(<express given month. The given month is calculated as the month of
ion>,<dates>,<filter>) the latest date in the dates argument, after applying all
filters.
Evaluates the specified expression at the calendar end of the
CLOSINGBALANCEQUARTER(<expre given quarter. The given quarter is calculated as the quarter
ssion>,<dates>,<filter>) of the latest date in the dates argument, after applying all
filters.
Evaluates the specified expression at the calendar end of the
CLOSINGBALANCEYEAR(<expressio
given year. The given year is calculated as the year of the
n>,<dates>,<filter>)
latest date in the dates argument, after applying all filters.
DATESINPERIOD(<date_column>,< Returns a table of dates that can be found in the specified
start_date>,<number_of_intervals> date column beginning with the start date and continuing for
,<intervals>) the specified number of intervals.
Returns a table of dates that can be found in the specified
DATESBETWEEN(<column>,<start_
date column beginning with the start date and ending with
date>,<end_date>
the end date.
Returns a table that contains a column of dates, shifted
DATEADD(<date_column>,<numbe
either forward in time or back in time from the dates in the
r_of_intervals>,<interval>)
specified date column.
Returns the first date in the current context for the specified
FIRSTDATE (<datecolumn>)
Date_Column.
Returns the last date in the current context for the specified
LASTDATE (<datecolumn>)
Date_Column.
LASTNONBLANK
?
(<datecolumn>,<expression>)
Returns the first day of the month in the specified date
STARTOFMONTH (<date_column>)
column.
STARTOFQUARTER Returns the first day of the quarter in the specified date
(<date_column>) column.
STARTOFYEAR(<date_column>[,<Y Returns the first day of the year in the specified date
E_date>]) column.
Returns the last day of the month in the specified date
ENDOFMONTH(<date_column>)
column.
Returns the last day of the quarter in the specified date
ENDOFQUARTER(<date_column>)
column.
ENDOFYEAR(<date_column>) Returns the last day of the year in the specified date column.
This function moves the specified number of intervals and
PARALLELPERIOD(<date_column>,
then returns all contiguous full months which contain any
<number_of_intervals>,<intervals>
values after that shift. Gaps between the first and last dates
)
are filled in, and months are also filled in.
PREVIOUSDAY(<date_column>) Returns the previous day date from date_column.
Returns the set of dates in the previous month from
PREVIOUSMONTH(<date_column>)
date_column.
PREVIOUSQUARTER(<date_column Returns the set of dates in the previous quarter from
>) date_column.
Returns the set of dates in the previous year from
PREVIOUSYEAR(<date_column>)
date_column.
NEXTDAY(<date_column>) Returns the next day date from date_column.
Returns the set of dates in the next month from
NEXTMONTH(<date_column>)
date_column.
Returns the set of dates for the next quarter from
NEXTQUARTER (<date_column>)
date_column
NEXTYEAR(<date_column>[,<YE_d
Returns the set of dates for the next year from date_column.
ate>])
Returns the subset of dates, from date_column, for the
interval that starts at the first day of the month and ends at
DATESMTD(<date_column>)
the latest date in the specified dates column for the month
that is the corresponding month of the latest date.
Returns the subset of dates, from date_column, for the
interval that starts at the first day of the quarter and ends at
DATESQTD (<date_column>)
the latest date in the specified dates column for the quarter
that is the corresponding quarter of the latest date.
Returns the subset of dates, from date_column, for the
DATESYTD (<date_column> interval that starts the first day of the year and ends at the
[,<YE_date>]) latest date in the specified dates column for the quarter that
is the corresponding quarter of the latest date.
SAMEPERIODLASTYEAR() - ? ?
Evaluates the specified expression at the calendar end of the
OPENINGBALANCEMONTH(<express month prior the given month. The given month is calculated
ion>,<dates>,<filter>) as the month of the latest date in the dates argument, after
applying all filters.
Evaluates the specified expression at the calendar end of the
OPENINGBALANCEQUARTER(<expre quarter prior to the given quarter. The given quarter is
ssion>,<dates>,<filter>) calculated as the quarter of the latest date in the dates
argument, after applying all filters.
Evaluates the specified expression at the calendar end of the
OPENINGBALANCEYEAR(<expressio year prior to the given year. The given year is calculated as
n>,<dates>,<filter>) the year of the latest date in the dates argument, after
applying all filters.
Evaluates the specified expression for the interval that starts
TotalMTD(<expression>,<dates>,<
at the first day of the month and ends at the latest date in
filter>)
the specified dates column, after applying all filters.
Evaluates the specified expression for the interval that starts
TotalQTD(<expression>,<dates>,<f
at the first day of the quarter and ends at the latest date in
ilter>)
the specified dates column, after applying all filters.
Evaluates the specified expression for the interval that starts
TotalYTD(<expression>,<dates>,<f
at the first day of the year and ends at the latest date in the
ilter>)
specified dates column, after applying all filters.