Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
2 ) Connect to the MavenMarket _ Customers csv file Name the table Customers, and make sure that headers have been promoted Confirm that data
Connect to the MavenMarketCustomers csv file Name the table "Customers", and make sure that headers have been promoted Confirm that data types are accurate Note: "customerid should be whole numbers, and both "customeracctnum" and "customerpostalcode" should be text Add a new column named "fullname" to merge the the "firstname" and "lastname" columns, separated by a space Create a new column named "birthyear" to extract the year from the "birthdate" column, and format as text Create a conditional column named "haschildren" which equals N if "totalchildren" otherwise Y Connect to the MavenMarketProducts csv file Name the table "Products" and make sure that headers have been promoted Confirm that data types are accurate Note: "productid should be whole numbers, "productsku" should be text "productretailprice" and "productcost should be decimal numbers Use the statistics tools to return the number of distinct product brands, followed by distinct product names o Spot check: You should see brands and product names Add a calculated column named "discountprice", equal to of the original retail price o Format as a fixed decimal number, and then use the rounding tool to round to digits Select "productbrand" and use the Group By option to calculate the average retail price by brand, and name the new column "Avg Retail Price" o Spot check: You should see an average retail price of $ for Washington products, and $ for Green Ribbon Delete the last applied step to return the table to its pregrouped state Replace "null" values with zeros in both the "recyclable" and "lowfat" columns Connect to the MavenMarketStores csv file Name the table "Stores" and make sure that headers have been promoted Confirm that data types are accurate Note: "storeid and "regionid should be whole numbers Add a calculated column named "fulladdress", by merging "storecity", "storestate", and "storecountry", separated by a comma and space hint: use a custom separator Add a calculated column named "areacode", by extracting the characters before the dash in the "storephone" field Connect to the MavenMarketRegions csv file Name the table "Regions" and make sure that headers have been promoted Confirm that data types are accurate Note: "regionid should be whole numbers Connect to the MavenMarketCalendar csv file Name the table "Calendar" and make sure that headers have been promoted Use the date tools in the query editor to add the following columns: o Start of Week starting Sunday o Name of Day o Start of Month o Name of Month o Quarter of Year o Year Connect to the MavenMarketReturns csv file Name the table "ReturnData" and make sure that headers have been promoted Confirm that data types are accurate all ID columns and quantity should be whole numbers Add a new folder on your desktop or in your documents named "MavenMarket Transactions", containing both the MavenMarketTransactions and MavenMarketTransactions csv files Connect to the folder path, and choose "Trnasform" vs Combine and Transform Click the "Content" column header double arrow icon to combine the files, then remove the "Source.Name" column Name the table "TransactionData", and confirm that headers have been promoted Confirm that data types are accurate all ID columns and quantity should be whole numbers o Spot check: You should see data from through in the "transactiondate" column With the exception of the two data tables, disable "Include in Report Refresh", then Close & Apply Confirm that all tables are now accessible within both the RELATIONSHIPS view and the DATA view Save your pbix file ie "MavenMarketReport" PART Using the report you created in Part complete the following steps: In the RELATIONSHIPS view, arrange your tables with the lookup tables above the data tables Connect TransactionData to Customers, Products, and Stores using valid primaryforeign keys Connect TransactionData to Calendar using both date fields, with an inactive "stockdate" relationship Connect ReturnData to Products, Calendar, and Stores using valid primaryforeign keys Connect Stores to Regions as a "snowflake" schema Confirm the following: All relationships follow onetomany cardinality, with primary keys on the lookup side and foreign keys on the data side Filters are all oneway no twoway filters Filter context flows "downstream" from lookup tables to data tables Data tables are connected via shared lookup tables not directly to each other Hide all foreign keys in both data tables from Report View, as well as "regionid from the Stores table In the DATA view, complete the following: Update all date
Connect to the MavenMarketCustomers csv file
Name the table "Customers", and make sure that headers have been promoted
Confirm that data types are accurate Note: "customerid should be whole
numbers, and both "customeracctnum" and "customerpostalcode" should
be text
Add a new column named "fullname" to merge the the "firstname" and
"lastname" columns, separated by a space
Create a new column named "birthyear" to extract the year from the
"birthdate" column, and format as text
Create a conditional column named "haschildren" which equals N if
"totalchildren" otherwise Y
Connect to the MavenMarketProducts csv file
Name the table "Products" and make sure that headers have been promoted
Confirm that data types are accurate Note: "productid should be whole
numbers, "productsku" should be text "productretailprice" and
"productcost should be decimal numbers
Use the statistics tools to return the number of distinct product brands, followed
by distinct product names
o Spot check: You should see brands and product names
Add a calculated column named "discountprice", equal to of the original
retail price
o Format as a fixed decimal number, and then use the rounding tool to
round to digits
Select "productbrand" and use the Group By option to calculate the average
retail price by brand, and name the new column "Avg Retail Price"
o Spot check: You should see an average retail price of $ for
Washington products, and $ for Green Ribbon
Delete the last applied step to return the table to its pregrouped state
Replace "null" values with zeros in both the "recyclable" and "lowfat"
columns
Connect to the MavenMarketStores csv file
Name the table "Stores" and make sure that headers have been promoted
Confirm that data types are accurate Note: "storeid and "regionid should
be whole numbers
Add a calculated column named "fulladdress", by merging "storecity",
"storestate", and "storecountry", separated by a comma and space hint: use
a custom separator
Add a calculated column named "areacode", by extracting the characters
before the dash in the "storephone" field
Connect to the MavenMarketRegions csv file
Name the table "Regions" and make sure that headers have been promoted
Confirm that data types are accurate Note: "regionid should be whole
numbers
Connect to the MavenMarketCalendar csv file
Name the table "Calendar" and make sure that headers have been promoted
Use the date tools in the query editor to add the following columns:
o Start of Week starting Sunday
o Name of Day
o Start of Month
o Name of Month
o Quarter of Year
o Year
Connect to the MavenMarketReturns csv file
Name the table "ReturnData" and make sure that headers have been
promoted
Confirm that data types are accurate all ID columns and quantity should be
whole numbers
Add a new folder on your desktop or in your documents named "MavenMarket
Transactions", containing both
the MavenMarketTransactions and MavenMarketTransactions csv
files
Connect to the folder path, and choose "Trnasform" vs Combine and
Transform
Click the "Content" column header double arrow icon to combine the files,
then remove the "Source.Name" column
Name the table "TransactionData", and confirm that headers have been
promoted
Confirm that data types are accurate all ID columns and quantity should be
whole numbers
o Spot check: You should see data from through in
the "transactiondate" column
With the exception of the two data tables, disable "Include in Report Refresh",
then Close & Apply
Confirm that all tables are now accessible within
both the RELATIONSHIPS view and the DATA view
Save your pbix file ie "MavenMarketReport"
PART
Using the report you created in Part complete the following steps:
In the RELATIONSHIPS view, arrange your tables with the lookup tables above the data
tables
Connect TransactionData to Customers, Products, and Stores using
valid primaryforeign keys
Connect TransactionData to Calendar using both date fields, with an
inactive "stockdate" relationship
Connect ReturnData to Products, Calendar, and Stores using valid primaryforeign
keys
Connect Stores to Regions as a "snowflake" schema
Confirm the following:
All relationships follow onetomany cardinality, with primary keys on the lookup
side and foreign keys on the data side
Filters are all oneway no twoway filters
Filter context flows "downstream" from lookup tables to data tables
Data tables are connected via shared lookup tables not directly to each other
Hide all foreign keys in both data tables from Report View, as well as "regionid from
the Stores table
In the DATA view, complete the following:
Update all date
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started