0% found this document useful (0 votes)
25 views24 pages

DA 100T00A ENU DemoInstructions

The document outlines a series of instructor-led demos for the DA-100 course, focusing on Microsoft Data Analytics using Power BI. It includes detailed steps for setting up a virtual machine, creating reports and dashboards, preparing and transforming data, and optimizing model performance. Each section provides specific instructions for tasks such as connecting to databases, applying transformations, creating measures, and generating paginated reports.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views24 pages

DA 100T00A ENU DemoInstructions

The document outlines a series of instructor-led demos for the DA-100 course, focusing on Microsoft Data Analytics using Power BI. It includes detailed steps for setting up a virtual machine, creating reports and dashboards, preparing and transforming data, and optimizing model performance. Each section provides specific instructions for tasks such as connecting to databases, applying transformations, creating measures, and generating paginated reports.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

DA-100 | Instructor Demos

0: Get Started
Setup the VM
1. Sign in to the virtual machine environment using the Student account.
2. Open the D:\DA100\Demo\Setup\MySettings.txt file, and then enter the instructor and recipient
accounts, which have been provided to you.
Tip: Keep the MySettings.txt file open during the entire course. You will refer back to it in many
demos.

3. Open Microsoft Edge, then navigate to https://powerbi.com and sign in using the instructor
account.
If prompted to change the password, be sure to record it in the MySettings.txt file.

4. In the Power BI service, accept the Power BI Pro trial.

Setup the first demo


5. Create a workspace, and use the D:\DA100\Demo\Resources\Icon-Star.jpg image as its icon.
6. Open the D:\DA100\Demo\Setup\Sales Analysis.pbix file in Power BI Desktop.
7. In Power BI Desktop, sign in by using the instructor account.
8. Publish the report to the workspace you created earlier.
9. In the Power BI service, open the Sales Analysis report, and then pin the column/line chart visual
to create a new dashboard named Sales Monitoring.
10. Pin the funnel chart to the dashboard, also.
11. Open the dashboard, and leave it ready for the first demo.
12. Close Power BI Desktop.

DA100 | Instructor Demos 2


1: Get Started with Microsoft Data Analytics
Explore the dashboard
1. Show the Sales Monitoring dashboard, and explain how it can be used to get at-a-glance facts.
2. Click either tile to click through to the Sales Analysis report.

Explore the report


3. Interact with various slicers and visuals across the pages.
4. Edit the report, and then expand all fields in the Fields pane.

Describe the solution that will be developed during the course


5. Explain that the data model is based on a SQL Server database and an Excel workbook, which
helps to determine cost of goods sold.
6. Explain that a gateway will be setup to keep data current.
7. Explain that it will be shared with a recipient, and that recipients will only be allowed to see a
subset of data being only the product categories they manage.
8. Return to the Power BI service home page, and collapse the workspace.
You will not use this pre-developed solution again.

DA100 | Instructor Demos 3


2: Prepare Data in Power BI
Start the development of a Power BI report
1. Open Power BI Desktop, and then dismiss the getting started page.
2. Save the file to the D:\DA100\Demo folder as Sales Analysis.

Connect to a SQL Server database


3. “Get data” from SQL Server.
4. Connect to the database server name found in the MySettings.txt file, using Windows
authentication.
5. Expand the TailspinToys2020-US database.

Create queries based on database tables


6. Select the Product table to preview the data.
7. Check the Product table to create query.
8. Repeat the Sales table.
9. Click Transform Data.

Preview data
10. Describe the Power Query Editor window layout, including the Queries pane, the Query Settings
pane, the ribbon, the preview grid, and the status bar.
11. Point out the quality bar beneath the column headers, and hover the cursor over it to reveal
statistics about the column values.
12. On the View ribbon tab, turn on Column Quality.
13. Turn on Column Distribution, and point out columns like ProductID (unique values) and
ProductCategory (several duplicate values).
14. Turn on Column Profile, and then select the ProductCategory column.
15. Point out the column statistics and distribution.
16. Turn back off the three options.
17. Save the Power BI Desktop file, but do not apply changes.
18. Leave the Power BI Desktop file open for the next demo.

DA100 | Instructor Demos 4


3: Clean, Transform, and Load Data in Power
BI
Apply query transformations
1. First, apply transformations to the Product query.
2. Remove the RetailPrice, Photo, and Sales columns.
3. Change the data type of the Channels column to Whole Number.
4. Rename the following columns:

• ProductSKU to SKU

• ProductName to Product

• ProductCategory to Category

• ItemGroup to Item Group

• KitType to Kit Type


