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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors