0% found this document useful (0 votes)
43 views3 pages

Practice Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

Practice Questions

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practice Questions

1. Calculate the total sales for all orders.


2. Find the average sales amount across all orders.
3. Determine the maximum order quantity in the dataset.
4. Calculate the total number of customers
5. Compute the average tax amount for all sales.
6. Use the IF function to classify products into "High Price" and "Low Price" based on
whether their ListPrice is above $500.
7. Categorize customers based on the number of cars they own:
4: "Very Rich"
3: "Rich"
2: "Moderately Rich"
Otherwise: "Ordinary"
8. Calculate the total sales for female customers.
9. Find the average unit price for products in the "Bikes" category
10. Calculate the total number of products with an OrderQuantity greater than 20.
11. Create a calculated table of sales where the OrderQuantity exceeds 10.
12. Find the addresses of customers containing the letter "P".
13. Determine the names of customers having letter "M" in their name.
14. Find addresses containing word "Avenue" in Addressline1
15. Calculate the gross profit
16. Calculate the net profit
17. Calculate the total number of blank entries in the Customers[Gender] column.
18. Create a calculated column to classify orders as "Large" if the OrderQuantity is greater
than 10; otherwise, "Small."
19. Find the total sales amount for orders where the TaxAmt exceeds $100.
20. Determine the total number of products sold where the SafetyStockLevel is below 50.
21. Compute the total tax collected for the "Road Bikes" subcategory.
22. What is the total revenue generated by male customers who purchased bikes and whose
order quantity is greater than 5?
23. Find the average tax amount paid by customers aged 30-40 who bought mountain bikes
with a unit price exceeding $200.
24. Calculate the total profit from female customers who bought accessories and whose
yearly income is above $75,000.
25. Determine the number of orders placed by customers from the Northwest region who
purchased road bikes and whose freight cost exceeded $50..
Solution
1. TotalSales = SUM(Sales[SalesAmount])
2. AvgSales = AVERAGE(Sales[SalesAmount])

3. MaxOrderQty = MAX(Sales[OrderQuantity])

4. TotalCustomers = COUNT(Sales[CustomerKey])

5. AvgTaxAmount = AVERAGE(Sales[TaxAmt])
6. PriceCategory = IF(Products[ListPrice] > 500, "High Price", "Low Price")

7. CustomerWealth = SWITCH(Customers[NumberCarsOwned], 4, "Very Rich",3, "Rich",


2,"Moderately Rich", "Ordinary")
8. Sales_Female_Customers = CALCULATE(SUM(Sales[SalesAmount]),
Customers[Gender] = "F")
9. AvgUnitPrice_Bikes = CALCULATE(AVERAGE(Sales[UnitPrice]), Products[Category]
= "Bikes")

10. Products_OrderQty_GT20 = COUNTROWS(FILTER(Sales, Sales[OrderQuantity] > 20))


11. Sales_FilteredTable = FILTER(Sales, Sales[OrderQuantity] > 10)

12. Addresses_Containing_P = FIND("P", Customers[AddressLine1], 1, 0)

13. Customers_StartWithM = FILTER(Customers, LEFT(Customers[CustomerName], 1) =


"M")

14. Addresses_Containing_Avenue = FIND("Avenue", Customers[AddressLine1], 1, 0)

15. GrossProfit = SUMX(Sales, Sales[SalesAmount] - Sales[TotalProductCost])

16. NetProfit = SUMX(Sales, Sales[SalesAmount] - Sales[TotalProductCost] -


Sales[TaxAmt] - Sales[DiscountAmount])

17. BlankEntries_Gender = COUNTBLANK(Customers[Gender])


18. OrderSize = IF(Sales[OrderQuantity] > 10, "Large", "Small")

19. Sales_Tax_GT100 = CALCULATE(SUM(Sales[SalesAmount]), Sales[TaxAmt] > 100)

20. Products_SafetyStock_LT50 = CALCULATE(SUM(Sales[OrderQuantity]),


Products[SafetyStockLevel] < 50)

21. Tax_RoadBikes = CALCULATE(SUM(Sales[TaxAmt]), Products[SubCategory] = "Road


Bikes")

22. TotalRevenue_Male_Bikes_GT5=CALCULATE(SUM(Sales[SalesAmount]),Customers[
Gender] = "M",Products[Category] = "Bikes", Sales[OrderQuantity] > 5)
23. AvgTax_MountainBikes_30to40 = CALCULATE(AVERAGE(Sales[TaxAmt]),
Customers[Age] >= 30,Customers[Age] <= 40, Products[SubCategory] = "Mountain
Bikes", Sales[UnitPrice] > 200)

24. TotalProfit_Female_Accessories = CALCULATE(SUMX(Sales, Sales[SalesAmount] -


Sales[TotalProductCost]), Customers[Gender] = "F", Products[Category] =
"Accessories", Customers[YearlyIncome] > 75000)

25. Orders_Northwest_RoadBikes = CALCULATE(COUNTROWS(Sales),Territory[Region]


= "Northwest",Products[SubCategory] = "Road Bikes",Sales[Freight] > 50)

You might also like