Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Mastering Microsoft Power BI – Second Edition
Mastering Microsoft Power BI – Second Edition

Mastering Microsoft Power BI – Second Edition: Expert techniques to create interactive insights for effective data analytics and business intelligence , Second Edition

Arrow left icon
Profile Icon Greg Deckler Profile Icon Powell
Arrow right icon
$27.98 $39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (56 Ratings)
eBook Jun 2022 712 pages 2nd Edition
eBook
$27.98 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Greg Deckler Profile Icon Powell
Arrow right icon
$27.98 $39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (56 Ratings)
eBook Jun 2022 712 pages 2nd Edition
eBook
$27.98 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$27.98 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mastering Microsoft Power BI – Second Edition

Preparing Data Sources

This chapter follows on from the dataset planning process described in Chapter 1, Planning BI Projects, by providing guidance on how to prepare for connecting to and transforming data using Power Query (M) queries. Power Query queries are written in a data transformation language commonly called “M” or can be generated via the Power Query Editor user interface. These queries access data sources and optionally apply data transformation logic to prep the tables for the Power BI data model.

As mentioned in Chapter 1, Planning BI Projects, to the greatest extent possible data transformation processes should be implemented within data sources such as Azure SQL and Azure Synapse SQL rather than via Power BI’s data transformation capabilities. The presence of significant data transformation logic (for example, joins, filters, and new columns) outside of an organization’s primary data warehouse or “source of truth” makes...

Query folding

Query folding is one of the most powerful and important capabilities of the M language as it translates M expressions into equivalent query statements for the given source system to process. With query folding, Power Query (M) serves as a rich abstraction layer for defining both simple and complex data transformation processes while still leveraging the compute resources of the source system. 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 shown in Figure 2.1, 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:

Graphical user interface, application  Description automatically generated

Figure 2.1: 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...

Query design per dataset mode

As mentioned in Chapter 1, Planning BI Projects, to the greatest extent possible data transformation processes should be implemented within data sources such as Azure SQL and Azure Synapse Analytics rather than via Power BI’s data transformation capabilities.

The presence of significant data transformation logic, such as joins, filters, and new columns, outside of an organization’s primary data warehouse or “source of truth” makes these solutions more difficult to understand and support. In addition, source systems are generally provisioned with more compute resources to handle data transformations and often include secondary data structures, like indexes, that speed up certain operations such as filters and joins.

If resource or time constraints make it necessary to apply data transformations in Power BI rather than source systems, Power Query (M) should generally be favored over DAX calculated columns and tables...

Data sources

Data source connectivity is one of the strengths of Power BI, due to the vast list of standard data source connectors included in Power BI Desktop. In addition, numerous industry standards such as Open Data Protocol (OData), Open Database Connectivity (ODBC), and Object Linking and Embedding Database (OLE DB) are supported. The breadth of data connectivity options is further bolstered by the ability for developers to create custom Power BI data connectors for a specific application, service, or data source.

Although a Power BI dataset can connect to multiple sources ranging from Azure Synapse Analytics to a text file, solution architects and developers should strive to build solutions on a single, well-supported source such as a data warehouse database system that already contains the necessary data integrations as well as reflects data integrity constraints and quality processes. Power BI datasets that connect to several distinct sources, and particularly to less...

SQL views

As described in the Dataset planning section of Chapter 1, Planning Power BI Projects, a set of SQL views should be created within the data source and these SQL views, rather than the database tables, should be accessed by the Power BI dataset. SQL views are essentially virtual tables that provide an abstraction layer from the underlying database tables. SQL views can be used to merge database tables and to limit the number of columns, thus preventing such transformations from occurring within Power Query queries.

Each fact and dimension table required by the Power BI dataset should have its own SQL view and its own M query within the dataset that references this view. The SQL views should preferably be assigned to a dedicated database schema and identify the dimension or fact table represented as shown in Figure 2.11:

Figure 2.11: Views assigned to BI schema in SQL Server

A common practice is to create a database schema specific to the given dataset being...

Summary

In this chapter, we’ve covered a number of important concepts, design principles, data source settings, and source system preparation. This includes query folding, query design considerations per dataset mode, important Power BI Desktop configuration settings, data source privacy levels, and the layer of SQL views within a database source.

