Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Power Query Cookbook

You're reading from  Power Query Cookbook

Product type Book
Published in Oct 2021
Publisher Packt
ISBN-13 9781800569485
Pages 412 pages
Edition 1st Edition
Languages
Author (1):
Andrea Janicijevic Andrea Janicijevic
Profile icon Andrea Janicijevic
Toc

Table of Contents (12) Chapters close

Preface 1. Chapter 1: Getting Started with Power Query 2. Chapter 2: Connecting to Fetch Data 3. Chapter 3: Data Exploration in Power Query 4. Chapter 4: Reshaping Your Data 5. Chapter 5: Combining Queries for Efficiency 6. Chapter 6: Optimizing Power Query Performance 7. Chapter 7: Leveraging the M Language 8. Chapter 8: Adding Value to Your Data 9. Chapter 9: Performance Tuning with Power BI Dataflows 10. Chapter 10: Implementing Query Diagnostics 11. Other Books You May Enjoy

Folding queries

You often connect to relational sources, and it is important to know how to leverage query folding in order to retrieve data from the sources with Power Query steps that act as a single query statement. Query folding helps us to push more steps toward the origin data source in order to reduce the number of steps processed by the Power Query engine.

In this recipe, you will see how to perform query folding and how to control it.

Getting ready

In this recipe, you need to connect to an Azure SQL database that you can recreate in your environment with the Adventureworks.bacpac file.

How to do it…

Once you open your Power BI Desktop application, you are ready to perform the following steps:

  1. Click on Get data and then More… to access the Get Data window and see the complete list of connectors.

    Figure 6.35 – Power BI connectors

  2. Browse to the Azure SQL database connector, select it, and click on Connect.
    Figure 6.36 – Azure SQL database connector

    Figure 6.36 – Azure...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}