Power BI Desktop
Power BI Desktop
Desktop
1
Power BI – Brief Informati on
Power BI is a business analytics solution that lets you visualize your data and share insights across your
organization, or embed them in your app or website. Connect to hundreds of data sources and bring your data
to life with live dashboards and reports. interface is simple enough for end users to create their own reports
and dashboards.
Power BI provides cloud-based BI services, known as "Power BI Services", along with a desktop based interface,
called "Power BI Desktop". It offers data warehouse capabilities including data preparation, data discovery and
interactive dashboards
2
Power BI – Key Component
Power BI Desktop :- The Windows-desktop-based application for PCs and desktops, primarily for designing and
publishing reports to the Service.
Power BI Service : online service (now referred to as PowerBI.com or simply Power BI).
Power BI Mobile Apps : The Power BI Mobile apps for Android and iOS devices, as well as for Windows phones
and tablets.
Power BI Gateway :Gateways used to sync external data in and out of Power BI. In Enterprise mode, can also
be used by Flows and PowerApps in Office 365.
Power BI Embedded : Power BI REST API can be used to build dashboards and reports into the custom
applications that serves Power BI users, as well as non-Power BI users.
Power BI Report Server : An On-Premises Power BI Reporting solution for companies that won't or can't store
data in the cloud-based Power BI Service.
Power BI Visuals Marketplace :A marketplace of custom visuals and R-powered visuals.
3
FREE vs. PRO vs. PREMIUM
Individual & Team Use Enterprise
Distribution
Power Power BI Power BI
BI PRO PREM I
FREE
No license required but
UM
Licensing based on dedicated
Individually licensed
users have limited and can leverage all capacity vs. number of users;
access and can’t content creation and content can be viewed
collaborate or distribute interaction features without additional per-user
content costs
Note: These lists may NOT be comprehensive as service features and functionality are frequently
4 updated
Workflow of Power BI Desktop
Power BI Desktop
Data Data
preparation Data modelling
visualization
5
POWER QUERY
WHEN TO USE POWER QUERY
Use Power Query and when you want to…
From File From Database FromAzure From Online Services From Other Sources
THE QUERY EDITOR
Query
Editing
Formula Bar
Tools (this is “M” code)
Name your
table!
Data
Applied
Preview Steps
Access the Query Editor by creating a new query and choosing the “Edit” option, or by launching
the Workbook Queries pane (Data > Show Queries) and right-clicking an existing query to edit
#3: AUTOMATE YOUR DATA PROCESSING
The TRANSFORM tab includes tools to modify existing columns (splitting/grouping, transposing, extracting text, etc.
The ADD COLUMN tools create new columns based on conditional rules, text operations, calculations, dates, etc.
BASIC TABLE TRANSFORMATIONS
Sort values Change data types Promote header row
(A-Z, Low-High, etc.) (date, $, %, text, etc.)
Date & Time tools are relatively straight-forward, and include the following options:
• Age: Difference between the current time and the date in each row
• Date Only: Removes the time component of a date/time field
• Year/Month/Quarter/Week/Day: Extracts individual components from a date field
(Time-specific options include Hour, Minute, Second, etc.)
• Earliest/Latest: Evaluates the earliest or latest date from a column as a single value
(can
only be accessed from the “Transform” menu)
Note: You will almost always want to perform these operations from the “Add Column” menu
to
build out new fields, rather than transforming an individual date/time column
PRO TIP:
Load up a table containing a single date column and use Date tools to build out an
entire calendar table
CREATING A BASIC CALENDAR TABLE
Note that we lose any field not specified in the Group By settings
PIVOTING & UNPIVOTING
“Pivoting” is a fancy way to describe the process of turning distinct row
values into columns (“pivoting”) or turning columns into rows (“unpivoting”)
PRO TIP:
Use the “From Folder” query option to automatically append all files from within the same folder
POWER QUERY BEST PRACTICES
Give your queries clear and intuitive names, before loading the data
• Define names immediately; updating query & table names later can be a headache,
especially if you’ve already referenced them in calculated measures
• Don’t use spaces in table names (otherwise you have surround them with
single quotes)
When working with large tables, only load the data you need
• Don’t include hourly data when you only need daily, or product-level transactions when
you only care about store-level performance; extra data will only slow you down
The Query
Editor
27
Power BI Desktop – Query Editor
Power BI Desktop
Data Data
preparation Data modelling
visualization
28
DATABASE NORMALIZATION
Normalization is the process of organizing the tables and columns in a relational database to reduce
redundancy and preserve data integrity. It is commonly used to:
• Eliminate redundant data to decrease table sizes and improve processing speed & efficiency
• Minimize errors and anomalies from data modifications (inserting, updating or deleting records)
• Simplify queries and structure the database for meaningful analysis
In a normalized database, each table should serve a distinct and specific purpose (i.e. product information, calendar
fields, transaction records, customer attributes, etc.)
This Calendar Lookup table provides additional attributes about each date (month, year, weekday, quarter, etc.)
This Product Lookup table provides additional attributes about each product (brand, product name, sku, price, etc.)
Original Fact Table fields Attributes from Calendar Lookup table Attributes from Product Lookup table
Tip: Always drag relationships from the Data table to the Lookup tables
CONNECTING LOOKUPS TO LOOKUPS
PRO TIP:
Models with multiple related lookup tables
are called “snowflake” schemas
Models with a single table for each lookup
or dimension are called “star” schemas
In this case we’re joining the Calendar_Lookup table to the FoodMart_Transactions data table
using the date column as our key
There is only one instance of each date in the lookup table (noted by the “1”), but many
instances of
each date in the data table (noted by the asterisk “*”), since multiple transactions occur each
day
BAD CARDINALITY: MANY-TO-MANY
• If we try to connect these tables using the product_id field, we’ll have a many-to-many relationship
since there are multiple instances of each ID in both tables
• Even if we could create this relationship in Power Pivot, how would you know which product was
actually sold on each date – Cream Soda or Diet Cream Soda?
BAD CARDINALITY: ONE-TO-ONE
• In this case, connecting the tables above using the product_id field creates a one-to-one
relationship, since each ID only appears once in each table
• Unlike many-to-many, there is nothing illegal about this relationship; it’s just inefficient
43
The Star Schema
DIM TABLE DIM TABLE
Products Customers
• IdentifierProd FACT TABLE • IdentifierCust
• ProductType • FirstName
• PricePerUnit Sales • SecondName
• CostperUnit • Age
• IdentifierProd • Gender
• IdentifierDate
• IdentifierCust
• IdentifierGeo
Time • UnitsSold SalesPoint
• TotalSales
• IdentifierDate • TotalCost • IdentifierGeo
• Year • Continent
• Quarter • Country
• Month • City
• Week
• Day
44
Our Project – Current structure
Population-Combined
• Country-ID
• Country
• Year
• AgeGroup
• Gender
• Population
45
Out Project turned into a Star
Schema
FACT TABLE
DIM TABLE DIM TABLE
Population
Region Age
• Country-ID
• Country-ID • AgeGroup-ID • AgeGroup-ID
• Country • Year • AgeGroup
• Region • Gender • Category
• Population
46
Query: Duplicate vs. Reference
Query Editor
A Query 1 Query 2
B (Created in Query Editor) (Reference to Query 1)
A
Source
B
file A Query 2
C (Duplicate of Query 1)
B
47
Merge Queries - Join Kind
Merged Queries
A 10 USA A USA 10
Separate Queries A 10 USA
Outer
Query 1 B 50 n/a BB Europe n/a
Query 2 B 50 n/a
LEFT RIGHT C 20 Asia C Asia 20
C 20 Asia
ID Sales ID Region
BB n/a Europe
A 10 A USA
C 20 C Asia
ID Sales Region
A 10 USA
C 20 Asia
Inner
48
Import data into the data
model
Import data
Query 1
Query 2 Default = Query 1 &
Enable load is Query 2 are
Data preparation loaded into the
Data model
set for all data model
Query Editor queries Data View/Report View
Source files
49
Data View &
Relationships
50
Power BI Desktop – Data Modelling
Power BI Desktop
Data Data
preparation Data modelling
visualization
51
Query Editor vs. Data Model
52
Query Editor vs. Data Model
Power BI Desktop
Data Data
preparation Data modelling
visualization
53
Let‘s bring our Data Model to
live
Cardinality
= „Type of relationship“
54
One to many (1:*) & Many to
one (*:1)
Customers Orders
E 05 Feb 2017 3
F 15 Feb 2017 4
55
Course interim conclusion
This course
M OR DAX
56
Calculated Columns vs.
Measures
Perform an operation that generates results for each row of your table Calculated Column
57
Report
View
Let‘s create beautiful charts and tables
58
Power BI Desktop – Report
View
Power BI Desktop
Data Data
preparation Data modelling
visualization
59
COURSE OUTLINE
1 Introducing Power BI Service Meet Power BI Service, Free vs. Pro vs. Premium,
user personas, signing in, interface overview, etc.
4 Reports & Dashboards Creating reports & dashboards, pinning tiles and
reports,
alerts, Q&A, web vs. mobile layout etc.
5 Sharing & Collaboration Tools Printing, exporting, shared with me, publish to
web,
collaborating with coworkers, apps
61
POWER BI: DESKTOP VS. SERVICE
POWER BI DESKTOP POWER BI
SERVICE
Many Limited Data
Data Sources
Sources
Power
Query Dashboard
Modeling & (limited in service) s
Relationshi
Calculated
ps Apps &
Columns
(M code only) Workspac
es
Visualization
Measure Creation
(DAX) Tools (Custom, Gateways &
bookmarks, Dataflows
interactions, etc.)
RLS RLS
Creation Management
62
FREE vs. PRO vs. PREMIUM
Individual & Team Use Enterprise
Distribution
Power Power BI Power BI
BI PRO PREM I
FREE
No license required but
UM
Licensing based on dedicated
Individually licensed
users have limited and can leverage all capacity vs. number of users;
access and can’t content creation and content can be viewed
collaborate or distribute interaction features without additional per-user
content costs
Note: These lists may NOT be comprehensive as service features and functionality are frequently
63 updated
COMMON USER PERSONAS
Power BI Service can be used in many different ways, and serve many different types
of users. Some common personas include:
THE CREATOR – Creators design, build and maintain reports and dashboards. These users
play a key role in the entire BI workflow – from data wrangling to modeling and
visualization – and must have a deep, well-rounded Power BI skillset.
THE ANALYZER – Analyzers explore and manipulate data to extract key insights. These users
often create and edit visuals, define calculated measures and columns with DAX, and use
features like Q&A, interactions, report filters and bookmarks.
THE COLLABORATOR – Collaborators publish and share reports, apps and workspaces to ensure
that everyone has access to the data they need. Collaborators should be familiar with configuring
user roles, row-level security (RLS), and app/workspace environments.
64
CREATING A NEW ACCOUNT
Head to Enter your name, create a Once you’ve created your
1 powerbi.microsoft.com/landing/signin
and scroll down to enter your e-mail address
2 password, verify your e-mail, and
confirm you’re not a robot
3 account, navigate directly
to app.powerbi.com to
and create a new account log in
• Note: Head to Step 3 if you already have an
account
65
QUICK TOUR OF THE INTERFACE
NAVIGATION PATH SEARCH BOX
Highlights the active Search your data
workspace, app, report or and
dashboard available content
OFFICE 365
APP
LAUNCH ICON BUTTONS
ER Quick links for
Email, settings,
OneDrive, help, feedback, etc.
Calendar,
etc.
NAVIGATION
PANE
Key Power BI
views, including
Favorites, Apps, CONTENT
Workspaces, etc.
CANVAS
Displays all of your
GET datasets, visuals,
reports,
DATA
dashboards, and
Create new
workbooks
data
connection
s
66
DATA CONNECTION OPTIONS
Power BI Service allows you to connect to files (Excel, Power BI, csv), content packs (Github,
Google Analytics, Bing, Salesforce, etc.) or databases (Azure SQL database, SSAS, Spark)
CSV
67
DATA CONNECTION OPTIONS
PRO TIP:
Use Power BI Desktop to connect to database sources and build your relational models, then publish the file
or create a live connection from Power BI Service to make your reports available on the cloud
68
DATA CONNECTION OPTIONS
MY SERVIC
ORGANIZATION ES
FIL DATABAS
ES ES
69
DEMO: LOADING A CSV FILE
70
THE BUILDING BLOCKS OF POWER BI
SERVICE
The core building blocks of Power BI Service include datasets, workbooks, reports, and
dashboards, which together form something called a workspace:
71
THE BUILDING BLOCKS OF POWER BI
SERVICE
DATASETS & REPOR DASHBOA
WORKBOOKS TS RDS
CS
V
72
COMMON WORKSPACE ACTIONS
Create Report Scheduled Mor
DATASE
TS
Refresh e
Link to create a Set automated Settings & options
ACTIONS new report dataset refresh (rename, delete, analyze
page schedule in excel)
73
DEMO: LOADING EXCEL WORKBOOKS
PRO TIP:
When it comes to Excel workbooks, recommend performing your data prep and transformation in Excel rather than Power
BI Service, as the Excel Online functionality in Power BI Service is much more limited
74
DEMO: LOADING TABLES FROM EXCEL
75
MY WORKSPACE VS. APP WORKSPACES
There are two types of workspaces in Power BI Service: My Workspace & App
Workspaces
My App
Workspace Workspaces
• Personal workspace for a single user (Free • Shared workspace for many users (with Pro
or Pro) licenses)
• By default, only you can access content in this • Multiple users can access and collaborate on
workspace (can’t collaborate with others) content within app workspaces
• Content can be shared with individual Pro • App workspaces can be created and shared
users across
(shared with me) your organization
• Contains core building blocks (datasets, • Contains core building blocks (datasets,
workbooks, workbooks,
reports & dashboards) reports & dashboards), plus dataflows
76
CREATING AN APP WORKSPACE
Maven Analytics
OPTION 2:
Add a Name (required) and
optional
Description for your app workspace
77
ACTIVATING YOUR PRO TRIAL
1
78
UNDERSTANDING GATEWAYS
Data Gateways basically act like a bridge, creating a connection between data on your local
machine
or server (not on the cloud) and Power BI Service (in the cloud)
• This allows you to keep data securely on your own network, and enables options like scheduled
refresh
Manual Refresh
Local (Larry the Intern) Power BI
data Service
CS
V
HEY THIS IS
•IMPORTANT!
Gateways are only supported for
Windows
Data Gateway
• To use scheduled refresh, your Excel or
(Robot Larry)
Power BI file must contain a data model
79
GATEWAY TYPES
There are two types of gateways in Power BI: Personal Mode gateways and Enterprise Mode
gateways
PRO TIP:
As a rule of thumb, only use Personal Mode when you’re the only one who needs to refresh your on-prem source
data, or when you need to enable automatic refresh for Power BI reports that you personally manage.
80
SETTING UP A PERSONAL GATEWAY
Sign-in
3 Check back later to see when your dataset refreshed last, and when it’s scheduled to refresh
next
3/5/2019, 5:31:26 AM
82
SETTING UP AN ENTERPRISE DATA
GATEWAY
1 Relaunch the data gateway installer (or download a
new one from powerbi.microsoft.com/gateway) and 2 Sign in using your Power BI Service credentials, then click
Configure to create a gateway name and recovery key
select “On-premises data gateway (password)
(recommended)”
83
SETTING UP AN ENTERPRISE DATA
GATEWAY
To confirm that your gateway is active, click the gear icon in the
84
UNDERSTANDING DATAFLOWS
Dataflows are essentially Power Query processes that run independently within Power BI
Service,
and are used to ingest, transform, integrate, and enrich your data
Why Dataflows?
• Reuse queries across multiple Power BI Desktop or Service
reports
• Run ETL (extract, transform & load) processes on specific schedules
• Create a centralized data warehouse to serve as a single source of
truth
86
CREATING A NEW DATAFLOW
1 Create new Dataflow
& 2 Choose a data source (in this
case
Clean & Transform your data
by adding
select Add New a csv) and configure applied steps (just like Power Query!)
Entities 3 connection
87
CREATING A NEW DATAFLOW
4 Name, describe, and
save 5 Configure scheduled
refresh
Connect to your dataflow as a
data
your Dataflow settings (frequency & time) source from Power BI
6 Desktop
88
UNDERSTANDING REPORTS &
DATASETS &
DASHBOARDS
REPORTS DASHBOARDS
WORKBOOKS Contain one or more visuals typically Contain collections of reports and
built tiles,
Contain the data sources you’ve from individual datasets or workbooks which can come from multiple
imported or connected to datasets
CS
V
89
THE REPORT INTERFACE: READING VS.
Report Reading View
EDITING Report Editing
View
Tools & Options for interacting, exploring, Tools & Options for editing, modifying, and
filtering, and pinning tiles and pages to creating
dashboards report visuals and dashboards
Report Pages (Similar to Excel tabs, Report Pages (Similar to Excel tabs,
each serves as a blank reporting each serves a blank reporting canvas)
canvas)
Filters Pane (Visual-Level, Page- Visualization & Formatting Options (Charts, Slicers, Maps,
Level, Matrices, etc)
Report-Level, and Drillthrough Filters)
Filters Pane (Visual-Level, Page-Level, Report-Level, and Drillthrough
90 Filters)
REPORT READING TOOLS
Navigate to report editing Reset all filters to default
view view
Tip: download,
Tip: Use personal email, or print
bookmarks to save the QR code for
important or interesting direct mobile
views access
(or
)
93
FORMATTING OPTIONS
Example: Line & Column Example: Example: Donut
Chart Matrix Chart
94
PINNING TILES TO A DASHBOARD
? HEADS UP!
Slicers have some limitations
in
Power BI, and cannot:
• Support drilldown
• Support visual level filters
• Be individually pinned to a
dashboard (but they can as part of
a live page)
95
PINNING ENTIRE REPORTS TO A
DASHBOARD
Use the Pin Live Page option to pin an entire
report to a dashboard (including multiple
visuals)
PRO TIP:
Pinning a live page will import slicers and preserve functionality
96
THE DASHBOARD INTERFACE
97
DASHBOARD TOOLS
Tip: Use the “create report” icon to Tip: Use duplicate dashboard
build when creating multiple
a new report from a related dataset similar dashboard to save
Tip: Add images & videos with time
URLs
98
ADDING DATA DRIVEN ALERTS
HEY THIS IS
IMPORTANT!
Alerts can only be set on gauge
charts, KPI cards, and cards.
Alerts do not work with live pinned
report pages
99
EXPLORING DATA WITH Q&A
Q&A allows you to visualize and explore your data using natural language questions (currently
English only)
“Profit by
Country”
10
0
GENERATING QUICK INSIGHTS
The Quick Insights tool searches for trends and patterns in your dataset and can display up to 32
individual insight cards with visuals and descriptions
10
2
WEB VS. MOBILE LAYOUT
Mobile Layout allows you to design reports on a canvas size optimized for mobile viewing (vs.
web)
• NOTE: You can’t actually build content within the Mobile Layout view; you need to build in Web Layout and assemble select visuals
10 if you plan to share content via the Power BI mobile app
3
SHARING & COLLABORATION OPTIONS
DASHBOARDS &
REPORTS
INDIVIDUALS
TEAMS
ORGANIZATIO
NS
10
4
SHARING & COLLABORATION OPTIONS
1 Print or Export a Report Ideal for quickly exporting reports or dashboards as static
PDFs or PowerPoint documents (great for handouts!)
Only use the Publish to Web option if you want your content to
6 Publish to Web be
publicly visible to anyone online. Use with caution!
10
5
APP WORKSPACE USER PERMISSIONS
When adding others to app workspaces, you can assign roles based
on
three levels of permissions:
CONTRIBUT MEMBER ADMIN
OR
• Publish, create, edit, and All Contributor rights, All Member rights,
delete content in plus: plus:
• Add members or users • Update/delete workspaces
workspace
with lower permission • Add or remove other
• Can’t add people to new levels users
roles or modify members
• Publish and update apps (including admins)
• Can share if the content
• Share an item or app
has been previously shared
but can’t share new • Allow others to reshare
content
10
6
PRO TIP GENERATING USAGE REPORTS
Power BI Service offers a report called usage metrics, which you can use to view and monitor
how your
dashboards and reports are being used
PRO TIP:
Choose “save report as” from the file menu to access the underlying data to build and customize your own
usage metrics report!
10
7
CONFIGURING ROW LEVEL SECURITY
DESKTOP ENVIRONMENT SERVICE
ENVIRONMENT
Roles allow you to define filtered views for specific audiences (i.e.
territory
managers, department leads, execs, etc), using simple DAX statements
10
9
CONFIGURING & PUBLISHING AN APP
After selecting Publish App, configure the details, content, and user
access:
11
0
THANK
11
1 YOU