Data Analysis Expressions (DAX) is a formula language introduced by Microsoft in Power Pivot and Analysis Services Tabular to define calculations and queries.

DAX Formatter is a free tool that transform your raw DAX formulas into clean, beautiful and readable code.
The syntax rules used improves the readability of the expressions, if you want learn more read the article: Rules for DAX Code Formatting.


You can format any DAX query and expression in the form:


You can call the service via standard HTTP GET and POST requests. Learn more »


DAX Formatter is not working as expected?
Please fill out the form as completely as possible.

Note: the current formula will be automatically attached to the request.

Support Us

If you use DAX Formatter for your posts, please embed our badge:

<a href=""><img src="" alt="DAX Formatter by SQLBI"></a>
DAX Formatter by SQLBI

Latest Changes

August 16, 2014:

Added support to query parameters

The DAX query can have parameters with the prefix @

June 30, 2014:

Fixed issue with RELATED within EARLIER/EARLIEST

Using RELATED within EARLIER or EARLIEST was not recognized as a valid syntax.

June 3, 2014:

Added buttons before the formatted query

In case the formatted query does not display in the browser page, the buttons to copy/edit/create new query are visible also in the upper area of the screen.

May 18, 2014:

Fixed issue with ROLLUP function

Fixed a grammar bug that was not recognizing the usage of ROLLUP function in case it had columnlist before and after the ROLLUP function call.

March 25, 2014:

FIrst support to comments

You can include comments (single line with // and multiple lines with /* … */ ). Comments at the end of an expression are not recognized. Comment position might be moved according to formatting. Please submit any bug on comment Handling, thanks!