What is Power Query

Level: Beginners

Edit: Sep 2019

I am still astounded by the number of people I meet that have never heard of Power Query and Power Pivot.  The good news is there are lots of people out there in for a pleasant surprise.  I think Power BI will solve the “lack of awareness of Power Query” problem over the coming months and years.  Power BI is much more visible as can been seen in this Google Trends chart that I first created in Dec 2014.

I have written a blog titled “What is Power Pivot” before and I refer people to that page all the time – this helps me quickly give people a detailed summary of what they need to know.  Today I am writing about Power Query for the same reason – to have something that I can point people towards when they are just starting out.

So What is Power Query?

Power Query is an Extract, Transform and Load tool (ETL) that helps Power BI and Excel users connect to data, transform the shape of the data as required and then load the data for further use, typically into Power BI,  Excel, CSV etc.  ETL tools are not new – there are many enterprise strength tools in the marketplace that are used by IT professionals.  What makes Power Query such a ground-breaking tool is it is the first tool built specifically for business users.

Who can benefit from Power Query?

If one or more of the following scenarios applies to you, then Power Query is a great tool to make your life better.

  • You spend hours and hours of repetitive work combining data from various source into a single data table before you can start the real work.
  • You have data in a file but it is the wrong shape for the task at hand.  You need to spend time “reshaping” the data before you can use it.
  • You write lots of VLOOKUP formulas in Excel over multiple tables of data to “join” the data together.
  • You manually have to “cleanse” your data every month removing data and errors that you already know about but you can’t permanently solve back at the source.
  • You need to get data from web pages into Power BI so you can analyse the data. You cut and paste the data and spend hours reformatting it to remove the noise from the data.

Power Query Online Training

What Can Power Query Do?

Power Query can be used for the following (and probably many more things too).

  • A data loading tool
  • A data cleansing tool (remove unwanted columns, rows, characters etc)
  • A data reshaping tool including a very powerful “unpivot data” function (example shown below)

unpivot

  • A tool to combine data from multiple worksheets or workbooks into a single file/table

combine

  • A tool to join data from different sources into 1 coherent data set or table.
  • An auditing tool – compare lists of data and find the similarities and differences.
  • A website data scraping tool – easily load tabular data from a web page into Power BI or Excel .
  • A data creation tool (e.g. it can create a calendar table for Power BI).  Read my blog posts about how create a regular Calendar table here, or a 445 Calendar table here.

What Makes Power Query So Great?

Power Query is great for many reasons including:

  • It has a simple User Interface that any business user can learn.  Note the simple menu driven features in the image below.
    PQUI[3]
  • The user interface is built on top of a very powerful formula language ‘M’ that has immense capabilities well beyond what most users will ever need.  If you do ever need something more complex than the UI can support, the language is there (as shown below) and can be used to build a working solution without switching tools.
    image
  • Power Query records repeatable “Process Steps” that can be reused over and over without destroying the underlying data.  You can go back through the Process Steps and see the data before the transformation took place.  You can even insert new transformation steps earlier in the process flow if needed.
    Process Steps
  • Repeatable process steps means that you can build the steps for one set of data and then you can “reapply” those same process steps to a different set of data (provided both sets of data are fundamentally the same “shape”).  This is great for updating weekly or monthly data (for example).
    reusable process

Versions of Power Query

Power BI Desktop

