Questions
Questions
Hint
Q2) How many tables are there in the Sales_Analysis.pbix file? Name the fact table and
name the lookup(dimension tables). Then, delete all the connections and reconnect
tables based on the keys. Please write down the connected keys(what fields are they
joined on) between the facts table and lookup tables.
Q3) Modify the formatting of the BirthDate column in the Customers table. The new
format should be DD-MM-YY. Modify the formatting of the Invoices.InvoiceDate column
in the Sales table. The new format should be DD-MM-YY
Answer
Q4) Create a calculated column in the Customers table named "Age" to indicate the
customer's age. Use the customer's Birthdate in a DAX formula.
Result:
Q7) Create a bar chart to show the sum of SalesAmount by State_name. Keep Sales
Region as a filter. The filter must contain select all option as well. Click on the different
sales regions in the slicer visual to observe its filtering effect. Format the bar chart and
filter to match the below result
Q8) DAX
8.1 Create a measure in the Sales table named Sales Revenue to perform a sum aggregation on
the SalesAmount column. Create the below table to show the year from invoice date vs sales
revenue.
8.2 Create another measure in the Sales table named Units Sold to perform a sum aggregation
on the Quantity column.
8.3 Create a measure in the Sales table named Product Cost to perform a sum aggregation on
the ProductCost column.
8.4 Create a new measure in the Sales table named Profit by calculating the difference between
SalesAmount and ProductCost
8.5 Create a measure in the Sales table named Customer Count to count the number of
customers
8.6. Create a new table, All_measures. Keep all the newly created measures in it.
Q9)Create a map fill chart to show the sales revenue by each state. Use red, yellow, and
green colors for filling low, medium, and high sales states.
Q10)Create a map chart to show the sales revenue by each city. Use red, yellow, and
green colors for filling low, medium, and high-sales cities
Q11) In the products table, create a new hierarchy Product category. The order should be
Category, Subcategory, and product. Then, using that product category hierarchy, create
the below visual to show units sold, sales revenue, and Profit by each category and
subcategory. Finally, click on the Expand all icon in the toolbar to display the next level in
the Product Category hierarchy.
Q12) Create a new calculated table named Calendar using the CreateCalendarTable.txt
file. Create a relationship between the Calendar table and the Sales table. Join them on
the InvoiceDate column from the Sales table and the Date column of the Calendar table
Q13) Create a new matrix visual to show sales revenue by year and month. Make sure
that the table is sorted by month in chronological order.
Hint: Data view >Select month in year column >> Sort by a different column month in year sort.
Q14) Create a measure named Sales_Revenue_QTD that calculates a quarter-to-date
aggregate sum on the sales revenue. Next, create a measure called Sales_Revenue_YTD
that calculates a year-to-date aggregate sum of the sales revenue. Finally, create a
measure named Cum_Sales_Revenue that calculates the cumulative sum of sales
revenue.
Q15) Create a measure named Sales Growth PM that calculates the percentage increase
between sales revenue for the current month and sales revenue for the previous month.
Use the formula (Sales in the current month – Sales in the last month) / Sales in the last
month