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
17
Other Books You May Enjoy
18
Index

Duration

Unlike the Analysis Services tabular data model, the M language includes a data type for duration. The unfortunate omission of a duration data type in Analysis Services means that calculations involving duration are perhaps better handled in Power Query rather than with DAX columns or measures. However, it is also important to realize that duration data type columns in Power Query are converted to decimal numbers when loaded into the data model. Consider the following expression:

let
    Source = Duration.From("0.01:00:00"),
    #"Converted to Table" = #table(1, {{Source}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type duration}})
in
    #"Changed Type"

This single row table, containing a duration data type column with a value of 1 hour, when loaded into the data model becomes the value 0.0416666666666667, which is the fractional amount of a day (1 hour/24 hours...

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
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

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