Power Query is fully integrated into Power BI Desktop where it is called “Get Data” – unfortunately.  You can find it by navigating to the Home Tab (#1 below) and then clicking Get Data (#2 below).  Power Query (Get Data) is the only way to load data in Power BI Desktop, so if you have used this tool to build a new workbook then you have already used Power Query (Get Data).

image

Why Microsoft couldn’t stick with the name “Power Query” is anyone’s guess.  Maybe they thought users were “scared off” by the “Power” term – who knows.

Excel 2016

In Excel 2016 also the product was fully integrated into Excel and renamed “Get and Transform” – unfortunately.  To find it in Excel 2016, you need to go to the Data tab (#1 below) and then you will see the Get and Transform group (#2 below).

image

Excel 2010/2013

Power Query was first released as a free Addin for Excel 2010 and Excel 2013.  After you install the Addin, you get a new menu on the Excel Ribbon shown below.

image

You can find the download details for Excel 2010/2013 on my downloads page here.

Power BI Online Training

The Power Query Formula Language (‘M’)

The official name of the underlying language of Power Query is called “M”.  The intellisense in ‘M’ is not as great as DAX but Microsoft is improvising it regularly.

Where to learn more

If you want a comprehensive lesson on how to use Power Query, checkout my online training course here Power Query Online Training for Excel & Power BI Professionals.

I often blog about how to get value from Power Query.  You can subscribe to my blog via email at the top of this page.  You can also explore the previous Power Query blog posts that I have written here.

There is a great book by Ken Puls and Miguel Escobar – I wrote a book review here.  I am also a big fan of Ken’s blog that you can find here.

121 thoughts on “What is Power Query”

  1. Have you ever thought about adding a little bit more than just your articles? I mean, what you say is important and all. But think about if you added some great graphics or videos to give your posts more, “pop”! Your content is excellent but with images and clips, this website could certainly be one of the very best in its field. Excellent blog!

  2. I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly very often inside case you shield this hike.

  3. I was just looking for this info for some time. After six hours of continuous Googleing, finally I got it in your website. I wonder what’s the lack of Google strategy that don’t rank this kind of informative web sites in top of the list. Normally the top sites are full of garbage.

  4. Does your blog have a contact page? I’m having problems locating it but, I’d like to shoot you an e-mail. I’ve got some creative ideas for your blog you might be interested in hearing. Either way, great site and I look forward to seeing it grow over time.

  5. Fantastic goods from you, man. I have understand your stuff previous to and you are just extremely great. I really like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it entertaining and you still take care of to keep it smart. I can’t wait to read much more from you. This is really a terrific web site.

  6. I have been exploring for a little bit for any high quality articles or weblog posts in this sort of house . Exploring in Yahoo I eventually stumbled upon this website. Reading this info So i am satisfied to exhibit that I’ve an incredibly just right uncanny feeling I discovered exactly what I needed. I so much without a doubt will make certain to don?¦t put out of your mind this site and provides it a glance on a constant basis.

  7. I feel this is one of the such a lot vital information for me. And i’m satisfied studying your article. But wanna remark on some basic things, The web site style is wonderful, the articles is in reality excellent : D. Good job, cheers

  8. Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!

  9. Hi! Do you know if they make any plugins to assist with SEO? I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good success. If you know of any please share. Thanks!

  10. you’re really a excellent webmaster. The site loading pace is amazing. It kind of feels that you are doing any unique trick. Moreover, The contents are masterpiece. you have performed a magnificent task in this topic!

  11. Hey just wanted to give you a brief heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

  12. of course like your web site but you have to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I find it very troublesome to inform the truth nevertheless I?¦ll certainly come back again.

  13. I’m not sure why but this web site is loading very slow for me. Is anyone else having this issue or is it a problem on my end? I’ll check back later on and see if the problem still exists.

  14. Hmm it appears like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog blogger but I’m still new to the whole thing. Do you have any helpful hints for newbie blog writers? I’d definitely appreciate it.

  15. Good summary Matt.
    The more I use Power Query (still struggling to call it Get & Transform) the more I love it.

    I think Microsoft would hold their hands up and admit the terminology and naming conventions they’ve used haven’t been the best. Measures v Calculated Fields being a prime example.

    I still refer to Power Pivot, Power Query and Power Map as “Power BI” tools but now PowerBI.com is really grabbing the PowerBI label so that becomes a point of confusion.

    1. Matt Allington

      I could not agree more Wyn. I used to call Power Pivot, Power Query and Power Map as “Power BI on the Desktop” until…., well you know what happened then. Power BI Designer became Power BI Desktop.

  16. It is amazing even in the excel expert world of finance how few people have heard of power query.
    I think it should have been call PowerDataLaundryMachine personally.

    I honestly find Power BI more confusing. Is it a tool set, a stand alone tool, a distribution tool…. I’m still not really clear. Even more confusing perhaps is the licensing around these tools.

    1. Matt Allington

      Yeah, they make it hard. I heard someone say that some people were “scared off” by the Power Tags thinking – “this must be complex and not for me”.

Leave a Comment