0% found this document useful (0 votes)
81 views

Lab 2 - Data Modeling and Exploration A4

Uploaded by

umair
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Lab 2 - Data Modeling and Exploration A4

Uploaded by

umair
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

Power BI

Dashboard in a Day
Lab 2

Version: 6.30.2022 Copyright 2022 Microsoft 1 | Page


Maintained by: Microsoft Corporation
Contents
Introduction ............................................................................................................................................... 2
Power BI Desktop – Data Modeling and Exploration ................................................................................ 4
Power BI Desktop - Layout..................................................................................................................... 4
Power BI Desktop – Data Exploration.................................................................................................... 7
Power BI Desktop – Data Exploration Continued ................................................................................ 25
References ............................................................................................................................................... 43

Introduction

Version: 6.30.2022 Copyright 2022 Microsoft 2 | Page


Maintained by: Microsoft Corporation
This is lab two out of five labs in total. Please continue to use your file after completing Lab 1, if you
are joining the DIAD at this point or were unable to complete Lab 1, please start this lab with the “Lab
1 solution.pbix” file you can find in the Reports folder.

In this lab you will learn how to:


• create a range of different charts.
• highlight and cross-filter.
• create new groups and hierarchies.
• add new measures to the model to do additional analysis.

The lab includes steps for the user to follow along with associated screenshots that provide a visual
aid. In the screenshots, sections are highlighted with red or orange boxes to indicate the area the user
needs to focus on.

Note: This lab uses real, anonymized data provided by ObviEnce, LLC. Visit their site to learn about
their services: Error! Hyperlink reference not valid.. This data is the property of ObviEnce, LLC and
has been shared to demonstrate Power BI functionality with industry sample data. Any use of this
data must include this attribution to ObviEnce, LLC.

Version: 6.30.2022 Copyright 2022 Microsoft 3 | Page


Maintained by: Microsoft Corporation
Power BI Desktop – Data Modeling and Exploration
In this section, we will learn about the key parts of the Power BI desktop. We will model and explore
the data and build visuals.

Power BI Desktop - Layout


Let’s start with the main Power BI Desktop window and become familiar with the distinct sections
available.

1. On the top of the window, you see the Home tab where the most common operations you perform
are available.
2. The Insert tab in the ribbon allows you to insert shapes, a text box or new visuals
3. The Modeling tab in the ribbon enables additional data modelling capabilities like adding custom
columns and calculating measures.
4. The View tab has options to format the page layout.
5. The Help tab provides self-help options like guided learning, training videos and links to online
communities, partner showcase and consulting services.
6. On the left side of the window, you have three icons, Report, Data and Model. If you hover over the
icons, you can see the tooltips. Switching between these allows you to see the data and the
relationships between the tables.

Version: 6.30.2022 Copyright 2022 Microsoft 4 | Page


Maintained by: Microsoft Corporation
7. The center white space is the canvas where you will be creating visuals.

8. The Visualizations panel on the right allows you to select visualizations, add values to the visuals,
and add columns to the axis or filters.
9. The Fields window on the right panel is where you see the list of tables which were generated from
the queries. Click the icon (downward facing triangle) next to a table name to expand the
field list for that table.

Version: 6.30.2022 Copyright 2022 Microsoft 5 | Page


Maintained by: Microsoft Corporation
10. Click on the Data icon on the left side. Expand the Sales table in the Fields pane as shown in the
figure above. Scroll up and down to notice how fast you can navigate through over three million
rows.

11. Click on the Model icon on the left panel of Power BI Desktop. You see the tables you have
imported along with Relationships. The Power BI Desktop automatically infers relationships
between the tables.
• A relationship is created between the Sales and Product tables using the ProductID column.
• A relationship is created between the Product and Manufacturer tables using the
ManufacturerID column.
Power BI supports multiple types of relationships:
• 1 to many
• 1 to 1
• Many to many
In this lab, we will be using the 1 to many type of relationship, the most common type of relationship.
This means one of the tables involved in the relationship should have a unique set of values. We will
create additional relationships later in this lab.

Note: Tables may not appear as shown in the figure. You can zoom in and out of the Relationships
page by dragging the zoom slider in the bottom right corner of the window. Also, if you want to ensure
you are seeing all the tables, use the fit to screen icon: . Drag and move the tables to appear as
shown in the figure:

