Code, run, and share DAX

Write your DAX queries, try them and share them easily with DAX.do

DAX is the query language that powers Microsoft products such as Power BI, Analysis Services, and Power Pivot for Excel.
Browse the full language reference on DAX Guide.
A project by SQLBI



Format
Run Run line

Editor





Results


DAX Formatter options

Spacing



Lines


Telemetry

Help us understand how you use this tool and how to improve it. No personal information is collected.

This website is offered by SQLBI.

Save your DAX code online, then get a shareable link, and HTML to include on your website.

By proceeding you agree to making your code public and you accept our privacy policy.
Save and Share

You have edited a snippet of DAX code created by someone else. Duplicate and share it or revert back to its initial state.

By proceeding you agree to making your code public and you accept our privacy policy.
Duplicate and Share Revert