Professional Documents
Culture Documents
Power BI Training Course - Day 2 - Lab Manual
Power BI Training Course - Day 2 - Lab Manual
Collaboration
Lab Manual
Hover over the bars in the chart and see how the “Profit” figures are shown along with the fields being charted.
This is a great way to provide greater context to your visuals.
Observe how the map has returned to its previous zoom level. By default, the map visual will zoom appropriately
to keep all of the relevant locations in the window. Let’s change that to keep our preferred view.
21. Click on the header bar to select the “Units by PickupDepotLocation” map visual.
22. Click to view the Format gutter.
23. Under the Map controls section:
o Switch “Auto zoom” to Off
24. Zoom the map to your preferred view.
Observe how clicking on a slicer or other chart visual will no longer alter the view on the map.
25. Click on the header bar to select the matrix showing Profit $ YTD by ProductCategory and Calendar Month
Year.
26. Click to view the Fields gutter.
27. Click on the down arrow next to the “Profit $ YTD” field in the Values section and select “Conditional
Formatting” > “Data bars”.
28. Change the “Positive bar” colour: 8th column, 3rd row
29. Click “OK”.
30. Click on the header bar to select the “Top 5 Product” table.
31. Click to view the Fields gutter.
32. Add the Sales[Profit %] field to the Values.
33. Click on the down arrow next to the “Profit %” field in the Values section and select “Conditional
Formatting” > “Background color scales”.
34. Tick the “Diverging” box to make the “Centre” configuration available.
35. Change the “Centre” drop-down to “Number”.
36. Enter the number “0.14” (without the quotes) in the Centre box – 0.14 representing 14% (eg. 14/100).
37. Change the “Minimum” colour: 5th column, 3rd row.
38. Change the “Centre” colour: 8th column, 2nd row.
39. Change the “Maximum” colour: 8th column, 1st row.
40. Click “OK’.
41. Click to view the Format” gutter.
42. Under the Field formatting section:
o Ensure the “ProductName” column is selected in the drop-down
o Change the “Font color”: 8th column, 6th row
o Switch the “Apply to Header” to On
We now have the visuals looking like we want but some of the behaviour when we cross-filter isn’t ideal.
43. Click on the header bar to select the matrix showing Profit $ YTD by ProductCategory and Calendar Month
Year.
44. Click on one of the months listed and observe:
o The “SalesAmount, Units and Delivered Units by Calendar Month Year” column chart highlights
the month we have clicked on. This doesn’t really provide a the experience we want.
o The “Product Volumes” and “Employee Sales Performance” charts highlight the proportional
amount of the whole for the month selected. It is difficult to distinguish the higher/lower values.
45. Click on one of the category values for a particular month and observe how these issues are amplified.
46. Ensure the matrix is still selected and click on the Format tab on the ribbon at the top of the screen.
47. Click the “Edit Interactions” button.
48. For the “SalesAmount, Units and Delivered Units by Calendar Month Year” column chart click on the
“None” option.
49. For the “Product Volumes” and “Employee Sales Performance” charts click on the “Filter” option.
50. Click the “Edit Interactions” button again to disable the editing functionality.
Apply the same cross filtering again and observe how the matrix now affects the visual elements identified above.
51. Save your report as “Lab 2-1 - Sales and Delivery Report [YOUR_NAME]”.
52. Close Power BI Desktop.
Use the SalesPerson slicer to observe the trend line changing according to who is selected.
14. Ensure the line chart is selected and return to the Analytics gutter.
15. Under the Constant Line section:
o Click the “+ Add” button
o Double click to change the “Constant Line 1” text to “Target”
o Insert “0.14” into the Value box (0.14 representing 14%)
o Change the “Color”: 5th column, 1st row
o Change the “Line style” to “Solid”
o Switch the Data Label to On
o Change the “Color” for the data label: 5th column, 1st row
o Change the “Text” drop-down to “Name and Value”
16. Under the Forecast section:
o Click the “+ Add” button
o Change the “Forecast Length” to 6 Months
o Change the “Seasonality” to 3
Use the SalesPerson slicer to observe how the forecast line and confidence band change according to who is
selected.
Spend a few minutes exploring what options are available in the different visual element types.
17. Save your report as “Lab 2-2 - Sales and Delivery Report [YOUR_NAME]”.
18. Close Power BI Desktop.
This will launch a separate window to browse the list of available custom visuals.
5. In the search box type in “word cloud” (without the quotes) and press <ENTER>.
6. Click the “Add” button next to the Word Cloud visual.
The custom visual will now be downloaded and installed. It should only take a few seconds.
7. Click “OK” on the dialog indicating a successful import of the custom visual.
8. The Word Cloud visual element should now be displayed in the section of available visuals that can be
used.
9. Start a new Word Cloud visual:
o Category: Product[ProductName]
o Values: Sales[Units]
10. Click to view the Format gutter.
11. Switch the Rotate Text to Off.
12. On the “Home” tab, under the “Custom Visuals” section, click on the “From Marketplace” button again.
13. In the search box type in “sparkline” (without the quotes) and press <ENTER>.
14. Click the “Add” button next to the Sparkline by OKViz visual.
15. Click “OK” on the dialog indicating a successful import of the custom visual.
16. Start a new Sparkline visual:
o Axis: Date[Calendar Month Year]
o Category: Product[ProductName]
o Values: Sales[Units]
17. Click to view the Format gutter.
18. Under the Title section:
o Switch the “Title” to On
o Change the “Title” to “Unit Sales Trend - Calendar Year” (without the quotes)
Take a moment to explore some of the capabilities this custom visual provides.
19. On the “Home” tab, under the “Custom Visuals” section, click on the “From Store” button again.
20. In the search box type in “play axis” (without the quotes) and press <ENTER>.
21. Click the “Add” button next to the Play Axis (Dynamic Slicer) visual.
22. Click “OK” on the dialog indicating a successful import of the custom visual.
23. Start a new Play Axis visual:
o Field: Sales[SalesPerson]
24. Click to view the Format gutter.
25. Under the Animation Settings section:
o Switch Loop to On
o Change the “Time(ms)” to 2000
26. Switch the Title to Off.
Spend a few minutes exploring the range of custom visuals available and add any you like.
30. Save your report as “Lab 2-3 - Sales and Delivery Report [YOUR_NAME]”.
31. Close Power BI Desktop.
NOTE: If you haven’t created a Power BI login prior to the training session please inform your trainer who will assist.
You will need an organisational email address that you can access to validate the setup.
The publishing process will now upload your report and the associated dataset to the Power BI Service
(app.powerbi.com).
This will open your web browser and navigate directly to the published report. You may need to log in again to
the Power BI Service before viewing the report.
Take a moment to explore your report now that it has been published to the Power BI Service – it should look and
operate the same as it did in Power BI Desktop however as you are viewing it as a “reader” you may notice some of
the configuration options on the visual elements are no longer available.
8. From the “Sales Overview” page, click on the “Pin Visual” button on the header of the “Product Volumes”
column chart.
9. Ensure “New dashboard” is selected and enter the name “Sales Summary [YOUR_NAME]”.
10. Click the “Pin” button.
11. Click on the “Go to Dashboard” button on the pop-up window that appears to navigate to your new
dashboard.
12. Experiment with resizing the tile to find a size that you like.
Observe how hovering over the tile provides the tooltips that have been defined in the report.
At this stage the person you have shared your dashboard to will receive an email inviting them to view your
dashboard. If they click the link in the email they will be taken to the Power BI Service where they will need to login.
If they don’t already have an account and a paid licence then they will need to sign up and then elect to take the
Pro licence trial. Once they are logged in then they will see the dashboard.
20. Work with your fellow trainees or trainer to try to share a dashboard between each other.
21. In your web browser, navigate back to the “Lab 2-4 - Sales and Delivery Report [YOUR_NAME]” report.
22. Under the “File” menu, click on “Publish to web”.
23. Read the content explaining what Publish to web is and isn’t used for and then click “Create embed code”.
24. Read the content that provides some final context and then click “Publish”.
25. Copy the link from the “Link you can send in email” box and paste it into a new browser window.
26. Explore how the report functions similarly but that there are a few interface changes:
o No “Filters” pane to the right of the screen
o Page navigation is different (doesn’t give you the names of the pages)
Congratulations - you have now published a Power BI report that the world can see!
27. Close down the browser window with the public version of the report.
28. Return to the Power BI Service app.powerbi.com and navigate to your “Lab 2-4 - Sales and Delivery
Report [YOUR_NAME]” report.
29. Click on the Settings cog button at the top of the Power BI interface and select “Manage embed codes”.
Observe the embed code listed there for the report with a status and date created.
30. Click on the “…” button to the right of the entry and select “Get code”.
This presents the URL and iframe code dialog for the embed code in the event that you have misplaced it.
31. Click on the “…” button to the right of the entry and select “Delete”.
32. Click the “Delete” button.
The public version of the report will now be set to expire and will shortly be unavailable to the general public.
Observe the dataset for the “Lab 2-4 - Sales and Delivery Report [YOUR_NAME]” report along with a list of actions
and some information about data refresh.
Observe how the interface mirrors that of Power BI Desktop, with a blank canvas, a list of available visual elements
and the data model that was built to support the “Lab 2-4 - Sales and Delivery Report [YOUR_NAME]” report. Let’s
build a new report.
Observe the new attached report listed there. Click to view and explore the “Depot Manager Report
[YOUR_NAME]” report.
A dialog will appear listing all of the workspaces you have access to on the Power BI Service.
16. In the search box, type “Lab” and select the “Lab 2-4 - Sales and Delivery Report [YOUR_NAME]” dataset
listed and click “Create”.
Power BI Desktop will now connect to the selected dataset in the Power BI Service and will momentarily present the
data model to begin building a new report.
Observe how the the “Data” and “Relationship” view are not available nor many of the buttons on the ribbon as we
are now connected in a visualisation-only mode.
Observe how Power BI Desktop provides a list of workspace locations to publish to as the new report can be
published to different workspace locations from the source dataset.
This is where the setting resides to specify that this workspace should be provisioned on Premium capacity. This is
only available if your tenant is licenced for Power BI Premium and if your user account has been given access to
provision into it.
The workspace will be provisioned and momentarily you will be taken to the new empty workspace.
7. In your local file system, copy your existing “Lab 2-4 - Sales and Delivery Report [YOUR_NAME]” and name
it “Lab 2-6 - Sales and Delivery Report [YOUR_NAME]”.
8. Open “Lab 2-6 - Sales and Delivery Report [YOUR_NAME]” in Power BI Desktop.
9. On the “Home” tab click the “Publish” button.
NOTE: You may need to enter your login details before publishing continues
10. In the Publish to Power BI dialog the “Apparel Analytics [YOUR_INITIALS]” workspace should be listed as a
destination.
11. Highlight “Apparel Analytics [YOUR_INITIALS]” and click the “Publish” button.
12. Click on the Open link in the success dialog
Observe that the report has now been published to the Apparel Analytics [YOUR_INITIALS] workspace.
13. Click on “Workspaces” under the navigation pane and click on “Apparel Analytics [YOUR_INITIALS]” listed
under the “APP WORKSPACES” heading.
14. Click to select the Reports and Datasets and observe that only your “Lab 2-6 - Sales and Delivery Report
[YOUR_NAME]” exists in this workspace.
15. Take a few minutes to recreate the attached “Depot Manager Report” from Lab 2-5 using the
app.powerbi.com web interface.
16. Copy your “Lab 2-5 – Sales Person Profit Analysis [YOUR_NAME]” attached report and name it “Lab 2-6 –
Sales Person Profit Analysis [YOUR_NAME]”.
17. Open “Lab 2-6 – Sales Person Profit Analysis [YOUR_NAME]” in Power BI Desktop.
Currently this attached report is connected to the dataset that was published to your My Workspace. As the data
model is the same as the one we have just published to the Apparel Analytics [YOUR_INITIALS] workspace we can
re-point the report so that we can use the dataset in the app workspace.
18. On the “Home” tab, click the drop-down under the “Edit Queries” button and select “Data Source
Settings”.
19. Search for “Apparel Analytics [YOUR_INITIALS]” workspace.
20. Highlight the “Lab 2-6 - Sales and Delivery Report [YOUR_NAME]” dataset and click “Create”.
Power BI Desktop will now connect to the new dataset and validate that all of the visuals are supported. In the
event that a field is missing (eg. name change, deletion) then the visual will display with an error and it will either
need to be updated or changes made to the new dataset.
21. Click “Save” to save the modified “Lab 2-6 – Sales Person Profit Analysis [YOUR_NAME]” Power BI Report.
It’s important to note that Power BI now allows attached reports to be published to different workspaces to where
the dataset resides.
24. Confirm the report is working as expected and navigate to the Reports section of the “Apparel Analytics
[YOUR_INITIALS]” workspace to view it alongside the other reports.
Take a few mins to create a new dashboard called “Apparel Sales Summary” in the “Apparel Analytics
[YOUR_INITIALS]” workspace using visuals from any of the reports.
Now that we have all the content that we want to distribute to our users it is time to create an app.
25. In the navigation pane, click to select the “Apparel Analytics [YOUR_INITIALS]” workspace.
26. In the top-right, click the “Publish app” button.
27. Enter an approprioate App Name in the text box.
28. Under the Description enter the text “Summary analytics for Apparel sales” (without the quotes)
29. Select an “App Theme Color” of your choosing.
30. Click to select the “Navigation” tab.
Observe the content within the app workspace that will be published as the app.
31. In the left navigation area, order the items in the as you would like to see them appear in the app.
32. Click to select the “Permissions” tab.
Observe that you can publish the app to the entire organisation or to selected individuals or groups.
33. Leave the “Specific individuals or groups” radio button selected and enter your Power BI login into the
“Enter email addresses” box.
34. Click the “Finish” button in the top-right.
35. Click the “Publish” button.
A publishing app pop-up should appear indicating the progress. It may take a minute to complete.
A success dialog will appear giving a URL that can be sent directly to those users you have published the app to
and this will automatically add the app to their Power BI Service menu.
This will open app.powerbi.com and navigate directly to the app. Observe how the navigation pane on the left is
highlighting the “App” sections and components.
Observe the user interface for apps and how the app becomes a complete entity containing dashboard and
reports. The app workspace can be modified with new or changed elements as required and these will only be
Contact
Lee Moran
Business Intelligence Practice Lead
Velrada Capital Pty Ltd
P. 1300 835 723
E. Lee.Moran@velrada.com
Perth
Level 18, 197 St Georges Terrace
Perth WA 6000
www.velrada.com