cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors