Learn about Power Query formulas
Important This article applies to Power Query, a data analysis feature available for Excel that lets you discover, combine and refine data. You may need to enable Power Query in Excel. You can also download and install the most recent version of Power Query for Excel, which automatically enables it. Power Query technology is also built into the Power BI Designer, which is a stand-alone report authoring and data transformation tool for Power BI.
With Microsoft Power Query for Excel, you can add custom columns to your queries. For more information about custom columns, see Insert a custom column into a table. The Power Query Formula Language provides a wide variety of formulas that are used to build complex expressions.
Power Query formulas can be written or modified in the Query Editor, by using the formula bar.
To show the formula bar:
Click Settings > Show Formula Bar in the Query Editor.
Note For a very quick video on how to display Query Editor, see the end of this article.
Power Query provides a powerful data query and shaping experience for Excel that encompasses many capabilities. A core capability of Power Query is to filter and reshape data from a large collection of data sources. Any such data query is expressed using the Power Query Formula Language. To learn about the Power Query Formula Language:
Power Query formula categories – Concise Power Query formula reference with syntax, arguments, remarks, and examples for all formulas.
Microsoft Power Query for Excel Formula Language Specification (PDF) – Comprehensive explanation of the Power Query Formula Language (informally known as "M"). Power Query embeds M documents in Excel workbooks to enable repeatable mashup of data.
Power Query Formula Library Specification (PDF) – Concise Power Query formula reference with syntax, arguments, remarks, and examples for all formulas.
Note The Query Editor only appears when you load, edit, or create a new query using Power Query. The following video shows the Query Editor window appearing after editing a query from an Excel workbook. To view the Query Editor without loading or editing an existing workbook query, from the Get External Data section in the Power Query ribbon tab, select From Other Sources > Blank Query. The following video shows one way to display the Query Editor.