Maven01

Maven Adventure Works Project

Introduction

This Project Case is part of the Microsoft Power BI Desktop for Business Intelligence Course on Udemy online platform by Maven Analytics. In this case, I am being put in the point of view of a Business Intelligence Analyst in AdventureWorks, a global manufacturing company that runs cycling equipment and accessories production. The Management Team needs a way to track the KPI, monitor and compare the performance, and identify some insights, as well as high value customers.

Objectives

Using the Power BI to:

Datasets

There are 8 Datasets used in this project, i.e.:

1. Returns Dataset (AdventureWorks Returns Data.csv)

Field Name Data Type
ReturnDate Date
TerritoryKey Whole Number
ProductKey Whole Number
ReturnQuantity Whole Number

2. Products Lookup Dataset (AdventureWorks Product Lookup.csv)

Field Name Data Type
ProductKey Whole Number
ProductSubcategoryKey Whole Number
ProductSKU Text
ProductName Text
ModelName Text
ProductDescription Text
ProductColor Text
ProductStyle Text
ProductCost Fixed Decimal Number
ProductPrice Fixed Decimal Number
SKU Type Text
DiscountPrice Fixed Decimal Number

3. Product Category Lookup Dataset (AdventureWorks Product Categories Lookup.csv)

Field Name Data Type
ProductCategoryKey Whole Number
CategoryName Text

4. Product Subcategory Lookup Dataset (AdventureWorks Product Subcategories Lookup.csv)

Field Name Data Type
ProductSubcategoryKey Whole Number
SubcategoryName Text
ProductCategoryKey Whole Number

5. Calendar Lookup Dataset (AdventureWorks Calendar Lookup.csv)

Field Name Data Type
Date Date
Day Name Text
Start of Week Date
Start of Month Date
Start of Quarter Date
Month Name Text
Month Whole Number
Start of Year Date
Year Whole Number

6. Customer Lookup Dataset (AdventureWorks Customer Lookup.csv)

Field Name Data Type
CustomerKey Whole Number
Prefix Text
FirstName Text
LastName Text
BirthDate Date
MaritalStatus Text
Gender Text
EmailAddress Text
AnnualIncome Fixed Decimal Number
TotalChildren Whole Number
EducationLevel Text
Occupation Text
HomeOwner Text
FullName Text
DomainName Text

7. Territory Lookup Dataset (AdventureWorks Territory Lookup.csv)

Field Name Data Type
SalesTerritoryKey Whole Number
Region Text
Country Text
Continent Text

8. Sales Dataset (AdventureWorks Sales Data 2020.csv, AdventureWorks Sales Data 2021.csv, & AdventureWorks Sales Data 2022.csv)

Field Name Data Type
OrderDate Date
StockDate Date
OrderNumber Text
ProductKey Whole Number
CustomerKey Whole Number
TerritoryKey Whole Number
OrderLineItem Whole Number
OrderQuantity Whole Number

Connecting and Shaping the Data

There are several steps in this phase in order to connect and shape the Data used in this case.

1. Update Power BI options and settings by:

2. Connect to the AdventureWorks Customer Lookup csv file by:

3. Connect to the AdventureWorks Product Lookup csv file by:

4. Connect to the AdventureWorks Product Category Lookup csv file by:

5. Connect to the AdventureWorks Product Subcategory Lookup csv file by:

6. Connect to the AdventureWorks Territory Lookup csv file by:

7. Connect to the AdventureWorks Calendar Lookup csv file by:

8. Connect to the AdventureWorks Returns csv file by:

9. Connect to the AdventureWorks Sales Data by:

10. With the exception of the other three data tables (“Largest companies”, “Rolling Calendar”, “Product Category Sales”, disable “Include in Report Refresh”, then Close & Apply by:

Building a Relational Model

There are several steps in this phase in order to build a Relational Model. These steps involves Tables from 2 different groups (Lookup Tables & Data Tables):

A. Lookup Tables:

Calendar Lookup, Customer Lookup, Product Category Lookup, Product Lookup, Product Subcategories Lookup, and Territory Lookup.

B. Data Tables:

Returns Data and Sales Data

Those steps are as follow:

1. In the MODEL view, arrange the tables so that the lookup tables are above the data tables by:

2. Confirm the following:

3. Hide all foreign keys in Return Data Table from Report View

4. In the DATA view, complete the following steps by:

All the steps above resulted in the following Relation Model:

Adding Calculated Fields and DAX (Data Analysis eXpression)

There are 3 spots in which I worked to add Calculation Fields and DAX, i.e. the Data View, the Report View, and the Additional Tables for Metric Selection.

1. In the DATA view, add the following calculated columns by:

The above 6 Calculated Fields were added into Customer Lookup Table.

The above 2 Calculated Fields were added into Product Lookup Table.

2. In the REPORT view, add the following measures (Assign to tables as you see fit, and use a matrix to match the “spot check” values) by:

3. In the Additional Tables for Metric Selection, add the following Measures by: There are 3 Additional Tables for Metric Selection, i.e.:

Executing all the detailed Steps in 3 spots above, resulted in adding 4 new Tables containing all Measures needed in the modelling.

The overall tables created the complete Relation Model for all the data loaded in the Power Bi

Building Interactive Report

The report dashboard is to provide information as required in the Objectives Section. There are 8 pages in the dashboard, i.e.:

1. Executive Dashboard

2. Product Detail

3. Map

4. Customer Detail

5. Question & Answer (QnA)

6. Decomposition Tree

7. Key Influencer

8. Top Segmentation

Analysis:

As per defined in the Objectives section, the final goal of the project was to provide a dashboard that can be used to analyze several things.

The live report dashboard can be found here