Tuesday, August 7, 2018

Promote a row to column headers (Power Query)

Promote a row to column headers (Power Query)

Note: Power Query is known as Get & Transform in Excel 2016. Information provided here applies to both. To learn more, see Get & Transform in Excel 2016.

Note: For a quick video on how to display Query Editor, see the end of this article.

When a table is created, Power Query assumes that all data belongs in table rows. However, a data source might have a first row that contains column names. To make sense of the data, you might need to promote the first table row to column headers.

Promote a row to column headers

Using the Query Editor ribbon

  1. In the Query Editor ribbon, click Use First Row As Headers.

Using the preview grid table icon ( Table icon )

  1. Right-click the table icon ( Table icon ) in the upper left corner of the table.

To Promote a row to column headers

  1. Select Use First Row As Headers.

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.

How to see Query Editor in Excel

No comments:

Post a Comment