5. Second, apply transformations to the Sales query.
6. Remove all columns, except:

• OrderDate

• ProductID

• Quantity

• UnitPrice
7. Change the data type of the UnitPrice column to Fixed Decimal Number.
8. Rename the UnitPrice column to Unit Price.
9. Multi-select the Quantity and Unit Price columns, and then add a new column based on their
multiplication.
10. Rename the new column as Sales.

Integrate queries
11. Create a new query using the Excel connector, connecting to the
D:\DA100\Demo\Data\ProductCost.xlsx file.
12. Remove the Product column.
13. Change the data type of the ProductCost column to Fixed Decimal Number.
14. Select the Product query, and then merge with the ProductCost query, relating the SKU
columns.

DA100 | Instructor Demos 5


15. In the Privacy Levels window, set the privacy level for the D:\ to Organizational.
16. Expand the ProductCost column to include the ProductCost column (from the ProductCost
query).
17. Rename the new column as Cost.

Disable a query
18. In the Queries pane, disable the ProductCost query.

Load queries to the data model


19. On the Home ribbon tab, click the Close & Apply icon.
20. In Power BI Desktop, point out the two tables in the Fields pane.
21. Save the Power BI Desktop file.
22. Leave the Power BI Desktop file open for the next demo.

DA100 | Instructor Demos 6


4: Design a Data Model in Power BI
Review the model
1. In the Fields pane, expand all tables to reveal all fields.
2. In the Sales table, point out the OrderDate hierarchy, which was created automatically.
Explain that a Date table will be created in the next demo.

3. In Model view, hover over the automatically-created relationship between the two tables.
4. Explain how filters will propagate from the Product table to the Sales table.

Create a hierarchy
5. Create a hierarchy based on the Product table Category column.
6. Rename the hierarchy as Products.
7. Add the Product column as the second level.

Set model properties


8. Hide both the ProductID columns.
9. Format the Quantity column to use the thousands separator.
10. Multi-select the Sales and Unit Price columns, and format them to use two decimal places.

Validate the model design with a matrix visual


11. In Report view, add a matrix visual to the page, and then size it to fill the entire page.
12. Add the Products hierarchy to the rows, and then add the Quantity, Sales, and Unit Price fields.
13. Expand all levels of the Products hierarchy.
14. Point out that the Unit Price values are the sum of prices, which is not correct.
15. In the Fields pane, select the Unit Price field, and configure its summarization to use Average.
16. Remove the Sum of Unit Price column from the matrix visual, and then add the Unit Price field
back again.
17. Save the Power BI Desktop file.
18. Leave the Power BI Desktop file open for the next demo.

DA100 | Instructor Demos 7


5: Create Measures using DAX in Power BI
Create a calculated table
1. Create a calculated table by using the following expression:
DAX
Date = CALENDARAUTO()

All calculations can be copied from the D:\DA100\Demo\Resources\Snippets-Demo-05.txt file.

2. Switch to Data view, and review the table, which comprises a single date column.

Create calculated columns


3. Add a calculated column to the Date table:
DAX
Year = "CY" & YEAR('Date'[Date])

4. Add an additional calculated column to the Date table:


DAX
Month = FORMAT('Date'[Date], "YYYY-MM")

5. In Model view, create a relationship by dragging the Date table Date column to the Sales table
OrderDate column.
6. Hide the Sales table OrderDate column.
7. In the Date table, create the Calendar hierarchy, with Year and Month levels.
8. In Report view, mark the Date table as a date table using the Date column.
9. In the matrix visual, remove the Products hierarchy, and then replace it with the Calendar
hierarchy.
10. Add a calculated column to the Sales table:
DAX
Cost = 'Sales'[Quantity] * RELATED('Product'[Cost])

11. Format the Cost column to two decimal places.

Create a Quick Measure


12. Add a quick measure to the Sales table, subtracting the Cost column from Profit column.
13. Rename the measure as Profit.
14. Explain that the measure does not store data in the model.

DA100 | Instructor Demos 8


Create regular measures
15. Add a measure to the Sales table:
DAX
Profit Margin = DIVIDE([Profit], SUM('Sales'[Sales]))

16. Format the Profit Margin column as a percentage.


17. Add an additional measure to the Sales table:
DAX
Sales YTD = TOTALYTD(SUM('Sales'[Sales]), 'Date'[Date])

18. Format the Sales YTD column to two decimal places.

Validate the calculations with the matrix visual


19. Add the Cost, Profit, Profit Margin, and Sales YTD fields to the matrix visual.
20. Save the Power BI Desktop file.
21. Leave the Power BI Desktop file open for a later demo.

