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

DAX Formatter is a free tool by SQLBI that transform your raw DAX formulas into clean, beautiful and readable code. The syntax rules used improves the readability of the expressions, read this article to learn more: Rules for DAX code formatting »


Syntax

You can format any DAX query and expression in the form:
  • EVALUATE …
  • Table[column] = …
  • Table[measure] := …
  • [measure] := …
  • [measure] = …
  • measure := …
  • measure = …
  • = …

API

You can call the service via standard HTTP requests. Learn how to use API »

Terms of Use

By using DAX Formatter by SQLBI you are agree to the following conditions:
  1. The service is provided “as is” without warranty of any kind.
  2. The query you write are sent to a server running on Windows Azure, which provide a service for syntax formatting.
  3. A few results of the query parser can be saved for statistical reasons (most used functions, complexity index, average length and others).
  4. The DAX Formatter rebuild the DAX query code based on the syntax tree and the result might not correspond to the original query.

Discussion

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.






Mastering DAX Video Course








Latest Changes

[Aug 27, 2018] Improved formatting of table constructors

The formatting of table constructors was creating an additional indentation and was not closing the bracket in a new line.

[Jul 13, 2018] Automatic detection of list separator

The web version of DAX Formatter automatically detects the list separator by counting the number of “,” and “;” that are included in a query. The choice has an impact also on the decimal separator. It is possible to override the automatic choice. A manual choice is saved in a cookie to avoid further requests.

[Jun 21, 2018] Fixed bug in CONTAINSROW syntax

The CONTAINSROW syntax with two or more values to search was not correct and it is now fixed.




SQLBI

2006-2018 © SQLBI. All rights are reserved.
SQLBI is a trademark of SQLBI Corp.
Loader is the legal entity of SQLBI in Europe.
www.sqlbi.com

PRIVACY POLICY & COOKIES