Understanding these concepts and properly preparing source systems greatly aids the process of connecting to and transforming data using Power BI.

In the next chapter, we’ll leverage the prepared source systems and design techniques described in this chapter to connect to source systems and transform their data using Power Query (M).

Join our community on Discord

Join our community’s Discord space for discussions with the author and other readers: https://discord.gg/q6BPbHEPXp

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Master the latest dashboarding and reporting features of Microsoft Power BI
  • Combine data from multiple sources, create stunning visualizations and publish Power BI apps to thousands of users
  • Get the most out of Microsoft Power BI with real-world use cases and examples

Description

Mastering Microsoft Power BI, Second Edition, provides an advanced understanding of Power BI to get the most out of your data and maximize business intelligence. This updated edition walks through each essential phase and component of Power BI, and explores the latest, most impactful Power BI features. Using best practices and working code examples, you will connect to data sources, shape and enhance source data, and develop analytical data models. You will also learn how to apply custom visuals, implement new DAX commands and paginated SSRS-style reports, manage application workspaces and metadata, and understand how content can be staged and securely distributed via Power BI apps. Furthermore, you will explore top report and interactive dashboard design practices using features such as bookmarks and the Power KPI visual, alongside the latest capabilities of Power BI mobile applications and self-service BI techniques. Additionally, important management and administration topics are covered, including application lifecycle management via Power BI pipelines, the on-premises data gateway, and Power BI Premium capacity. By the end of this Power BI book, you will be confident in creating sustainable and impactful charts, tables, reports, and dashboards with any kind of data using Microsoft Power BI.

Who is this book for?

Business Intelligence professionals and intermediate Power BI users looking to master Power BI for all their data visualization and dashboarding needs will find this book useful. An understanding of basic BI concepts is required and some familiarity with Microsoft Power BI will be helpful to make the most out of this book.

What you will learn

  • Build efficient data retrieval and transformation processes with the Power Query M language and dataflows
  • Design scalable, user-friendly DirectQuery, import, and composite data models
  • Create basic and advanced DAX measures
  • Add ArcGIS Maps to create interesting data stories
  • Build pixel-perfect paginated reports
  • Discover the capabilities of Power BI mobile applications
  • Manage and monitor a Power BI environment as a Power BI administrator
  • Scale up a Power BI solution for an enterprise via Power BI Premium capacity

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 30, 2022
Length: 712 pages
Edition : 2nd
Language : English
ISBN-13 : 9781801818193
Vendor :
Microsoft
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jun 30, 2022
Length: 712 pages
Edition : 2nd
Language : English
ISBN-13 : 9781801818193
Vendor :
Microsoft
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 146.97
Learn Power BI
$56.99
Microsoft Power BI Quick Start Guide
$39.99
Mastering Microsoft Power BI – Second Edition
$49.99
Total $ 146.97 Stars icon
Banner background image

Table of Contents

17 Chapters
Planning Power BI Projects Chevron down icon Chevron up icon
Preparing Data Sources Chevron down icon Chevron up icon
Connecting to Sources and Transforming Data with M Chevron down icon Chevron up icon
Designing Import, DirectQuery, and Composite Data Models Chevron down icon Chevron up icon
Developing DAX Measures and Security Roles Chevron down icon Chevron up icon
Planning Power BI Reports Chevron down icon Chevron up icon
Creating and Formatting Visualizations Chevron down icon Chevron up icon
Applying Advanced Analytics Chevron down icon Chevron up icon
Designing Dashboards Chevron down icon Chevron up icon
Managing Workspaces and Content Chevron down icon Chevron up icon
Managing the On-Premises Data Gateway Chevron down icon Chevron up icon
Deploying Paginated Reports Chevron down icon Chevron up icon
Creating Power BI Apps and Content Distribution Chevron down icon Chevron up icon
Administering Power BI for an Organization Chevron down icon Chevron up icon
Building Enterprise BI with Power BI Premium Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(56 Ratings)
5 star 82.1%
4 star 8.9%
3 star 0%
2 star 5.4%
1 star 3.6%
Filter icon Filter
Top Reviews

Filter reviews by