DA100 | Instructor Demos 9


6: Optimize Model Performance
Review a DirectQuery model design
This demo uses a different Power BI Desktop file.

1. Open the D:\DA100\Demo\Resources\AW Sales Analysis.pbix file.


2. If prompted to connect to the data source, click Connect.
3. At the bottom-right corner, point out that the data model comprises DirectQuery tables.
4. Save the Power BI Desktop file to the D:\DA100\Demo\MySolution folder.
5. In Model view, introduce the model design, which comprises two related tables.
6. In Report view, interact with the report by selecting different items in the Fiscal Year slicer.
7. Drill through from any month column to reveal order details.
8. Return to the Sales Summary page.

Review query performance


9. On the View ribbon tab, show the Performance Analyzer pane.
10. Refresh the visuals, and then expand the slicer and Sales by Month visual, and point out that
they used DirectQuery mode (data was requested from the data source).

Configure Dual storage tables


11. In Model view, select the Date table, and then select the storage mode to Dual.
12. When the data has imported, switch to Report view, and then in the Performance Analyzer pane,
refresh the visuals.
13. Point out that the Date table is now queried from the model cache.

Create aggregations
14. Open the Power Query Editor window, and in the Queries pane, duplicate the Reseller Sales
query.
15. Rename the new query Reseller Sales Agg.
16. Apply a group by transformation, as follows:

• Group by OrderDate.

• New column: Sales, which is the sum of the SalesAmount column.


17. Close and apply the queries.
18. In Model view, set the storage mode for the Reseller Sales Agg table to Import.

DA100 | Instructor Demos 10


19. Create a relationship from the Date table Date column to the Reseller Sales Agg table
OrderDate column—ensure that the column is one-to-many, with the Date table on the one-side.
20. Manage aggregations on the Reseller Sales Agg table:

• OrderDate: Group by the Reseller Sales table OrderDate column.

• Sales: Sum the Reseller Sales table SalesAmount column.


21. Point out that the aggregation table is now hidden.
22. Switch to Report view, and in the Performance Analyzer pane, and then refresh the visuals.
23. Point out that the Sales by Month table is now queried from the model cache.
24. Drill through from any month, and point out that the details in the table are requested as
DirectQuery from the data source.
25. Save the Power BI Desktop file.
26. Close Power BI Desktop.
You will not use this Power BI Desktop solution again.

DA100 | Instructor Demos 11


7: Create Reports

Create a single-page report


1. Remove the matrix visual that was used to test and validate the model calculations.
2. Rename the report page as Sales Summary.

Add a slicer
3. Add a slicer for the Date table Year column, and position it at the top-left of the report page.
4. Use the formatting options to configure the slicer for single selection.

Add various visuals


5. Add a line and stacked column chart to the page, and configure it as follows:

• Shared axis: Date | Month

• Columns values: Sales | Sales

• Line values: Sales | Profit Margin


6. Use the slicer to filter the page by CY2019, and then CY2020.
7. In the line and stacked column chart, point out that there is no sales column for December 2020.
8. Configure the shared axis to “show items with no data”.

DA100 | Instructor Demos 12


9. Point out that December 2020 is added to the axis, but there is no column of data.
10. Explain that sales data December 2020 has not happened yet.
You will run a script in a later demo to load December 2020 sales.

11. Add a funnel chart, and configure it as follows:

• Group: Product | Category

• Values: Sales | Profit Margin


12. Use the formatting options to select a contrasting data color.
13. Add a Q&A visual, and enter the following question: Total sales by product demographic
14. Save the Power BI Desktop file.
15. Leave the Power BI Desktop file open for a later demo.

DA100 | Instructor Demos 13


8: Create Dashboards

Create a dashboard
1. First, in the Power BI service, create a new workspace, and use the
D:\DA100\Demo\Resources\Icon-Airplane.jpg image as its icon.
2. In Power BI Desktop, publish the Sales Analysis report to the new workspace.
3. Once published, return to the Power BI service.
4. Open the Sales Analysis report, and then ensure the Year slicer is set to CY2020.

Pin report visuals


5. Pin the line and stacked column chart to create a new dashboard named Sales Monitoring.
6. Pin the funnel chart to the new dashboard.
7. Open the Sales Monitoring dashboard.
8. Edit the details of the Profit Margin tile and modify the subtitle text to include the year (CY2020).

Add Q&A tile


9. Use Q&A on the dashboard to ask the following question: Total sales in CY2020
10. Pin the response to the dashboard.
11. Show how to resize and reposition the tiles.

DA100 | Instructor Demos 14


