Categories
Application Data Visualisation Excel Training Microsoft Microsoft Office Office Office 2016 Office 365 Power BI Technology

The Pros and Cons of Power Query

In conversation with one of our Excel / Power BI trainers.

In this post, we sit down with one of our training delivery team to look at the pros and cons of Power Query in Excel, as a new way of working with data.

Jens, how would you describe Power Query in Excel in one word?

MAGIC!

That has my attention! How has Power Query changed the way you work with data?

When I started using Power Query five years ago, I was blown away. This tool has completely changed my way of working in Excel.

Power Query has reduced the time I spend in Excel dramatically and has minimised or removed boring repetitive tasks. This has allowed me to gain an elevated level of efficiency. Power Query has also minimised my use of VBA coding in Excel.

The Power Query Process
The Power Query Process
So, how does Power Query work?

One might see Power Query as a machine. Once you have built the “machine”, it will continuously repeat the tasks for any new data added to Excel. It is a much easier alternative to automating processes than VBA programming because the Power Query does not need coding.

Sounds good! What are the most useful key features of Power Query?

With Power Query you can:

  • Connect live to an external data source
  • Structure internal and external data
  • Clean, merge, append, and group internal and external data
  • Automate tasks
  • Transfer data from the query connection to the Excel data model

Let me explain each of these points:

Connect live to an external data source

You will find the tools to connect to external data on the Data tab in Excel, in the Get & Transform Data group. I normally tell my clients that you can connect to any live data if you have legal access to the external data. You may need to get help from your IT department to connect to your source. However, once you have created the connection, you can create your reports, analysis, or dashboards. They will auto update when you add new data to the source.

You can also connect to a folder, which is extremely useful if you receive data from clients. If you connect Power Query to a folder, the only thing you will have to do when you receive a new file, is to drop it in the folder you have connected to. Your report, dashboard, or analysis will update and include the new data from the added file.

Structure internal and external data

Through my work as an Excel trainer, I often notice how users struggle with badly structured source data in Excel. If the data is structured incorrectly, everything gets much more complicated and time consuming.

Excel prefers data in lists. You should arrange all source data in well-structured lists.

It does not really matter how you structure your data is initially. Power Query can restructure your data sets and when you have set up the query, the “machine” will restructure newly added data automatically.

The Power Query Editor:

Power Query Editor
Power Query Editor
Clean, merge, append, and group internal and external data

Have you been in a situation where US dates, extra spaces, unprintable characters, spelling mistakes, empty rows and columns, incorrect formatting, or hundreds of other issues, have caused you endless cleaning work in Excel? Then Power Query is the right tool for you. And again, when the query is set up to do the job, it will do it for all data added in future.

Power Query can merge any number of tables. Say goodbye to complicated and memory-heavy lookup and reference functions.

Connect to multiple lists and turn them all into one list by using the Append option in Power Query.

The Group Data tool in Power Query can replace Pivot Tables and the Subtotal tool in Excel but is also an extremely useful part of the Merge Data tool which generates related keys between tables.

All the tools in Power Query are available both for external and internal data.

Automate tasks

Like the macro recorder in Excel, Power Query records the steps you do in your data sets and writes code in a language called Power Query M.

Code example:

Code Example
Code Example

One of the differences between macros and Power Query is the way Power Query executes the code. Recorded macros will only run on a user command. Power Query M will automatically execute the steps every time.

Transfer data from the query connection to the Excel data model

Excel has a limit of just over a million rows per sheet. However, the number of rows you can add to the memory of the Data Model is almost unlimited. Few Excel users are aware of the data modelling tool called Power Pivot. Not only can it store billions of records, but also, the compression technology Microsoft has developed for this tool is outstanding.

If you are working with huge data sets, then using Power Query and Power Pivot together is a winning combination. You can connect to huge data sets, clean, structure, merge and append your data in Power Query. Afterwards, you can transfer the data to the Excel data model and relate the data sets.

I am not saying it is easy, but a good understanding of databases, Vlookup, and Pivot Tables can be particularly useful towards understanding related data.

Are there any cons to using Power Query, Jens?

I called this article “The Pros and Cons of Power Query” but after five years of using the app, I have seen only pros.

All Excel users above a basic level should get a good understanding of this tool. It will change how they use Excel. For most users it will also have a massive impact on the time spent in Excel.

How would you summarise the pros and cons?

Pros:

  • A positive impact on the efficiency of Excel tasks
  • Removal of boring time-consuming repetitive tasks
  • Automation of tasks without complicated VBA codes
  • Improved data quality and structure

Cons:

None!

Thanks, Jens, for an excellent explanation of the pros and cons of Power Query. To be honest, I can see only pros!

 

Categories
Application Data Visualisation Microsoft Power BI

Increase Productivity with Power BI’s new Navigator Tools

In this article we will introduce you to Power BI’s new Navigator tools used to enhance the functionality and appearance of your multi-page reports. If you use the app, this will help you increase productivity with Power BI’s new navigator tools.

The scenario

So, you’ve got your data all ready to be made into visuals in Power BI desktop. What next? Make the visuals from the data first? Maybe. But what about how your report looks once it is published. A bunch of charts, tables and infographics distributed over several pages may make sense to you but what about the person who needs to make decisions based on that data?

What is needed here is a clear structure to help the end user navigate to the relevant report pages, just like web pages within a web site. Less time spent figuring out where to find that all important KPI infographic means more time actually making sense of the data and being more productive and efficient.

Power BI Navigator Tool
Power BI Navigator Tool
Why use Navigator Tools?

So, which tools will give you this structure? In Power BI desktop there is a new feature called Page Navigator buttons. These tools are great because they provide you with all the alignment, formatting and interactivity options to give your reports a functional ‘website’ feel. They will have instant appeal to the end user and also establish a corporate look and feel. These amazing tools allow anyone with minimal design ‘know how’ to build an interactive report in ‘half a minute’. Yes, that’s right – 30 seconds of your time! This compares to 5 minutes using the old navigator tools. So, not only is your end user saving time consuming the report pages but so are you in creating them. This means more time focusing on making those all-important visuals even more business focussed.

The Power BI server does provide the end user with navigation buttons as standard in published reports. So why bother making more buttons that do exactly the same job? Well, the buttons in Power BI server are grey, boring and frankly not worth using. A website must be functional in terms of getting there and back within the report pages. However, it also needs to have visual impact that sends out the right corporate message. Therefore, these Navigator buttons are equipped with all the colour/font formatting features that can bring to life an otherwise bland report.

The Solution – How to use the new tools
  1. Make sure you have the latest version of Power BI desktop
  2. Name your first page as ‘Welcome’ (serves as a Home Page)
  3. On the Ribbon, go to Insert > Buttons > Navigator > Page Navigator
  4. Expand the ‘Welcome’ button to a long or tall rectangle – depending on whether you want your buttons to be horizontal or vertical
  5. Add 4 more pages. Note that each page addition automatically generates its own button
  6. The page buttons now can be used to jump to the relevant page
  7. Any colour/font formatting can be done to the whole button set – no need to apply individually
  8. To finish, just copy and paste the button set to the remaining pages

In conclusion, if you follow the steps above, you will no doubt increase productivity with Power BI’s new navigator tools.