-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

The Definitive Guide to Power Query (M)
By :

M is a versatile language included in various tools and platforms where data transformation and manipulation are essential. Its integration within the Power Query ecosystem enables users to leverage M’s capabilities in different environments. In this section, we explore some key areas where M is widely used.
Before discussing specific products where M is used, it is important to understand the different experiences available for authoring M. There are two experiences available for authoring M, one intended for on-premises use and the other for cloud-based applications. These experiences are the following:
It is important to note that while two different experiences for authoring M exist, both provide nearly the exact same user experience. Even better, both provide the ability to edit the underlying M code, which is the primary focus of this book. Thus, the skills learned here apply equally to either experience used within any product or service.
M is ubiquitous within the Microsoft ecosystem, including the following software and services:
M enables users to extract, clean, and shape data from diverse sources, such as databases, Excel files, web services, and more. With M, users can define data transformation steps and create reusable queries that refresh and update data automatically when the underlying source changes.
Within Power BI Desktop, M is used within the Power Query editor, a sub-program launched from within Power BI Desktop. The Power Query editor provides a powerful graphical user interface (GUI) for working with the M formula language, as shown in the following screenshot:
Figure 1.1: Power Query editor in Power BI Desktop
The Power Query editor is covered in greater detail in Chapter 2, Working With Power Query/M.
Power BI Desktop also supports the use of dataflows.
To create a dataflow in the Power BI service, navigate to any workspace other than My Workspace and choose New and then Dataflow, as shown in Figure 1.2:
Figure 1.2: Create a dataflow in the Power BI service
In Excel, the Power Query editor interface can be accessed by using the Data tab of the ribbon and choosing Get Data:
Figure 1.3: Get Data in Microsoft Excel
Once the data source is chosen, the Power Query Editor interface can be accessed by choosing the Transform Data button:
Figure 1.4: Transform Data option in Microsoft Excel
Both the Windows and Macintosh versions of Excel also support accessing and using dataflows.
There is also the Visual Studio Power Query Software Development Kit (SDK). This SDK consists of a set of tools designed to help create custom Power Query data source connectors. The Visual Studio Power Query SDK is covered in greater detail in Chapter 16, Enabling Extensions.
As you can see, M is widely used in different tools and platforms within the Microsoft ecosystem, such as Power BI Desktop, Excel, the Power BI and Fabric service, Power Platform, SQL Server, and Dynamics. M enables users to connect to various data sources, perform advanced data transformations, and automate data integration workflows. The skills learned in this book deal with the M language itself and, thus, transcend both the experience as well as the specific product or service. Thus, by mastering M, users gain the ability to create reusable data transformation processes and enhance their data manipulation capabilities across a wide range of data-related scenarios, as well as across any experience, product, or service that uses M as its underlying data transformation layer.
Let’s now turn our attention to why data professionals and other individuals might want to add M to their repertoire of language.
Change the font size
Change margin width
Change background colour