Create an advanced query (Power Query)

Use Excel's Get & Transform (Power Query) experience to create advanced queries that use the Power Query formula language. The Power Query Formula Language provides a wide variety of formulas that are used to build complex expressions. To learn more about the Power Query formula language, see Learn about Power Query Formulas. To create an advanced query, you start with a blank query and add query steps that contain Power Query formulas. To learn more about how to edit query steps, see Edit query step settings.

Note:  When you insert or delete an intermediate step in a query you might potentially break a query. Power Query will display an Insert Step warning when you try to insert a new step.

Click on the Data tab, then Get Data > From Other Sources > Blank Query. If you don't see the Get Data button, click New Query > From Other Sources > Blank Query. Next, select Advanced Editor from the Query Editor pane.

Go to Power Query > Get External Data > From Other Sources > Blank Query. Select Advanced Editor from the Query Editor pane.

Create an advanced query from scratch

You can also modify an existing query, as shown in the following video.

Modify an existing Power Query advanced query

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also

Power Query is known as Get & Transform in Excel 2016

Import data from external data sources

Connect with an expert
Contact us
Expand your skills
Explore training

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×