Power BI Data Analyst
Power BI Data Analyst
Power BI Data Analyst
michiel.rozema@quanto.eu
www.linkedin.com/in/MichielRozema
www.quanto.eu
www.quanto-training.eu
www.powerbisummerschool.eu
Agenda – dag 1
Visualize
View results, get insights, and play with reports and dashboards
Analyze
Define business views and implement calculations in analytical models
Prepare
Transform, cleanse, and combine data
Connect
Discover data and extract data from source
The Traditional BI landscape
Export
Prepare Excel
Data
Warehouse
Connect Excel
LOB systems
The Modern Microsoft BI platform
Share PowerBI.com
Power BI
app
Power BI
Report Server
Microsoft
Teams
SQL Server
Visualize Excel Power BI reports Reporting
SQL Server
Analyze Power Pivot Power BI model Analysis
Services
Azure Analysis
Services
Share PowerBI.com
Power BI
app
Power BI
Report Server
Microsoft
Teams
Power BI Embedded
Insights Action
Insights Action
Visualize Interact
Demo
https://quanto.eu/powerbireport2
Exercises
https://quanto.eu/powerbireport2
https://quanto.eu/trainingdata
Exercise
Working with Power BI reports –1
• What was the year-to-date sales for team Asia Pacific 1 in July 2020?
What was the year-on-year growth%?
• What was the sales on clothing in October 2019?
• What was the year-to-date sales growth % of team Europe 1 in
September 2019, for bikes and components combined?
• Which employee in Europe had the highest sales on components in
2018?
• What is Giulia Moore’s birthday?
• What was Giulia Moore’s year-to-date sales number in November
2017?
Exercise
Exercise
Working with Power BI reports –2
Exercise
Power Query / Dataflows
What is Power Query
Get &
Power Query
Transform
(Power BI)
(Excel)
Dataflows Analysis
Dataflows Dataflows
(Azure Data Services
(Power BI) (PowerApps) (SQL Server)
Factory)
Working with Power Query in Power BI Desktop
• Start from the Home tab in the ribbon, section External Data
• Choose your data source or click Edit Queries
• Work in the Power Query Editor window to form your dataset
• You can work on multiple queries at the same time
• When ready, load the data through the Close & Apply button
Query Editor basics
• Removing columns
• Remove Columns: cannot be reconfigured
• Choose Columns: can be reconfigured
• Removing rows
• Remove Rows: Top, Bottom, Alternate, Duplicates, Blanks, with Errors
• Keep Rows: Top, Bottom, Range, Duplicates, with Errors
• Some of these depend on selected columns – select multiple columns
with CTRL or SHIFT
Splitting Columns
• Note: the thin line below the column name indicates the status
of all values in the column: OK, blank, or error
Other transformations
• Transpose
• Use columns as rows, and vice versa
• Be careful: tables can have many rows!
• Pivot
• Use values in selected column to create new columns
• Must provide aggregation to fill columns with values
• This is like a pivot table in Excel!
• Unpivot
• The reverse of Pivot
• Either do this on selected columns (Unpivot Columns) or unselected
columns (Unpivot Other Columns)
Indexes, Conditional Columns
Staging
Fact Table
Query
Staging
Filter Table
Query
Staging
Query
Staging
Fact Table
Query
Staging
Query
Staging
Filter Table
Query
Combining Files from a Folder
Typical uses:
• Manage file location of local files
• Manage location of online resources
• Set development and production data sources
• Change data volumes between development and production
Creating a Parameter
• Many Power Query features allow for parameters, but not as the
default
• For e.g. Excel files, load the file first, then click the gear icon in
the first query step and select Advanced
How to use a Parameter (2)
• 1. Parameters
• 2. Fact tables
• 3. Other tables (Filter tables)
• 4. Control tables
• 5. Staging queries
• 6. Functions
• 7. Templates (including folder query groups)
•…
• Other Queries
Exercise
https://quanto.eu/trainingdata
Exercises PQ 3
Introduction to M
The Advanced Editor
M script structure:
let
A = Function(<something>),
B = Function(A),
C = Function(B)
in
C