What rank will the product with the highest sales receive?
medium
A. It depends on the number of products
B. 1
C. The highest sales product will have the lowest rank number
D. 0
Solution
Step 1: Understand RANKX parameters
ALL(Products) removes filters, ranking all products by [Total Sales] descending.
Step 2: Determine rank for highest sales
DESC order means highest value gets rank 1, Dense ranking handles ties without gaps.
Final Answer:
1 -> Option B
Quick Check:
Highest value rank = 1 [OK]
Hint: DESC order means highest value ranks 1 [OK]
Common Mistakes:
Thinking rank starts at 0
Confusing ascending and descending order
Ignoring Dense ranking behavior
4.
Identify the error in this RANKX formula:
Rank = RANKX(Products, [Sales], , ASC)
medium
A. The third argument (value) is missing and required
B. The order ASC is invalid, must be DESC
C. RANKX cannot rank by [Sales]
D. Missing table argument should be ALL(Products)
Solution
Step 1: Check the table argument
Using Products directly may apply current filters; ALL(Products) removes filters for full ranking.
Step 2: Confirm order and arguments
ASC is valid; third argument is optional; ranking by [Sales] is allowed.
Final Answer:
Missing table argument should be ALL(Products) -> Option D
Quick Check:
Use ALL() to rank all items ignoring filters [OK]
Hint: Use ALL() to rank all items ignoring filters [OK]
Common Mistakes:
Assuming ASC is invalid
Thinking third argument is mandatory
Not using ALL() to remove filters
5.
You want to rank products by sales but treat ties by assigning the same rank and skipping ranks after ties (standard competition ranking). Which RANKX parameter should you use?
hard
A. "Standard" to assign same rank and skip ranks after ties
B. "Dense" to assign same rank and no gaps after ties
C. "Skip" for ties to skip ranks after ties
D. "Unique" to assign unique ranks even if values tie