Version: 6.30.2022 Copyright 2022 Microsoft 6 | Page


Maintained by: Microsoft Corporation
12. Click on the Search box and notice the options available. The options change based on what you
are clicked on in canvas

Power BI Desktop – Data Exploration


Now that we have loaded data, let’s start with analyzing sales by country.
13. Click on the Report icon on the left panel to navigate to the Report view.

Version: 6.30.2022 Copyright 2022 Microsoft 7 | Page


Maintained by: Microsoft Corporation
14. Click the Clustered column chart visual in Visualizations as shown in the screenshot.

15. From the Fields section, expand the Geography table and then click the checkbox next to the
Country field.
16. From the Fields section, expand the Sales table and then click the checkbox next to the Revenue
field.
17. Resize the visual as needed by dragging the edges.

Version: 6.30.2022 Copyright 2022 Microsoft 8 | Page


Maintained by: Microsoft Corporation
Notice that the revenue of each country is the same. Now we need to create a relationship between
the Sales and Geography tables.

18. Click on the Model icon on the left panel to navigate to the Relationship view.
19. Our sales data is by Zip code, so we need to connect the Zip column from the Sales table with Zip
column in the Geography table. You can do this by dragging the Zip field in the Sales table to
connect the line with the Zip field in the Geography table.

Version: 6.30.2022 Copyright 2022 Microsoft 9 | Page


Maintained by: Microsoft Corporation
You will notice the Create relationship dialog opens with a warning message at the bottom stating the
relationship has a many-many cardinality. The reason for the warning is that we don’t have unique Zip
values in the Geography table. This is because multiple countries could have the same Zip code. Let’s
concatenate the Zip and Country columns to create a unique value field.
20. Click Cancel in the Create relationship dialog box.
We need to create a new column in both the Geography table and the Sales table that combines the
Zip and Country columns. Let’s start by creating a new column in the Sales table.
21. Click on the Report icon on the left panel to navigate to the Report view.
22. In the Fields section, click on the ellipse next to the Sales table. Click the New Column as shown in
the figure. You will see a formula bar appear, as shown in the screenshot, to help create this new
column.

23. Now we are ready to combine the Zip and Country columns into a new column called ZipCountry,
separated by a comma. To create this column called ZipCountry, type the following calculation in
the editor.
ZipCountry = Sales[Zip] & "," & Sales[Country]

Version: 6.30.2022 Copyright 2022 Microsoft 10 | Page


Maintained by: Microsoft Corporation
24. Once you are done entering the formula press Enter or click the IMPORTANT!
checkmark on the left side of the formula bar.
If you get an error
You will notice that IntelliSense appears guiding you to choose the creating a new column,
correct column. The language you used to create this new column is make sure your Zip
called Data Analysis Expression (DAX). We are connecting columns (Zip column is the Text Data
and Country) in each row by using the “&” symbol. The icon with an Type.
(fx), near the new column ZipCountry, indicates that you have a column
If you still have
containing an expression, also referred to as a calculated column.
problems, ask!
Note: An alternative way to add a new column is by selecting the table, click Table Tools, click New
Column or Modeling, and then click New Column from the ribbon.

Let us use this method to create a ZipCountry column in the Geography table.
25. From the Fields section, click the Geography table, from the ribbon click Modeling, and then click
New Column as shown in the figure.

26. A formula bar now appears. Enter the following DAX expression in the formula bar:
ZipCountry = Geography[Zip] & "," & Geography[Country]

Version: 6.30.2022 Copyright 2022 Microsoft 11 | Page


Maintained by: Microsoft Corporation
You will see a new column, ZipCountry, in the Geography table. The final step is to set up the
relationship between the two tables using the newly created ZipCountry columns in each of these
tables.
27. Click on the Model icon on the left panel to navigate to the Relationship view.
28. Drag the ZipCountry field from the Sales table and connect it to the ZipCountry field in the
Geography table.

Version: 6.30.2022 Copyright 2022 Microsoft 12 | Page


Maintained by: Microsoft Corporation
Now we have successfully created a relationship. The number “1” next to Geography indicates it is on
the one side of the relationship and the “*” next to Sales indicates it is on the many side of the
relationship.
29. Click on the Report icon on the left panel to navigate to the Report view.
Notice the clustered column chart that we created earlier. It shows different sales for each country or
region. USA has the most sales, followed by Australia and Japan. By default, the chart is sorted by
Revenue.
30. Click on the ellipse on the top right corner of the visual (alternatively, the ellipse may be at the
bottom of the chart). Notice there is an option to Sort by Country as well.

