MONTH DAX Function (Date and Time)

Returns a number from 1 (January) to 12 (December) representing the month.


MONTH ( <Date> )
Parameter Attributes Description

A date in datetime format.

Return values

Scalar A single integer value.

An integer number indicating the number of the month.


If the argument is a string, it is translated into a datetime value using the same rules applied by the DATEVALUE function.

» 1 related article
» 4 related functions


--  Extract date parts from a date
    TOPN ( 10, VALUES ( 'Date'[Date] ), 'Date'[Date], ASC ),
    "Year",    YEAR    ( 'Date'[Date] ),     
    "Quarter", QUARTER ( 'Date'[Date] ),
    "Month",   MONTH   ( 'Date'[Date] ),    
    "Day",     DAY     ( 'Date'[Date] )         
ORDER BY 'Date'[Date]
Date Year Quarter Month Day
2005-01-01 2,005 1 1 1
2005-01-02 2,005 1 1 2
2005-01-03 2,005 1 1 3
2005-01-04 2,005 1 1 4
2005-01-05 2,005 1 1 5
2005-01-06 2,005 1 1 6
2005-01-07 2,005 1 1 7
2005-01-08 2,005 1 1 8
2005-01-09 2,005 1 1 9
2005-01-10 2,005 1 1 10

Related articles

Learn more about MONTH in the following articles:

  • Correct calculate of age in DAX from birthday

    By answering to a student question I realized we often used a wrong calculation of customers age in DAX, and the simple solution is to borrow the same technique used in Excel, using INT and YEARFRAC rather than DATEDIFF or other divisions by 365 or 365.25. » Read more

Related functions

Other related functions are:

Last update: Nov 23, 2021   » Contribute   » Show contributors

Contributors: Alberto Ferrari, Marco Russo

Microsoft documentation:

2018-2021 © SQLBI. All rights are reserved. Information coming from Microsoft documentation is property of Microsoft Corp. » Contact us   » Privacy Policy & Cookies

Context Transition

This function performs a Context Transition if called in a Row Context. Click to read more.

Row Context

This expression is executed in a Row Context. Click to read more.


Not recommended

The use of this function is not recommended. See Remarks and Related functions for alternatives.

Not recommended

The use of this parameter is not recommended.


This function is deprecated. Jump to the Alternatives section to see the function to use.


This parameter is deprecated and its use is not recommended.

DirectQuery compatibility

Limitations are placed on DAX expressions allowed in measures and calculated columns.
The state below shows the DirectQuery compatibility of the DAX function.


Want to improve the content of MONTH? Did you find any issue?
Please, report it us! All submissions will be evaluated for possible updates of the content.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.