Up & Running With PBI
Up & Running With PBI
POWER BI DESKTOP
1 What you see on your screen may not always match mine
• Power BI Desktop features are updated frequently (product updates released eachmonth)
• NOTE:Power BI is currently only compatible with PC/Windows (not available for Mac)
2 This course is designed to get you up & running with Power BI Desktop
• The goal is to provide a foundational understanding of Power BI desktop; some concepts may be
simplified, and we will not cover some of the more advanced tools (i.e. Mcode, custom Rvisuals, advanced
DAX, etc)
3 Power BI and Power Pivot in Excel are built on the exact same engine
• If you’ve taken my Power Query, Power Pivot & DAXcourse, the first sections will review similar coreconcepts
• Feel free to skip ahead if you’re already comfortable withPower Query and data modeling fundamentals
Formula Bar
(this is “M” code)
Table Name
& Properties
Query List
Applied Steps
(like amacro)
Promote
header row
1 Click on Get Data and Text/CSV Connector 2 Choose the File AdventureWorks_Product.csv
3 An overview of AdventureWorks_Product.csv
1 Click on Get Data and Text/CSV Connector 2 Choose the File AdventureWorks_Customer.csv
Date & Time tools are relatively straight-forward, and include the following options:
• Age: Difference between the current time and the date in eachrow
• 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: Youwill almost always want to perform these operations from the “Add Column” menuto
build out new fields, rather than transforming an individual date/timecolumn
PRO TIP:
Load up a table containing a single date column and use Date tools to build out an entire calendar
table
1 Click on Get Data and Text/CSV Connector 2 Choose the File AdventureWorks_Calandar.csv
1 Click on Get Data and Text/CSV Connector 2 Choose the File AdventureWorks_Calandar.csv
1) Create a new, blank query (Get Data > Blank Query or New Source > Blank Query)
2) In the formula bar, generate a starting date by entering a “literal” (in YYYY, MM, DD format):
3) Click the fX icon to add a new custom step, and enter the following formula exactly as shown:
4) Convert the resulting list into a Table (List Tools > To Table) and format the column as a Date
5) Add calculated Date columns (Year, Month, Week, etc.) as necessary using the Add Column tools
This time we’re transforming the daily, transaction-level table into a summary
of “TotalQuantity” aggregated by both “ProductKey” and “CustomerKey”
(using the advanced option in the dialogbox)
1 Click on Get Data and Text/CSV Connector 2 Choose the File UnpivotDemo.csv
Sellam
HEYTHIS IS IMPORTANT!
Just because you can merge
tables, doesn’t mean you should.
In general, it’s better to keep tables
separate and define relationships
between them (more on that later!)
PRO TIP:
Use the “Folder” option (Get Data > More > Folder) to append all files within a folder (assuming they share
the same structure); as you add new files, simply refresh the query and they will automatically append!
1) From within the Data view, right-click a field 2) This creates a hierarchy field 3) Right-click other fields
(or click the ellipsis) and select “New hierarchy” containing “Start of Year”, which (like “Start of Month”) and
(here we’ve selected “Start of Year”) we’ve renamed “Date Hierarchy” select “Add to Hierarchy”
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 willonly slow you down