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

The Definitive Guide to Power Query (M)
By :

Creating custom columns is a common data transformation activity when working with Power Query and the M language. In this section, we will explore several ways to create custom columns using both the GUI of the Power Query Editor as well as writing custom M code.
A common column added to M queries is an index column that numbers the rows in sequential order. To add an index column to the existing query created in the Your First Query section of this chapter, do the following:
Performing this action adds an Added Index step in the Applied Steps area of the Power Query Settings pane. The Formula bar displays the following M code with the Added Index step selected:= Table.AddIndexColumn(#"Changed Type", "Index"...