- M is the first step of the process,: getting data into the model.
(In In PowerBI,) when you right-click on a dataset and select Edit Query
"Edit Query", you're working in M (alsooften called Power Query, which uses M). There'sThere's a tip about this in the title bar of the edit window that says "Power Query Editor" Power Query Editor
. (but you would have to know that M and PowerQuery are essentiallyessentially the same thing). Also (obviously?)Also when you click the get data"Get Data" button, this generates M code for you.
- DAX is used in the report pane of PowerBI desktop, and predominantly used to aggregate (slice and dice) the data, add measures etc.
There is a lot of cross over between the two languages (ege.g. you can add columns and merge tables in both) - Some discussion on when to choose which is here and here.