PL 300T00A ENU Powerpoint02

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 33

Prepare data in

Power BI Desktop
aka.ms/PL300-2

© Copyright Microsoft Corporation. All rights reserved.


Learning objectives:
• Connect to data
Agenda • Explore the data
• Clean and transform data
• Enhance dataset performance

© Copyright Microsoft Corporation. All rights reserved.


Connect to data

© Copyright Microsoft Corporation. All rights reserved.


Combine all data into a single dataset

© Copyright Microsoft Corporation. All rights reserved.


Get data from a wide variety of sources

© Copyright Microsoft Corporation. All rights reserved.


Select a storage mode

• Storage mode affects:


• Available transformations
• Report performance

© Copyright Microsoft Corporation. All rights reserved.


Introduction to DirectQuery

© Copyright Microsoft Corporation. All rights reserved.


Implications of using DirectQuery

Benefits Limitations
• Frequently changing data • Performance: Dependent on the underlying
• Need near real-time data source.

• Large data volumes


• Security: Understand how data moves
between source and destination.
• Multi-dimensional data
• Modeling: Some modeling capabilities are
limited or aren’t supported.
• Transformation: Some data transformation
techniques are limited.

© Copyright Microsoft Corporation. All rights reserved.


Data import errors

When loading your data, you may


encounter the following errors:
• Query Timeout
• Couldn’t find data formatted as a table
• Could not find file
• Data type errors

© Copyright Microsoft Corporation. All rights reserved.


Knowledge check: Get data

What type of import error might leave a column blank?

How can you reduce the data load for a database connection?

Which storage mode supports all transformations?

© Copyright Microsoft Corporation. All rights reserved.


Explore the data

© Copyright Microsoft Corporation. All rights reserved.


Data profiling options in Power Query Editor

© Copyright Microsoft Corporation. All rights reserved.


Determine cardinality of a column

© Copyright Microsoft Corporation. All rights reserved.


DEMO
Get data in Power BI Desktop

© Copyright Microsoft Corporation. All rights reserved.


Lab: Prepare data in Power BI Desktop (30 minutes)
Prepare Data | GitHub Exercise

This lab is designed to introduce you to Power BI


Desktop application and how to connect to data and
how to use data preview techniques to understand
the characteristics and quality of the source data. The
learning objectives are:
• Open Power BI Desktop
• Connect to source data
• Preview source data
• Use data profile tools

© Copyright Microsoft Corporation. All rights reserved.


Knowledge check: Profile data

How many rows are sampled in Power Query Editor by default?

How is data profiling defined?

© Copyright Microsoft Corporation. All rights reserved.


Clean and transform the data

© Copyright Microsoft Corporation. All rights reserved.


Transform data with Power Query Editor

© Copyright Microsoft Corporation. All rights reserved.


Common transformations
Transform columns, add new, split, extract, and more

© Copyright Microsoft Corporation. All rights reserved.


User-friendly values

© Copyright Microsoft Corporation. All rights reserved.


Shaping table structure

© Copyright Microsoft Corporation. All rights reserved.


Evaluate and change column data types

© Copyright Microsoft Corporation. All rights reserved.


Combine multiple queries into one

© Copyright Microsoft Corporation. All rights reserved.


Unpivot columns or pivot
Add or remove table structure to meet your aggregation needs

© Copyright Microsoft Corporation. All rights reserved.


Enhance dataset performance

© Copyright Microsoft Corporation. All rights reserved.


Performance recommendations

• Only keep necessary data


• Check data types
• Reduce cardinality
• Enable/disable load
• Use parameters

© Copyright Microsoft Corporation. All rights reserved.


Query folding

Compatible transformations processed


against data source instead of within
Power BI Desktop.

Supported sources include:


• Relational databases
• OData feeds
• Active Directory

© Copyright Microsoft Corporation. All rights reserved.


Dynamic reports with parameters

© Copyright Microsoft Corporation. All rights reserved.


DEMO
Clean, transform, and load data in Power BI

© Copyright Microsoft Corporation. All rights reserved.


Lab: Load data in Power BI Desktop (45 minutes)
Load Data | GitHub Exercise

In this lab, you’ll apply transformations to each of the


queries created in the previous lab. You’ll then apply
the queries to load each as a table to the data model.
In this lab you learn how to:
• Apply various transformations
• Apply queries to load them to the data model

© Copyright Microsoft Corporation. All rights reserved.


Knowledge check: Clean and transform data

How would you select specific columns and prevent new columns added to source from
being included in your query?

What is one data source that supports query folding?

How do you join two queries with the same columns but different rows?

© Copyright Microsoft Corporation. All rights reserved.


• Connect to various data sources
• Explore and profile data
Recap • Clean and transform data
• Enhance dataset performance

© Copyright Microsoft Corporation. All rights reserved.


References
Prepare data for analysis
Clean, transform, and load data in Power BI

© Copyright Microsoft Corporation. All rights reserved.

You might also like