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 – learn more here: Rules for DAX code formatting »

A lightweight version of this tool (HTML only) is also available. Lite version »


Syntax

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

API

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

Terms of Use

By using DAX Formatter by SQLBI you are agreeing to the following conditions:
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.




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




Latest Changes

[Feb 10, 2024] Support expressions without declarations

The formatter now accepts an expression without any declaration, making it easier copy/paste of format expressions from Power BI Desktop.

[Feb 9, 2024] Improved expression handling in parameters

Support parentheses around table/column in ALL/VALUES functions.

[Feb 8, 2024] Added INFO functions

INFO functions are now supported (they use DMVs internally).