powertools-data

DAX Queries

Getting Started

Reporting clients like Power BI and Excel execute DAX queries whenever a field is placed on a report or when a filter is applied. By using SQL Server Management Studio (SSMS), Power BI Report Builder, and open-source tools like DAX Studio, you can create and run your own DAX queries. DAX queries return results as a table right within the tool, allowing you to quickly create and test the performance of your DAX formulas.

DAX queries have a simple syntax comprised of just one required keyword, EVALUATE, and several optional keywords: ORDER BY, START AT, DEFINE, MEASURE, VAR, TABLE, and COLUMN. Each keyword defines a statement used for the duration of the query.

Enable DAX query

As of Mar 2024, DAX query is in preview mode. To enable it go to File > Options and Settings > Options > Preview features and clicked the check box next to DAX query view

Enable DAX Query

DAX Query Tutorials

Data Transformation & Governance

Power Query

DAX Training