Book Image

Learn Power Query

By : Linda Foulkes, Warren Sparrow
Book Image

Learn Power Query

By: Linda Foulkes, Warren Sparrow

Overview of this book

<p>Power Query is a data connection technology that allows you to connect, combine, and refine data from multiple sources to meet your business analysis requirements. With this Power Query book, you’ll be empowered to work with a variety of data sources to create interactive reports and dashboards using Excel and Power BI. </p><p>You’ll start by learning how to access Power Query across different versions of Excel and install the Power BI engine. After you've explored Power Pivot, you’ll see why Excel users find it challenging to clean data in Power Pivot and learn how Power Query can help to tackle the problem. The book will show you how to transform data using the Query Editor and write functions in Power Query. A dedicated section will focus on functions such as IF, Index, and Modulo, and creating parameters to alter query paths in a table. You’ll also work with dashboards, get to grips with multi-dimensional reporting, and create automated reports. As you advance, you'll cover the M formula language in Power Query, delve into the basic M syntax, and write the M query language with the help of examples such as loading all library functions offline in Excel and Power BI. Finally, the book will demonstrate the difference between M and DAX and show how results are produced in M. </p><p>By the end of this book, you’ll be ready to create impressive dashboards and multi-dimensional reports in Power Query and turn data into valuable insights.</p>
Table of Contents (17 chapters)
Free Chapter
1
Section 1: Overview of Power Pivot and Power Query
6
Section 2: Power Query Data Transformations
11
Section 3: Learning M

Understanding the Index and Modulo functions

In this section, we will be looking at the index and modular functions. These tools allow us to remove rows and create additional rows that we can order, which will assist in filtering the relevant data that we need. We will also explore how to rename and delete steps, which will make it easier to understand which step is associated with what it is doing.

Beginning with the modulo function

Before we start looking at the MOD function, it might be beneficial to explain what it is and how it can be used. Modulo is a term used in computing and mathematics that works out the remainder after you have divided a number by a different number. For my example, let's say that we are going to divide 11 by 4. This would give us an answer of 2 with a remainder of 3. This could be very practical in a class situation if you have to divide a class of students into groups of a specific number. Using the formula =mod(A3, B3) in cell C3, this will...