Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
CCCP
Frequent Visitor

MDX or DAX with using a connection to a power bi dataset

HI,i would like to understand why when i create a report and using report query builder to create simple queries,  the query languages that are available are MDX /DAX when it is in import mode ,only mdx when the dataset is in direct query mode.
Is there a setting on the pbi tenant ? or it depends on the report builder version? 

 

thanks for your time and responses.

1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi @CCCP ,

 

 MDX can be used to query data from a cube and do a pivot of that data while DAX, being more of an expression language than a query language, cannot be used similarly.

Both being expression language, MDX and DAX are designed to query an SSAS Cube. The difference, however, lies in the details. MDX can be used to query against SSAS Multi-dimensional models, while DAX is used for SSAS Tabular models. If you use Power BI for your visualization needs, it can connect to SSAS Multi-dimensional models even though Power BI primarily uses Tabular models.

 

DAX expressions are supported only within tabular models. You cannot use measures created by a DAX expression in a multidimensional model. A DAX query to a multidimensional model can reference a measure or other calculation that is defined in that model, but those calculations must be authored using the MDX language. DAX expressions cannot be used where an MDX expression is required and vice-versa, and some DAX functions, like PATH, are not applicable in multidimensional modeling at all.

 

For more you can refer to dax-vs-mdx-is-there-any-difference 

 

Best Regards,
Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-xiaoyan-msft
Community Support
Community Support

Hi @CCCP ,

 

 MDX can be used to query data from a cube and do a pivot of that data while DAX, being more of an expression language than a query language, cannot be used similarly.

Both being expression language, MDX and DAX are designed to query an SSAS Cube. The difference, however, lies in the details. MDX can be used to query against SSAS Multi-dimensional models, while DAX is used for SSAS Tabular models. If you use Power BI for your visualization needs, it can connect to SSAS Multi-dimensional models even though Power BI primarily uses Tabular models.

 

DAX expressions are supported only within tabular models. You cannot use measures created by a DAX expression in a multidimensional model. A DAX query to a multidimensional model can reference a measure or other calculation that is defined in that model, but those calculations must be authored using the MDX language. DAX expressions cannot be used where an MDX expression is required and vice-versa, and some DAX functions, like PATH, are not applicable in multidimensional modeling at all.

 

For more you can refer to dax-vs-mdx-is-there-any-difference 

 

Best Regards,
Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.