Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Power BI Complete Reference

You're reading from   Microsoft Power BI Complete Reference Bring your data to life with the powerful features of Microsoft Power BI

Arrow left icon
Product type Course
Published in Dec 2018
Publisher Packt
ISBN-13 9781789950045
Length 794 pages
Edition 1st Edition
Arrow right icon
Authors (5):
Arrow left icon
Brett Powell Brett Powell
Author Profile Icon Brett Powell
Brett Powell
Mitchell Pearson Mitchell Pearson
Author Profile Icon Mitchell Pearson
Mitchell Pearson
Brian Knight Brian Knight
Author Profile Icon Brian Knight
Brian Knight
Devin Knight Devin Knight
Author Profile Icon Devin Knight
Devin Knight
Manuel Quintana Manuel Quintana
Author Profile Icon Manuel Quintana
Manuel Quintana
+1 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (25) Chapters Close

Title Page
About Packt
Contributors
Preface
1. Getting Started with Importing Data Options FREE CHAPTER 2. Data Transformation Strategies 3. Building the Data Model 4. Leveraging DAX 5. Visualizing Data 6. Using a Cloud Deployment with the Power BI Service 7. Planning Power BI Projects 8. Connecting to Sources and Transforming Data with M 9. Designing Import and DirectQuery Data Models 10. Developing DAX Measures and Security Roles 11. Creating and Formatting Power BI Reports 12. Applying Custom Visuals, Animation, and Analytics 13. Designing Power BI Dashboards and Architectures 14. Managing Application Workspaces and Content 15. Managing the On-Premises Data Gateway 16. Deploying the Power BI Report Server 17. Creating Power BI Apps and Content Distribution 18. Administering Power BI for an Organization 19. Scaling with Premium and Analysis Services 1. Other Books You May Enjoy Index

Query folding


Query folding is one of the most powerful and important capabilities of the M language as it translates M expressions into SQL statements that can be executed by the source system. With query folding, M serves as an abstraction layer to implement both common and complex data cleansing and transformation operations while still leveraging source system resources. When implementing any remaining logic or data transformations via M functions, a top priority of the dataset designer is to ensure that these operations are folded to the data source.

In the following M query, a Table.RemoveColumns() M function is applied against the SQL view for the Internet Sales fact table to exclude three columns that are not needed for the dataset:

Power Query Editor: View Native Query

The additional step is translated to a SQL query that simply doesn't select the three columns. The specific SQL statement passed to the source system can be accessed by right-clicking the final step in the Query Settings...

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 ₹800/month. Cancel anytime