TOTALMTD Function (DAX)

How does the TOTALMTD function (DAX) work?

The TOTALMTD function (DAX) evaluates the value of the expression for the month to date, in the current context.

TOTALMTD Formula Syntax

TOTALMTD(
     <expression>,<dates>[,<filter>]
)

How do you use the TOTALMTD function?

This function will evaluate the specified expression over the interval which begins on the first of the month and ends with the last date in the specified date column after applying specified filters.

Related Blog Posts

 

Considerations when using the TOTALMTD 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.

Related Video Tutorials

Formula examples using the TOTALMTD function

=TOTALMTD(SUM(InternetSales_USD[SalesAmount_USD]),DateTime[DateKey])

Month Running Sum:= TOTALMTD (SUM (Sales[Sales Amount]),Sales[Date])

MTD = TOTALMTD(SUM(Weblog[PageViews]),DimDate[Date])

Related DAX Functions

TOTALQTD
CALCULATE
TOTALYTD

Related Course Modules

Ultimate-Beginners-Guide-To-PowerBI