A wholesaler uses Tableau to classify individual orders by their non-null order value in CAD. The intended labels are Small below CAD 1000, Standard from CAD 1000 up to but excluding CAD 2000, and Priority at CAD 2000 or more.
The original calculated field is:
IF [Order Value] >= 1000 THEN "Standard" ELSEIF [Order Value] >= 2000 THEN "Priority" ELSE "Small" END
An analyst proposes this revision:
IF [Order Value] >= 2000 THEN "Priority" ELSEIF [Order Value] >= 1000 THEN "Standard" ELSE "Small" END
Complete both output columns using the exact words Small, Standard, or Priority. Report what each expression actually returns, even when it differs from the intended classification.
Unlock full course notes by signing up
Repairing a mixed-aggregation formula
A view shows one mark per store. Each store has many order rows. An analyst wants each mark to show total revenue after deducting the packaging fee charged on every order at that store. They write:
SUM([Revenue]) - [Packaging Fee]
Tableau rejects the formula. Packaging Fee has no null values. Which revision is valid and returns the intended quantity?
Tracing running totals across order and restart changes
A Tableau view contains exactly six marks: one for each combination of Region and Week shown below. Each displayed amount is already SUM([Sales]) for that mark, in CAD. No values are null, and all six marks remain available in every configuration.
An analyst uses RUNNING_SUM(SUM([Sales])). Determine the value displayed at the specified mark under each independent configuration:
Ascending: process Week 1, Week 2, then Week 3 separately within each region, restarting for each region. Find West Week 2.
Nulls in a row-level subtraction
In a retailer's Orders table, a null Shipping Cost means the order shipped free, so its true shipping cost is $0. An analyst creates [Net Revenue] with the formula [Sales] - [Shipping Cost] and shows SUM of Net Revenue for these three orders:
Which statement gives the value the view displays and a fix that produces the intended total?
Flagging margin risk by sub-category
A Tableau view has Sub-Category on Rows and one mark per sub-category. Management wants a field to put on Color that labels a sub-category "Margin risk" when both of these hold:
its profit ratio (total profit divided by total sales) is below 5%;
its total sales exceed $50,000.