9: Create Paginated Reports in Power BI
Use the Table/Matrix Wizard
1. Open Power BI Report Builder.
2. In the Getting Started window, select the Table or Matrix Wizard.
3. In the first Wizard step, create a new data source:

• Name: TailspinToys

• Connection type: Microsoft SQL Server

• Server name: (Copy from the Snippets.txt file)

• Database name: TailspinToys2020-US


4. In the second Wizard step, design the query:

• Expand the Region table, and then check the RegionName column.

• Expand the State table, and then check the StateName column.

• Expand the Sales table, and then check the OrderNumber and Quantity columns.

• Click Group and Aggregate.

• Set the Quantity field to aggregate using the Sum function.

• Apply a filter to the Sales table OrderDate column, for the date 11/30/2020 (use US date
format).

• Check the filter parameter checkbox.


5. Run the query to preview the result.
6. In the third Wizard step, drag the available fields as follows:

• Row groups: RegionName, StateName, and OrderNumber

• Values: Sum_Quantity
7. In the Choose the Layout step, select the third options: Stepped, subtotal above
8. Uncheck the Expand/collapse groups checkbox.
9. Complete the Wizard process.

Add a text box expression


10. In the report title textbox, enter the following text: Daily Sales Orders
11. Edit the expression for the footer textbox, and replace the default values with the following
expression:
VB.NET

DA100 | Instructor Demos 15


="Page " & Globals!PageNumber & " of " & Globals!TotalPages

The expression can be copied from the D:\DA100\Demo\Resources\Snippets-Demo-09.txt file.

Preview the paginated report


12. Run the report to switch to preview mode.
13. Point out the Order Date report parameter.
14. Turn on print layout mode, and use the ribbon page navigation commands to navigate between
the pages.
15. Point out the footer text values on each page.

Show export options


16. Open the Export dropdown list of supported formats.
17. Optionally, export the report to PDF and open it in Microsoft Edge.
18. Save the report to the D:\DA100\MySolution folder.
19. Close Power BI Report Builder.

DA100 | Instructor Demos 16


10: Perform Advanced Analytics
Add a decomposition tree
1. In Power BI Desktop, add a new page to the report named Profit Analysis.
2. Return to the first page, and copy the Year slicer to the clipboard.
3. In the Profit Analysis page, paste the slicer, and when prompted, sync it with the slicer on the
first page.
4. Add a decomposition tree visual, and position and size it so it fills the page.
5. Configure the decomposition tree visual as follows:

• Analyze: Sales | Profit Margin

• Explain by: Product | Demographic and Product | Products (hierarchy)


6. Interact with the decomposition tree visual by drilling into the different attributes to identify
profitable products.

Add a group
7. Add another new page to the report named Category Analysis.
8. Copy, paste, and then sync the Year slicer from the Profit Analysis page to the new page.
9. Add a new group based on the Product table Category column.
10. Create a group based on the Trainer value.
11. Check the Include Other Group checkbox.
12. Add a matrix visual, and position and size it so it fills the page.
13. Configure the matrix visual as follows:

• Rows: Product | Category (groups) and Product | Product

• Values: Quantity, Sales, Profit, and Profit Margin from the Sales table
14. Expand both categories.

Apply conditional formatting


15. In the matrix visual, apply background color conditional formatting to the Profit Margin field.
16. Select red for the minimum color, and green for the maximum color.
17. Point out the range of colors used to convey low-to-high profit margin values.
18. Save the Power BI Desktop file.
19. Publish the report to the newer workspace, overwriting when prompted.

DA100 | Instructor Demos 17


20. In the Power BI service, open the Sales Analysis report, and interact with each of the report
pages.
21. Leave the Power BI Desktop file open.

DA100 | Instructor Demos 18


11: Create and Manage Workspaces
Share a dashboard
1. Open another Microsoft Edge window, in a new InPrivate window.
2. Sign in to the Power BI service by using the recipient account (for salesperson Ty Johnston)
recorded in the MySettings.txt file.
3. If you change the password, be sure to record it in the MySettings.txt file.
4. Accept the Power BI Pro trial license.

Open the shared dashboard


5. Switch to the instructor Power BI service window.
6. Open the Sales Monitoring dashboard.
7. On the menu, click Share.
8. Share the dashboard to the recipient account.
9. Switch to the recipient Power BI service window.
10. Open Shared with Me, and open the Sales Monitoring dashboard.
11. Point out that the dashboard is read-only.

Create an app
12. Switch to the instructor Power BI service window.
13. In the Navigation pane, click the workspace name.
14. At the top-right, click Create App.
15. In the Setup section, enter some description text and optionally choose a theme color.
16. In the Navigation section, optionally sequence the report before the dashboard.
17. In the Permissions section, grant access to the recipient account.
18. Publish the app.

