Book Image

Power Query Cookbook

By : Andrea Janicijevic
Book Image

Power Query Cookbook

By: Andrea Janicijevic

Overview of this book

Power Query is a data preparation tool that enables data engineers and business users to connect, reshape, enrich, and transform their data to facilitate relevant business insights and analysis. With Power Query's wide range of features, you can perform no-code transformations and complex M code functions at the same time to get the most out of your data. This Power Query book will help you to connect to data sources, achieve intuitive transformations, and get to grips with preparation practices. Starting with a general overview of Power Query and what it can do, the book advances to cover more complex topics such as M code and performance optimization. You'll learn how to extend these capabilities by gradually stepping away from the Power Query GUI and into the M programming language. Additionally, the book also shows you how to use Power Query Online within Power BI Dataflows. By the end of the book, you'll be able to leverage your source data, understand your data better, and enrich it with a full stack of no-code and custom features that you'll learn to design by yourself for your business requirements.
Table of Contents (12 chapters)

Exploring artificial intelligence insights

Power Query allows us to enrich data with a data engineering approach. It also provides us with artificial intelligence (AI) tools to access cognitive services, which are pre-trained machine learning (ML)models provided by Microsoft, usually used by data scientists and app developers to apply cognitive capabilities to reading and interpreting data.

In this recipe, you will explore how to leverage these features in order to run, with a no-code approach, consistent text analysis, thanks to the use of cognitive services.

Getting ready

For this recipe, you need to have Power BI Desktop running on your machine. You need to download the following file in a local folder: 

  • IMDB-Dataset CSV file with movie reviews data

In this example, we will refer to the C:\Data folder. 

In order to access cognitive services resources, you need to have a running Power BI Premium capacity.

How to do it

Once you...