31. Notice that we have some blanks in our data. We want to clean up our data and get rid of the
blanks
32. Drag the Country field from the Geography table to the Filters pane and drop it in Filters on all
pages
33. Change filter type to Advanced filtering and select is not blank, click on Apply Filter
NOTE: Additional filter options are available: is blank, is empty, is not empty

Version: 6.30.2022 Copyright 2022 Microsoft 13 | Page


Maintained by: Microsoft Corporation
34. From the Fields section, expand the Manufacturer table, and then drag the Manufacturer column
to the Legend section under Visualizations.
35. While you have your chart selected, click the Clustered column chart from the Visualizations
section, and then click the Stacked column chart visual.
36. Resize the visual as needed.

Now we can see the top manufacturers by country.


Now let’s try different visuals to see which chart represents the data the best.

Version: 6.30.2022 Copyright 2022 Microsoft 14 | Page


Maintained by: Microsoft Corporation
37. Begin with the Stacked column chart selected.

38. Sort the legend in descending order

39. In the Filters pane, expand Manufacturer.


40. From the Filter Type dropdown menu, click Top N.
41. Enter 5 in the text box next to Top.
42. From the Sales table, drag and drop the Revenue field into the By value section.
43. Click on Apply filter.

Version: 6.30.2022 Copyright 2022 Microsoft 15 | Page


Maintained by: Microsoft Corporation
Notice that the visual is filtered to display the top five manufacturers by Revenue. We see that the
manufacturer VanArsdel has a higher percentage of sales in Australia compared to other countries or
regions.
We can now add total labels to the stacked visuals
44. Lets explore font formatting options
45. Click on the paint roller icon and click on X axis
46. Click on Bold and Italic – feel free to try different formatting option on different areas. For the
purpsoe of the lab we will turn off Bold and Italic

47. Navigate to the Total labels heading and click to On

Version: 6.30.2022 Copyright 2022 Microsoft 16 | Page


Maintained by: Microsoft Corporation
Let’s remove the total labels
48. Click Total labels to the Off position

We are interested in the top five competitors by revenue. Let’s group them so we don’t have to add a
filter to every visual. Before we do that, we’ll remove the Top 5 visual level filter.
49. Begin with Stacked column chart selected.
50. Hover over and click the Clear filter icon (erase) next to Manufacturer field in the Filters Pane.

Version: 6.30.2022 Copyright 2022 Microsoft 17 | Page


Maintained by: Microsoft Corporation
51. From the Fields section, right-click on the Manufacturer field name from Manufacturer table.
Note: do not check the checkbox.
52. Click New Group.
53. In the Ungrouped values section, using Ctrl key, click Aliqui, Currus, Natura, and Pirum.
54. Click the Group button. Notice a new group is added in the Groups and members section.
55. Double-click the newly created group and rename it Top Competitors.
56. Click VanArsdel from the Ungrouped values section and click the Group button to create the
VanArsdel group.
57. Click the checkbox Include Other group. This will create another Other group that includes all the
other manufacturers.
58. Click OK to close the Groups dialog.

59. With the Stacked column chart selected, click on the X next to Manufacturer in the Legend
section. This will remove the Manufacturer.
60. From the Fields section, drag the newly created Manufacturer (groups) to the Legend section.
Now we can see that VanArsdel has nearly 50% share in Australia.

Version: 6.30.2022 Copyright 2022 Microsoft 18 | Page


Maintained by: Microsoft Corporation
61. Hover over one of the columns and right-click.
62. Click Show as a table. You will now be in Focus mode with the chart displayed on top and the data
displayed below. Notice that VanArsdel has a large percent of the Australian market.
63. Use the icon in the top right corner to switch to the vertical layout. In this layout, you view the
chart on the left panel and the data on the right panel.
64. Click Back to Report to go back to the Report canvas.

Note: You can use similar steps to Show data point as a table to see records for a specific data point.

Version: 6.30.2022 Copyright 2022 Microsoft 19 | Page


Maintained by: Microsoft Corporation
Now let’s create a Revenue by Manufacturer visual.
65. Click on the white space in the canvas. From the Fields section, click the checkbox next to the
Revenue field in the Sales table.
66. From the Fields section, click the checkbox next to the Manufacturer field in the Manufacturer
table.
67. From the Visualizations section, click the Treemap visual.

We now have Revenue by Manufacturer. Now let’s turn our attention to the interaction between the
Stacked column chart and the Treemap visuals.
68. In the Treemap, click VanArsdel and notice that the Stacked column chart is filtered. This confirms
that VanArsdel has a large percentage of the Australian market.

Version: 6.30.2022 Copyright 2022 Microsoft 20 | Page


Maintained by: Microsoft Corporation
69. To remove the filter, click VanArsdel again.
This interaction between visuals is called cross-filtering.
Previously, we added a Top 5 Visual level filter. Now let’s add a filter to the Page level, so we are
working with the Top Competitors and VanArsdel and filter out the other manufacturers.
Page-level filters apply to all visuals on the page. Visual-level filters apply only to a visual. Ensure the
Filters pane is expanded/open.
70. From the Fields section, drag Manufacturer (groups) from the Manufacturer table to the Filters on
this page box in the Filters Pane.
71. Click Top Competitors and VanArsdel.

Now, let’s add a visual that provides sales information over time
72. Begin by clicking on the white space in the canvas.
73. Click the checkbox next to the Date field in the Sales table. Notice that a Date Hierarchy is created.
74. Click the checkbox next to the Revenue in the Sales table field. Notice that a Clustered column
chart is created. Also notice in the Axis section, a date hierarchy is created. There are arrows on the
top bar of the chart which are used to navigate through the hierarchy.

Version: 6.30.2022 Copyright 2022 Microsoft 21 | Page


Maintained by: Microsoft Corporation
75. Click on the Australia column in the Revenue by Country visual.
76. With the Revenue by Country visual selected, from the ribbon click on Format, and then click Edit
Interactions. Notice on the top right of the other two visuals new icons with the highlight icon
selected.
77. Click the filter icon for both visuals.

Notice now in both Revenue by Year and Revenue by Manufacturer, data is filtered for Australia
78. Now click the Revenue by Year visual.
79. Next, click the filter icon on the other two visuals.

Version: 6.30.2022 Copyright 2022 Microsoft 22 | Page


Maintained by: Microsoft Corporation
80. Similarly, click on the Revenue by Manufacturer visual and click the filter icon on the other two
visuals. Once you are done, all the visuals should be in filter mode.
81. With the Revenue by Manufacturer visual selected, from the ribbon click Format then Edit
Interactions to remove the icons.
82. Click on VanArsdel in the Revenue by Manufaturer visual
Note: If your screen doesn’t look like the one below please edit your interactions.

We have already noticed that VanArsdel has a large share of the market in Australia. Let’s see how
VanArsdel has done over time in Australia.

Version: 6.30.2022 Copyright 2022 Microsoft 23 | Page


Maintained by: Microsoft Corporation
83. Click on the Revenue by Country and Manufacturer (groups) chart and remove Manufacturer
(groups) from the legend.
84. Click on VanArsdel in the Revenue by Manufacturer visual.
85. Ctrl+Click the Australia column in the Revenue by Country visual.
Now we have filtered the charts by both VanArsdel and Australia. Looking at the results, we can see a
spike in 2021 sales for VanArsdel in Australia. This spike in sales is intriguing, so let’s investigate
further.
86. Click the down arrow on the top of the Revenue by Year visual. This enables drill-down capability.

87. Click the 2021 column in the Revenue by Year visual.


Notice that you have drilled down to the quarter level of 2021. There was a big spike in the fourth
quarter. Let’s dig further.
88. Click on the double arrow icon on the top of the Revenue by Year visual. This drills down to the
next level of the hierarchy, which is the month.

89. Click on the up-arrow icon on the top of the Revenue by Year visual to drill up to the Quarter level.
90. Click on the drill up icon again to go up to the Year level

Version: 6.30.2022 Copyright 2022 Microsoft 24 | Page


Maintained by: Microsoft Corporation
91. Click on the split arrow icon on the top right of the Revenue by Year visual. This expands down to
the next level of the hierarchy, which is quarters for all the years.
Notice that the fourth-quarter sales have always been high, but in 2021 there was a larger sales spike
in the fourth quarter than usual.
92. Now let’s expand down to the month level. Click on the split arrow icon on the top right of the
Revenue by Year visual. This expands down to the next level of the hierarchy, which is months for
all the years.

There is a lot of information in the visual and we must scroll left and right to compare.

Power BI Desktop – Data Exploration Continued

Now that we’ve explored the data, let’s add a slicer so we can filter by the manufacturers.
93. Click on the white space in the canvas. From the Fields section, click the checkbox next to the
Manufacturer field in the Manufacturer table.
94. From the Visualizations section, click on the Slicer visual.
95. Here you will see a list of Manufacturers. Click VanArsdel and notice that all the visuals are filtered
based on your selection.
96. Hover over the top right corner of the visual and click on the down arrow. Notice you have the
option to change the slicer from a list to a dropdown.
97. Click Dropdown.
98. Click VanArsdel from the dropdown.

Version: 6.30.2022 Copyright 2022 Microsoft 25 | Page


Maintained by: Microsoft Corporation
99. Confirm Top Competitors and VanArsdel are selected in the Manufacturer (groups) filter in the
Filters pane.

Note that there is a box for Filters on all pages in the Filters pane. If you have duplicate pages, this is
how you sync a filter for the whole file.
Now let’s use the Manufacturer slicer to analyze one manufacturer at a time.
100. Begin by clicking on the Revenue by Manufacturer Treemap visual.
101. From the Visualizations section, click on the Card visual.

Version: 6.30.2022 Copyright 2022 Microsoft 26 | Page


Maintained by: Microsoft Corporation
The card visual gives us the Revenue as we filter and cross-filter the visuals.
Notice that all key dimensions are in their table with related attributes, except the date. For example,
Product attributes are in the Product table. Now let’s create a Date table.
102. Navigate to the Data view by clicking on the Data icon in the left panel.
103. From the ribbon, click on Table Tools, then click on New Table.
Notice that a new table is created in the Fields section on the right and that the formula bar opens.
104. Enter Date =CALENDAR (DATE(2014,1,1), DATE(2022,12,31)) in the formula bar and click on the
checkmark. A Date table with a Date column is created.

We are using two DAX functions: the CALENDAR function, which takes the start and end data, and the
DATE function, which takes the year, month, and date Fields.
For this lab, we will create Dates from 2014 to 2021, since we have data for those years. We can also
add more Fields, like Year, Month, Week, etc., to this table by using DAX functions.
Notice that the Date field is of the type Date/Time. Let’s change it to the Date data type.
105. Click on the Date field in the Date table.
106. From the ribbon, click Column Tools, click Data type, and then click Date.

Version: 6.30.2022 Copyright 2022 Microsoft 27 | Page


Maintained by: Microsoft Corporation
Next, we need to create a relationship between the newly created Date table and the Sales table.
107. From the ribbon, click Column Tools, and then click Manage Relationships.
108. A Manage Relationships dialog box opens. Click the New button.
109. A Create Relationship dialog box opens. Click Date from the top dropdown menu.
110. Click Sales from the second dropdown menu.
111. Highlight the Date Field in both tables.
112. Click OK to close the Create relationship dialog box.

113. Click Close to close the Manage relationships dialog box.


114. Navigate to the Report view by clicking on the Report icon in the left panel.
Notice that the Revenue by Date chart looks different. Let’s fix it.

Version: 6.30.2022 Copyright 2022 Microsoft 28 | Page


Maintained by: Microsoft Corporation
115. Click the Revenue by Date visual.
116. From the Axis, click on the “X” to remove the Date field.

117. From the Fields section, expand the Date table.


118. Now drag the Date field to the Axis section.

Notice that the new Date field behavior is like it was previously.
Since there are now two Date Fields, it may be confusing to know which one to use. To accommodate
this, let’s hide the Date field in the Sales table.
119. From the Fields section, click on the three dots next to the Date field in the Sales table and select
Hide

Version: 6.30.2022 Copyright 2022 Microsoft 29 | Page


Maintained by: Microsoft Corporation
120. In the same way, hide Country, ProductID, Zip, and ZipCountry in the Sales table as well.
121. Now hide ZipCountry from the Geography table.
122. Hide ManufacturerID from Manufacturer table.
123. Hide ProductID and ManufacturerID from Product table.
Tip: It is a best practice to hide unused Fields in reports.
Now let’s get back to our data story, Australia, VanArsdel and 2021. Let’s check if the spike occurred in
a specific region in Australia.
124. Click the Revenue by Country visual.
125. From the Fields section, drag the State field from the Geography table below the Country field in
the Axis section.
126. Drag the District field below the State field in the Axis section.
We have just created a hierarchy.

Version: 6.30.2022 Copyright 2022 Microsoft 30 | Page


Maintained by: Microsoft Corporation
127. Make sure that VanArsdel is selected in the Manufacturer slicer.
128. Enable Drill mode by clicking the down arrow of the Revenue by Country visual.

129. Click Australia to drill down to the State level.


130. From the Revenue by Year visual click 2021 and notice what happens to the Revenue by Country
and the State visual.
131. Now, Drill up to the country level.
132. Disable drill mode by clicking the down arrow again.
Now let’s analyze the data by product. We’ll start by creating a product hierarchy.
133. From the Fields section, click on the ellipse next to the Category field in the Product table.
134. Click Create Hierarchy.

Version: 6.30.2022 Copyright 2022 Microsoft 31 | Page


Maintained by: Microsoft Corporation
Notice that a new field called Category Hierarchy is created in the Product table.
135. Double-click Category Hierarchy and rename it to Product Hierarchy.

136. Click the ellipse next to Segment.


137. Click Add to Hierarchy, and then click Product Hierarchy.

Version: 6.30.2022 Copyright 2022 Microsoft 32 | Page


Maintained by: Microsoft Corporation
138. Click the ellipse next to Product.
139. Click Add to Hierarchy, and then click Product Hierarchy.
We have now created a Product Hierarchy with the priority of Category, Segment, and then Product.
140. Click on the white space in the canvas. From the Visualizations section, click Clustered bar chart.
141. From the Fields section, expand the Product table.
142. Click the checkbox next to the Product Hierarchy. Notice the complete hierarchy is selected.
143. From the Fields section, expand the Sales table.
144. Click the checkbox next to the Revenue field.
145. Let’s edit interactions for the new chart.
146. Click the Format tab and click edit interations
147. Click on the Revenue by Country visual and change the Revenue by Category visual to filter

Version: 6.30.2022 Copyright 2022 Microsoft 33 | Page


Maintained by: Microsoft Corporation
148. Do the same thing with the Revenue by Year visual, change the interaction of the Revenue by
Category to filter
149. We also need to change the interactions of the other charts. Click on the Revenue by Category
visual and change the Revenue by Year visual to a filter action.
150. Click the filter interaction on the Revenue by Country visual as well
151. Click the format tab and click Edit interactions to turn it off
152. Ensure Australia and 2021 are selected.
153. Let’s get back to the Revenue by Category visual

Version: 6.30.2022 Copyright 2022 Microsoft 34 | Page


Maintained by: Microsoft Corporation
154. Enable drill-down mode in the Revenue by Category chart by clicking on the down arrow.

155. Click on Urban.


156. In the Revenue by Country visual, if you are not at the Country level drill up to Country level and
disable drill down

Version: 6.30.2022 Copyright 2022 Microsoft 35 | Page


Maintained by: Microsoft Corporation
157. Click Australia in the Revenue by Country visual
158. Ctrl+Click 2021 from the Revenue by Year visual. Notice that the sales in the Extreme category
are higher than the Convenience and Moderation segments.

Let’s investigate further…


159. Click the down arrow at the top of Revenue by Country visual to enable the drill model.
160. Click Australia to drill down to the State level.

Version: 6.30.2022 Copyright 2022 Microsoft 36 | Page


Maintained by: Microsoft Corporation
161. Click 2021 in the Revenue by Year visual.
162. Ctrl+Click the Extreme Segment in the Revenue by Category and Segment visual.
Notice that there is no significant spike by State.
163. Click Extreme again to remove cross-filtering between the visuals.
164. Drill up to the Category level in the Revenue by Category visual.
165. Disable drill mode by clicking the down arrow again.
166. Drill up to Country in the Revenue by Country and State visual
167. Disable drill mode in the Revenue by Country visual
Now let’s add a Matrix visual so we can view the data in rows and columns. We can apply conditional
formatting to the matrix visual to highlight the outliers.
168. Click on the Revenue by Category clustered bar chart and change it to a Matrix visual.

169. Click the + (plus sign) next to the Urban row to drill down.

Version: 6.30.2022 Copyright 2022 Microsoft 37 | Page


Maintained by: Microsoft Corporation
Let’s add a percent of the total field. This will give us a better perspective.
170. Navigate away from the Format section to the Fields pane.
171. From the Fields section, drag the Revenue field from the Sales table to below the existing
Revenue field in the Values section. It will look like you have Revenue twice in the fields pane

172. Click the arrow next to the newly added Revenue field.
173. From the menu, hover over Show value as and then click Percent of grand total.

Version: 6.30.2022 Copyright 2022 Microsoft 38 | Page


Maintained by: Microsoft Corporation
174. Drill up to Category level Enable drill mode on the Revenue by Category visual
175. Now click on Urban (the word, not the + sign)
176. Make sure you have Australia and 2021 selected on the other charts.
Now let’s look at the Extreme category for Australia over time.

177. In the Revenue by Year visual click the 2021 column and click Australia in the Revenue by
Country visual. Notice that the Extreme segment has around 40% of the grand total.
178. In the Revenue by Year visual click the 2021 column to remove the filter.
Now let’s drill down into the Extreme Segment and figure out if a Product stands out.
179. In the matrix visual, click the Extreme row (the word, not the + sign) to drill down to the Product
level.
180. Resize the visual as needed.
181. Hover over the matrix visual and then click the ellipse in the top right corner.
182. Click Sort By %GT Revenue and then click Sort Descending.

Version: 6.30.2022 Copyright 2022 Microsoft 39 | Page


Maintained by: Microsoft Corporation
We can now see the top Products.
183. Ensure 2021 is selected in the Revenue by Year visual, and Australia in the Revenue by Country
visual. Notice that Maximus UE-04 and 21 are the top products. Also, notice that Product Maximus
UE-04 has nearly 7% of the grand total and has a big spike.

184. In the Revenue by Year visual, click the 2021 column to remove the filter.
Earlier we created a calculated column named ZipCountry. Now let’s create a Percent Growth
measure so we can compare sales over time. We are going to do this in two steps.
But first, what’s the difference between a measure and a calculated column?
• A Calculated column is evaluated row by row. We extend a table by adding calculated
columns.
• A Measure is used when we want to aggregate values from many rows in a table.
185. In the Fields section, click the Sales table.
186. From the ribbon, click Table Tools, then click New Measure. A formula bar opens.
187. Enter PY Sales = CALCULATE(SUM(Sales[Revenue]), SAMEPERIODLASTYEAR('Date'[Date]))

188. Click the checkmark next to the formula bar. You will see the PY Sales measure in the Sales table.
Let’s create another measure.
189. In the Fields section, hover over the Sales table.
190. Click on the ellipse in the right corner.
191. Click New Measure from the dialog box. A formula bar opens.

Version: 6.30.2022 Copyright 2022 Microsoft 40 | Page


Maintained by: Microsoft Corporation
192. Enter % Growth = DIVIDE(SUM(Sales[Revenue])-[PY Sales],[PY Sales])

193. Click the checkmark next to the formula bar. You will see % Growth measure in the Sales table.
194. Click the matrix visual.
195. In the Fields section, click the checkbox next to the newly created PY Sales and % Growth
measures in the Sales table.
Notice that the Fields need to be formatted.
196. From the Fields section, click the % Growth field.
197. From the ribbon, click Measure Tools, click Format, and then click Percentage.

198. Similarly, from the Fields section, and then click the PY Sales field.
199. From the ribbon, click Measure Tools, click Format, and then click Currency, if it isn’t already
formatted Currency .
200. Similarly, from the Fields section, and then click the Revenue field.
201. From the ribbon, click Measure Tools, click Format, and then click Currency if it isn’t already
formatted to Currency
202. Ensure that Australia is selected and In the Revenue by Year visual, Ctrl + click the 2021 column.
Notice that Maximus UE-04 has nearly 158% growth compared to last year.

Version: 6.30.2022 Copyright 2022 Microsoft 41 | Page


Maintained by: Microsoft Corporation
,

Version: 6.30.2022 Copyright 2022 Microsoft 42 | Page


Maintained by: Microsoft Corporation
References
Dashboard in a Day introduces you to some of the key functions available in Power BI. In the ribbon of
the Power BI Desktop, the Help section has links to some great resources.

Here are a few more resources that will help you with your next steps with Power BI.
• Getting started: http://powerbi.com
• Power BI Desktop: https://powerbi.microsoft.com/desktop
• Power BI Mobile: https://powerbi.microsoft.com/mobile
• Community site https://community.powerbi.com/
• Power BI Getting started support page:
https://support.powerbi.com/knowledgebase/articles/430814-get-started-with-power-bi
• Support site https://support.powerbi.com/
• Feature requests https://ideas.powerbi.com/forums/265200-power-bi-ideas
• New ideas for using Power BI https://aka.ms/PBI_Comm_Ideas
• Power BI Courses http://aka.ms/pbi-create-reports
• Power Platform https://powerplatform.microsoft.com/en-us/instructor-led-training/
• Power Apps Business Apps | Microsoft Power Apps
• Power Automate Power Automate | Microsoft Power Platform
• Dataverse What is Microsoft Dataverse? - Power Apps | Microsoft Docs
• © 2022 Microsoft Corporation. All rights reserved.
By using this demo/lab, you agree to the following terms:

The technology/functionality described in this demo/lab is provided by Microsoft Corporation for purposes of
obtaining your feedback and to provide you with a learning experience. You may only use the demo/lab to
evaluate such technology features and functionality and provide feedback to Microsoft. You may not use it for
any other purpose. You may not modify, copy, distribute, transmit, display, perform, reproduce, publish, license,
create derivative works from, transfer, or sell this demo/lab or any portion thereof.

COPYING OR REPRODUCTION OF THE DEMO/LAB (OR ANY PORTION OF IT) TO ANY OTHER SERVER OR LOCATION
FOR FURTHER REPRODUCTION OR REDISTRIBUTION IS EXPRESSLY PROHIBITED.

THIS DEMO/LAB PROVIDES CERTAIN SOFTWARE TECHNOLOGY/PRODUCT FEATURES AND FUNCTIONALITY,


INCLUDING POTENTIAL NEW FEATURES AND CONCEPTS, IN A SIMULATED ENVIRONMENT WITHOUT COMPLEX
SET-UP OR INSTALLATION FOR THE PURPOSE DESCRIBED ABOVE. THE TECHNOLOGY/CONCEPTS REPRESENTED IN
THIS DEMO/LAB MAY NOT REPRESENT FULL FEATURE FUNCTIONALITY AND MAY NOT WORK THE WAY A FINAL

Version: 6.30.2022 Copyright 2022 Microsoft 43 | Page


Maintained by: Microsoft Corporation
VERSION MAY WORK. WE ALSO MAY NOT RELEASE A FINAL VERSION OF SUCH FEATURES OR CONCEPTS. YOUR
EXPERIENCE WITH USING SUCH FEATURES AND FUNCTIONALITY IN A PHYSICAL ENVIRONMENT MAY ALSO BE
DIFFERENT.

FEEDBACK. If you give feedback about the technology features, functionality and/or concepts described in this
demo/lab to Microsoft, you give to Microsoft, without charge, the right to use, share and commercialize your
feedback in any way and for any purpose. You also give to third parties, without charge, any patent rights
needed for their products, technologies and services to use or interface with any specific parts of a Microsoft
software or service that includes the feedback. You will not give feedback that is subject to a license that
requires Microsoft to license its software or documentation to third parties because we include your feedback in
them. These rights survive this agreement.

MICROSOFT CORPORATION HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS WITH REGARD TO THE
DEMO/LAB, INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS,
IMPLIED OR STATUTORY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. MICROSOFT
DOES NOT MAKE ANY ASSURANCES OR REPRESENTATIONS WITH REGARD TO THE ACCURACY OF THE RESULTS,
OUTPUT THAT DERIVES FROM USE OF DEMO/ LAB, OR SUITABILITY OF THE INFORMATION CONTAINED IN THE
DEMO/LAB FOR ANY PURPOSE.

DISCLAIMER

This demo/lab contains only a portion of new features and enhancements in Microsoft Power BI. Some of the
features might change in future releases of the product. In this demo/lab, you will learn about some, but not all,
new features.

Version: 6.30.2022 Copyright 2022 Microsoft 44 | Page


Maintained by: Microsoft Corporation

You might also like