Assignment 4
Assignment 4
aa Module 4: Assignment
lliP
te
In
Problem Statement:
You work as a Power BI Developer in a leading software company. As a BI
professional, you are asked to explore ways in which AdventureWorks can
empower business and build a report based on sales.
Tasks To Be Performed:
a. In Power BI Desktop, connect to AdventureWorks Sales Data.xlsx
b. Import DimCurrency, DimCustomer, DimDate, DimProduct, DimPromotion,
DimSalesTerritory, and FactInternetSales worksheets
t
c. Create a new relationship between the FactInternetSales table’s
aa
OrderDateKey column and the DateKey column in DimDate. Set the
cardinality as Many to One (*:1), the cross-filter direction as Single, and
make this relationship Active
d. Create a relationship from FactInternetSales [DueDateKey] to DimDate
[DateKey]
lliP
e. Create a relationship between FactInternetSales [ShipDateKey] and
DimDate [DateKey]
f. In Power BI Desktop, load the DimProductCategory and
DimProductSubcategory data from the AdventureWorks Product
Categories.xlsx file
g. Delete the relationship between DimProductCategory and
DimProductSubcategory
te
t
DimProductSubcategory table, which gets the category name from
aa
DimProductCategory
p. Add a calculated column called PromotionLengthDays to the
DimPromotion table, which is the difference between StartDate and
EndDate
q. Add a calculated column called Profit to FactInternetSales, and show the
difference between UnitPrice and ProductStandardCost formatted as
lliP
currency
r. Save the changes, and close Power BI Desktop
te
In