Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying The Definitive Guide to Power Query (M)
  • Table Of Contents Toc
  • Feedback & Rating feedback
The Definitive Guide to Power Query (M)

The Definitive Guide to Power Query (M)

By : Greg Deckler, Rick de Groot, Melissa de Korte
4.8 (39)
close
close
The Definitive Guide to Power Query (M)

The Definitive Guide to Power Query (M)

4.8 (39)
By: Greg Deckler, Rick de Groot, Melissa de Korte

Overview of this book

Data transformation is a critical step in building data models and business intelligence reports. Power Query is an invaluable tool for anyone who wants to master data transformation, and this book will equip you with the knowledge and skills to make the most of it. The Definitive Guide to Power Query (M) will help you build a solid foundation in the Power Query M language. As you progress through the chapters, you'll learn how to use that knowledge to implement advanced concepts and data transformations. This will set the stage for an uncompromisingly thorough exploration of the Power Query M Language. You'll also get to grips with optimizing performance, handling errors, and implementing efficient data processing techniques. As this is a hands-on guide, the practical examples in the chapters will help you gain the skills to apply Power Query to real-world problems and improve your data analysis capabilities. By the end of this book, you will be able to leverage all of Power Query's remarkable capabilities for data transformation.
Table of Contents (19 chapters)
close
close
4
Understanding Values and Expressions
In Progress | 0 / 7 sections completed | 0%
chevron up
6
Structured Values
In Progress | 0 / 6 sections completed | 0%
9
Parameters and Custom Functions
In Progress | 0 / 4 sections completed | 0%
10
Dealing with Dates, Times, and Durations
In Progress | 0 / 8 sections completed | 0%
13
Iteration and Recursion
In Progress | 0 / 4 sections completed | 0%
14
Troublesome Data Patterns
In Progress | 0 / 4 sections completed | 0%
17
Other Books You May Enjoy
In Progress | 0 / 1 sections completed | 0%
18
Index
In Progress | 0 / 1 sections completed | 0%

Table Values

A table is a structured value composed of: 1) Rows, where each row represents a record; 2) Columns, where each column represents a field of a record and has a specific datatype; and 3) Headers, which are the names of each column.Tables can be created in many different ways in M, including using the #table constructor, or from values, lists, records, columns or rows using the appropriate M function.

Structure

table(
columns as any,
rows as any,
) as any

Examples

let
    Source = #table(
        type table [ProductID = text, ProductQuantity = number, Column3 = date],
        {
            {“P001”, 10, #date(2023, 8, 13)},
            {“P002”, 25, #date(2023, 8, 14)},
            {“P003”, 30, #date(2023, 8, 15)}
        }
    )
in
    Source

There are many ways to construct tables using #table, as well as other functions that creates tables from other kinds of primitive and structured value. These methods will be addressed in...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY