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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors