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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
diegomartinop
Frequent Visitor

Is it possible to use DAX instructions in M Power query?

Hi all

 

I have a table in which some columns were added using DAX instructions.

My question is: is it possible to reuse these instructions within the advanced editor in M? I would like to know that because I have many DAX instructions that will take too long to convert them one by one to the power query editor. So is there a way to do that easily?

 

Thanks in advance

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @diegomartinop ,

 

DAX is the language of the Power BI data model, M is the language of Power Query.

At the moment it is not possible to use DAX commands in Power Query. You have to recreate them in Power Query of you can do the transformations later in the data model in DAX, if you cannot solve it in Power Query.

However, in an ideal world the data transformation should be done in M/Power Query, the analysis in the Data Model in DAX.

 

Sorry about that.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @diegomartinop ,

 

DAX is the language of the Power BI data model, M is the language of Power Query.

At the moment it is not possible to use DAX commands in Power Query. You have to recreate them in Power Query of you can do the transformations later in the data model in DAX, if you cannot solve it in Power Query.

However, in an ideal world the data transformation should be done in M/Power Query, the analysis in the Data Model in DAX.

 

Sorry about that.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors