Merge branch 'main' of https://github.com/microsoft/pbiworkshops
This commit is contained in:
Коммит
a4bb7b3eed
|
@ -122,7 +122,7 @@ It is also recommend to strive to deliver the **right number of tables** with th
|
|||
| ☑ | FactOnlineSales (StoreKey) | DimStore (StoreKey) | Many to one (*:1) | ☑ | Single |
|
||||
| ☑ | FactOnlineSales (DateKey) | DimDate (DateKey) | Many to one (*:1) | ☑ | Single |
|
||||
| | FactOnlineSales (DeliveryDate) | DimDate (DateKey) | Many to one (*:1) | ☑ | Single |
|
||||
| ☑ | DimStore (StoreKey) | DimEmployee (StoreKey) | Many to one (*:1) | ☑ | Both |
|
||||
| ☑ | DimEmployee (StoreKey) | DimStore (StoreKey) | Many to one (*:1) | ☑ | Both |
|
||||
|
||||
The following image shows a finished view of the semantic model with all the created relationships included.
|
||||
|
||||
|
@ -189,7 +189,7 @@ Learn more about [time intelligence functions](https://learn.microsoft.com/dax/t
|
|||
1. To add a **[Total Sales SPLY]** measure, leveraging our **DimDate** table and our DateKey column, select the **FactOnlineSales** table in the Tables list. On the Home tab, select **New measure** and in the formula editor, copy and paste or type the following measure to calculate the total sales amount. Select the **check mark** to commit.
|
||||
|
||||
```dax
|
||||
CALCULATE([Total Sales Amount], SAMEPERIODLASTYEAR(Calendar[DateKey]))
|
||||
Total Sales SPLY = CALCULATE([Total Sales Amount], SAMEPERIODLASTYEAR(DimDate[DateKey]))
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
|
@ -246,7 +246,7 @@ An important aspect of data modeling is usability and extending our semantic mod
|
|||
|
||||
The Row label property is a field that identifies the column that represents a single row in a table. As an example, the Row label property can be used to ensure that two users with the same name are not aggregated into a single record. By setting the Row label property to a field in your data that uniquely identifies each user, such as an ID number, you can keep their records separate.
|
||||
|
||||
1. From the **Data** pane select the **DimEmployee** table and within the **Properties** pane set the **Row label** to the **FullName** field.
|
||||
1. From the **Data** pane select the **DimEmployee** table and within the **Properties** pane set the **Row label** to the **EmployeeKey** field.
|
||||
|
||||
![Row label](./Media/row-label.png)
|
||||
|
||||
|
@ -285,7 +285,7 @@ Data categorization is a feature in Power BI that allows you to specify the data
|
|||
| Field | Data category |
|
||||
| :--- | :--- |
|
||||
| RegionCountryName | Country/Region |
|
||||
| StateProvinceName | State of Province |
|
||||
| StateProvinceName | State or Province |
|
||||
|
||||
![Region category](./Media/data-category.png)
|
||||
|
||||
|
|
|
@ -736,3 +736,6 @@ This part of the lab has demonstrated how dataflows can help you prepare data in
|
|||
# Completed files
|
||||
|
||||
To download the completed files from the lab instructions:
|
||||
```text
|
||||
https://github.com/microsoft/pbiworkshops/raw/main/Day%20After%20Dashboard%20in%20a%20Day/Source_Files/DayAfterDataflow.pqt
|
||||
```
|
||||
|
|
Двоичный файл не отображается.
|
@ -0,0 +1,99 @@
|
|||
1
|
||||
Chevrolet
|
||||
Silverado 2500 HD Extended Cab
|
||||
2001
|
||||
|
||||
2
|
||||
Suzuki
|
||||
Grand Vitara
|
||||
2000
|
||||
|
||||
3
|
||||
Chevrolet
|
||||
Silverado 1500 Regular Cab
|
||||
2011
|
||||
|
||||
4
|
||||
Ford
|
||||
Explorer
|
||||
2010
|
||||
|
||||
5
|
||||
Acura
|
||||
RL
|
||||
2008
|
||||
|
||||
6
|
||||
Chevrolet
|
||||
Astro Cargo
|
||||
1992
|
||||
|
||||
7
|
||||
MAZDA
|
||||
MX-5 Miata
|
||||
1992
|
||||
|
||||
8
|
||||
Toyota
|
||||
FJ Cruiser
|
||||
2008
|
||||
|
||||
9
|
||||
Audi
|
||||
RS 7
|
||||
2015
|
||||
|
||||
10
|
||||
Nissan
|
||||
Rogue
|
||||
2015
|
||||
|
||||
11
|
||||
Lexus
|
||||
GX
|
||||
2012
|
||||
|
||||
12
|
||||
MAZDA
|
||||
B-Series Regular Cab
|
||||
1996
|
||||
|
||||
13
|
||||
Kia
|
||||
Rio
|
||||
2016
|
||||
|
||||
14
|
||||
Volvo
|
||||
S90
|
||||
1997
|
||||
|
||||
15
|
||||
Nissan
|
||||
240SX
|
||||
1996
|
||||
|
||||
16
|
||||
Audi
|
||||
A6
|
||||
2011
|
||||
|
||||
17
|
||||
Audi
|
||||
A7
|
||||
2019
|
||||
|
||||
18
|
||||
Chevrolet
|
||||
Colorado Extended Cab
|
||||
2019
|
||||
|
||||
19
|
||||
Chrysler
|
||||
Fifth Ave
|
||||
1993
|
||||
|
||||
20
|
||||
Oldsmobile
|
||||
Achieva
|
||||
1997
|
|
Загрузка…
Ссылка в новой задаче