What's the difference between DAX and Power Query (or M)?

后端 未结 4 808
清歌不尽
清歌不尽 2021-01-30 16:36

I have been working on Power BI for a while now and I often get confused when I browse through help topics of it. They often refer to the functions and formulas being used as DA

4条回答
  •  深忆病人
    2021-01-30 17:12

    • M is the first step of the process, getting data into the model.

    (In PowerBI,) when you right-click on a dataset and select Edit Query, you're working in M (also called Power Query). There's a tip about this in the title bar of the edit window that says Power Query Editor. (but you have to know that M and PowerQuery are essentially the same thing). Also (obviously?) when you click the 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 (eg you can add columns and merge tables in both) - Some discussion on when to choose which is here and here

提交回复
热议问题