Get and open the app


19. Switch to the recipient Power BI service window.
20. Open Apps, and the get the app you just published.
21. Once added, open the app.
22. Navigate between the report pages and the dashboard.
23. Leave the app open.

DA100 | Instructor Demos 19


The app will be used in the row-level security lab to demonstrate the recipient (Ty Johnston) can
see a subset of the product categories.

DA100 | Instructor Demos 20


12: Manage Datasets in Power BI
Promote the dataset
1. In the Power BI service for the instructor, open the settings for the Sales Analysis dataset.
2. Expand the Endorsement section, and then select the Promoted option and click Apply.

Prepare for gateway data refresh


Note that the following steps are not required when using the data gateway in personal mode. You can
proceed directly to the next objective (setup the gateway).

3. In Power BI Desktop, open the Power Query Editor window, and select the ProductCost query.
4. Edit the Source step, and then modify the file path to use the file share, as follows: \\DATA-
AI\Data\ProductCost.xlsx
You can copy the file share path from the MySettings.txt file.

5. Close and apply the Power Query Editor window.


6. Save the Power BI Desktop file.
7. Publish the Power BI Desktop file to the workspace, overwriting the dataset and report in the
service.

Setup the gateway (personal mode)


8. In the Power BI service for the instructor, reload (F5) the dataset settings page.
9. Expand the Gateway Connection section, and point out that no gateway is installed.
10. Use the download dropdown list (located at the top-right), and select Data Gateway.
11. In the new web page, download the personal mode gateway.
12. Once downloaded, open the downloaded file.
13. Complete the gateway setup by using the credentials of the instructor account.
14. Once setup, return to and reload the dataset settings page.
15. Assign the personal gateway, and the edit the credentials for the two data sources.
16. For both data sources, set the authentication method to WindowsWithoutImpersonation, and
set the privacy level to Organizational.
17. Optionally, expand the Scheduled Refresh section, and show how to configure a recurring
schedule.

Refresh the dataset


18. Before refreshing the dataset, open the Sales Monitoring dashboard.

DA100 | Instructor Demos 21


19. Edit the details of the Sales, Profit Margin tile to display the last refresh time.
20. Right-click the D:\DA100\Demo\Resources\UpdateDatabase-LoadAdditionalSales.ps1 file,
and then run with PowerShell.
A script will load December 2020 sales data into the database.

21. In the Power BI service for the instructor, from the Navigation pane, refresh the Sales Analysis
dataset.
22. When the refresh completes, point out how the dashboard tile December 2020 column appears,
and that the refresh time is NOW.

DA100 | Instructor Demos 22


13: Row-level Security
Add a security table to the model
1. In Power BI Desktop, open the Power Query Editor window, and add a new query based on the
D:\Demo\Data\ManagerCategory.xlsx file (use the ManagerCategory Excel table).
2. Remove the Manager column.
3. Split the Category column by the semicolon delimiter, and split into rows (advanced options).
4. In the Email column, replace the value [email protected] with the recipient account
(from the MySettings.txt file).
5. Point out that this user is able to see three product categories: Collective pitch, Trainer, and
Warbird.
6. Close and apply the queries.
7. In Model view, create a relationship between the ManagerCategory and Product tables relating
the Category columns.
8. Set the cross filter direction to Single (ManagerCategory filters Product).
9. Hide the ManagerCategory table.

Add a role
10. In Report view, open Manage Roles, and then create a role named Manager.
11. In the role, filter the ManagerCategory table Email address column as follows:
DAX
[Email] = USERPRINCIPALNAME()

12. Click Save.

Validate the role


13. Open View As, and then configure the following settings:

• Other User: Check, then enter the recipient account.

• Manager role: Check


14. Point out that the filter visual shows just three product categories.
15. Stop viewing the report using the view-as options.
16. Save the Power BI Desktop file.
17. Publish the Power BI Desktop file to the workspace, overwriting the dataset and report in the
service.
18. Close Power BI Desktop.

DA100 | Instructor Demos 23


Configure dataset security
19. In the Power BI service for the instructor, from the Navigation pane, open the security page for
the Sales Analysis dataset.
20. In the Members section, enter the recipient account (representing Ty Johnston).
21. Click Add.
22. Click Save.

Test row-level security in the app


23. In the Power BI service for the recipient, refresh the dashboard (left open from the previous
demo).
24. In the Profit Margin dashboard tile, verify that only three product categories can be seen.

DA100 | Instructor Demos 24

You might also like