Matvey Osipov Jul 02, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great resource for developers that have been assigned a PBI project, this book covers each concept in great detail for an end-to-end solution (From PBI desktop, to service, general security, RLS, Admin Center, DAX, M, etc). I was very impressed with this book as a lot of concepts covered in other books take the high level approach or refer you to Microsoft's documentation (which can sometimes be brief as well). Looking back to when I was studying to take the DA-100 (now PL-300), this book would have been a great resource as well!In summary - this is a one stop shop book! I highly recommend it and am very impressed!
Amazon Verified review Amazon
Gus Reyes Sep 09, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Mastering Power BI, this book ended on my hands at the right time, I was contacted by our dear friend Valerie Connor and she asked me if I would like to review a Power BI book. I said: I would love to, actually, it is the time that I am reading lots of books related to Power BI because I am planning to go for the PL-300 certification.Then Vidhi Vashisth very kindly sent me a copy of this amazing book.This book is not for those starting their path on Power BI, it is for those with previous and solid knowledge of the Power BI environment, so if you are thinking to start your journey here let me tell you that this is not for beginners.I liked chapters 7, 8 and 9 dedicated to Data visualisations and formatting, applying advanced analytics, and dashboard designs. My data career has been linked to these topics when analysing data. I loved the part about ArcGis for Power BI, brought back a lot of memories of when I was involved in a mobile shop and live data collection project.DAX was a bit short, as my brother Ugochukwu Onyeka said, if you are looking to dive deep into DAX there are more books about DAXing including one from one of the writers of this book.Here you have a brief list of the things I refreshed from this book: - How to setup your environment and use Power BI Desktop to connect to SQL Server databases and get data (for your models) - I have been dealing with the AdventureWorks DB recently :) - How to design and implement master pages to manage page titles, column captions, and page navigation - How to design and implement workbooks to manage reports, reports page setup, report content, and page navigation - How to use dashboards to design and implement dashboards with multiple pages that display live data from the same model - How to establish and enforce security permissions on a Dashboard page, including user memberships - How to display reports in an interactive page with live data, including report filter and page navigation - How to use the Report Parts feature in the Power BI Desktop to create reusable content that you can package and reuse in reports on dashboards - How to get started with using the Power BI Service - How to use Power BI on the web - How to get started with published reports on mobile apps - How to implement and manage reports with data refreshes - How to publish a report to SharePoint and Teams.The chapter that was new and intriguing for me was Chapter 14, Administering Power BI for an Organisation. It got me thinking about the application of GDPR, local policies, and rules. I have not had the chance to apply this in real life yet.I am sure that you may release another edition because Power BI is being updated constantly.I enjoyed this book a lot and I will use it for my PL-300 exam preparation.Thank you, Val and Vidhi.
Amazon Verified review Amazon
Paul Turley Jul 08, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is one of the best Power BI resources I have seen as of late. I own a lot of books on the Microsoft BI platform and I'm super-impressed with the great work that Greg and Brett have done. They are regarded as true experts and this book is a reflection of their terrific work in the Microsoft BI community. I don't give praise easily and quite honestly have been unimpressed with some early Packt titles but this book is a gem. This is a comprehensive end-to-end guide that promotes best-practices and shares a wealth of deep expertise from these two gentlemen. The writing is clear, articulate and the topical coverage is thorough. I highly recommend this book as a companion to DAX and Tabular Modeling books from SQLBI.
Amazon Verified review Amazon
BI P. Aug 19, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is both writing such a way that a beginner can understand it, as well as providing enough in depth details that a professional can delve deep into the technology behind Power BI.
Amazon Verified review Amazon
Mr Joseph Morlino Jul 25, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I received an early release version of this book and after having purchased the first edition some time ago, I was keen to see what has changed and it became clear immediately that this book has moved with the times and been kept up to to date.Pros - up to date, excellent chapter on the Power BI gateway, great explanation on the questions we all ask regularly such as the difference between import and direct query, superb explanation of the different visualisations and what they all do.Cons - touches on M and DAX but if you want to learn how to utilise these (you will definitely need a grasp of DAX), you'd be better buying a book dedicated to these topics.All in all, this is the ultimate Power BI book and I can't recommend it highly enough.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.