Practice Questions
Practice Questions
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")
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)