Hint: Multiply sales by (1 - discount) to get discounted sales [OK]
Common Mistakes:
Adding instead of subtracting discount
Using parameter value as 10 instead of 0.1
Confusing multiplication with division
4. You created a parameter Top N to filter the top N products by sales using this calculated field:
RANK(SUM([Sales])) <= [Top N]
But the filter does not work as expected. What is the likely issue?
medium
A. The parameter Top N is not set to an integer type
B. The calculated field syntax is incorrect; parameters cannot be used in rank functions
C. The parameter value is not connected to the filter
D. The calculation needs to be aggregated with AVG instead of SUM
Solution
Step 1: Understand parameter data types
Parameters must have the correct data type matching their use. Here, Top N should be an integer.
Step 2: Identify the issue with parameter type
If Top N is not integer, the comparison with rank (which returns integer) fails, causing filter issues.
Final Answer:
The parameter Top N is not set to an integer type -> Option A
Quick Check:
Parameter type must match usage = C [OK]
Hint: Ensure parameter type matches calculation use (integer for ranks) [OK]
Common Mistakes:
Assuming parameters can't be used in rank functions
Not linking parameter to filter action
Changing aggregation unnecessarily
5. You want to create a dashboard where users can select a sales threshold using a parameter Min Sales. You want to show only products with sales greater than this threshold. Which calculated field formula correctly uses the parameter to filter products?
hard
A. SUM([Sales]) < [Min Sales]
B. SUM([Sales]) >= Min Sales
C. IF [Min Sales] > SUM([Sales]) THEN 'Show' ELSE 'Hide' END
D. IF SUM([Sales]) > [Min Sales] THEN 'Show' ELSE 'Hide' END
Solution
Step 1: Understand the filtering logic needed
We want to mark products as 'Show' if their sales exceed the parameter value.
Step 2: Check each formula's logic
IF SUM([Sales]) > [Min Sales] THEN 'Show' ELSE 'Hide' END uses IF to return 'Show' when SUM([Sales]) > [Min Sales], which is correct for filtering.
Step 3: Why others are incorrect
SUM([Sales]) >= [Min Sales] returns TRUE/FALSE but may not be usable directly as a filter label. IF [Min Sales] > SUM([Sales]) THEN 'Show' ELSE 'Hide' END reverses logic. SUM([Sales]) < [Min Sales] shows products below threshold.
Final Answer:
IF SUM([Sales]) > [Min Sales] THEN 'Show' ELSE 'Hide' END -> Option D
Quick Check:
Use IF with parameter to label filter results = A [OK]
Hint: Use IF to compare sales with parameter for filtering [OK]