Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What is a row-level calculation in Tableau?
A row-level calculation is a formula that is applied to each individual row of data before any aggregation happens. It processes data row by row.
Click to reveal answer
beginner
What does an aggregate calculation do in Tableau?
An aggregate calculation summarizes data by combining multiple rows into a single value, like sum, average, or count.
Click to reveal answer
intermediate
Example: SUM([Sales]) vs [Sales] * 0.1 - which is aggregate and which is row-level?
SUM([Sales]) is an aggregate calculation because it adds up sales across rows. [Sales] * 0.1 is a row-level calculation because it multiplies each row's sales by 10%.
Click to reveal answer
intermediate
Why can aggregate calculations not be used inside row-level calculations directly?
Because aggregate calculations summarize data across rows, they don’t have a single value per row. Row-level calculations need a value for each row, so aggregates can’t be used directly inside them.
Click to reveal answer
intermediate
How does Tableau handle the order of row-level and aggregate calculations?
Tableau first computes row-level calculations for each row, then applies aggregate calculations on the results of those row-level calculations.
Click to reveal answer
Which of the following is a row-level calculation in Tableau?
AAVG([Sales])
BSUM([Profit])
C[Profit] - [Cost]
DCOUNT([Orders])
✗ Incorrect
Subtracting Cost from Profit happens for each row individually, so it is a row-level calculation.
What does SUM([Sales]) represent in Tableau?
AParameter
BRow-level calculation
CFilter
DAggregate calculation
✗ Incorrect
SUM([Sales]) adds sales values across rows, so it is an aggregate calculation.
Why can you not use SUM([Sales]) inside a row-level calculation directly?
ABecause SUM aggregates multiple rows into one value
BBecause SUM is a data source
CBecause SUM is a parameter
DBecause SUM is a filter
✗ Incorrect
SUM aggregates data across rows, so it does not produce a value for each individual row needed in row-level calculations.
Which calculation happens first in Tableau?
ARow-level calculation
BAggregate calculation
CFilter
DDashboard action
✗ Incorrect
Tableau computes row-level calculations first, then applies aggregate calculations on those results.
If you want to calculate 10% commission on each sale, which calculation type should you use?
AAggregate calculation
BRow-level calculation
CParameter
DFilter
✗ Incorrect
Calculating 10% commission on each sale requires multiplying each row's sales value, so it is a row-level calculation.
Explain the difference between aggregate and row-level calculations in Tableau.
Think about whether the calculation happens before or after combining rows.
You got /4 concepts.
Describe a real-life example where you would use a row-level calculation versus an aggregate calculation.
Consider if you want to work with individual data points or summaries.
You got /3 concepts.
Practice
(1/5)
1. Which statement best describes the difference between aggregate and row-level calculations in Tableau?
easy
A. Row-level calculations are only used for filtering data, aggregate calculations are for calculations.
B. Aggregate calculations work on each individual record, while row-level calculations summarize data.
C. Both aggregate and row-level calculations always summarize data across multiple records.
D. Row-level calculations operate on each individual data record, while aggregate calculations summarize multiple records.
Solution
Step 1: Understand row-level calculations
Row-level calculations are applied to each individual row or record in the data source.
Step 2: Understand aggregate calculations
Aggregate calculations combine or summarize multiple rows into a single value, like sum or average.
Final Answer:
Row-level calculations operate on each individual data record, while aggregate calculations summarize multiple records. -> Option D
Hint: Remember: row-level = each row, aggregate = summary [OK]
Common Mistakes:
Confusing which calculation works on individual rows
Thinking aggregate works on single records
Mixing filtering with calculation types
2. Which of the following is the correct syntax for a row-level calculation in Tableau?
easy
A. [Sales] * 1.1
B. SUM([Sales])
C. AVG([Profit])
D. COUNTD([Customer ID])
Solution
Step 1: Identify row-level calculation syntax
Row-level calculations use fields directly without aggregation functions, e.g., multiplying a field by a number.
Step 2: Identify aggregate calculation syntax
Functions like SUM(), AVG(), COUNTD() are aggregate calculations summarizing data.
Final Answer:
[Sales] * 1.1 -> Option A
Quick Check:
Row-level uses direct field references without aggregation [OK]
Hint: Row-level calculations use fields directly, no SUM or AVG [OK]
Common Mistakes:
Using aggregation functions for row-level calculations
Confusing SUM() as row-level
Not recognizing direct field references
3. Given a dataset with sales records, what will the Tableau calculation SUM([Sales]) / COUNT([Order ID]) return?
medium
A. The average sales per order (aggregate calculation).
B. The total sales multiplied by the number of orders (row-level calculation).
C. The sales value for each individual order (row-level calculation).
D. The count of unique sales values (aggregate calculation).
Solution
Step 1: Analyze the calculation components
SUM([Sales]) adds all sales values; COUNT([Order ID]) counts all orders.
Step 2: Understand the division result
Dividing total sales by number of orders gives average sales per order, an aggregate summary.
Final Answer:
The average sales per order (aggregate calculation). -> Option A
Quick Check:
SUM/COUNT = average per order [OK]
Hint: SUM divided by COUNT usually means average [OK]
Common Mistakes:
Thinking the result is row-level instead of aggregate
Confusing COUNT with COUNTD (unique count)
Assuming multiplication instead of division
4. You wrote the calculation SUM([Sales] * [Quantity]) in Tableau but it gives an error. What is the likely problem?
medium
A. SUM() cannot be used with numeric fields.
B. You cannot multiply fields inside an aggregate function; multiply first, then aggregate.
C. You must use AVG() instead of SUM() for multiplication.
D. The calculation should be SUM([Sales]) * SUM([Quantity]) to work.
Solution
Step 1: Understand calculation order in Tableau
Tableau requires row-level operations before aggregation; multiplying fields inside SUM() is invalid.
Step 2: Correct approach for multiplication then aggregation
Multiply [Sales] by [Quantity] at row-level, then aggregate the result with SUM.
Final Answer:
You cannot multiply fields inside an aggregate function; multiply first, then aggregate. -> Option B
Quick Check:
Row-level calc inside aggregate must be done outside first [OK]
Hint: Multiply fields first, then aggregate with SUM [OK]
Common Mistakes:
Trying to multiply inside SUM() directly
Using SUM() on non-numeric fields
Replacing SUM() with AVG() incorrectly
5. You want to calculate the average profit per customer in Tableau. Which calculation correctly combines row-level and aggregate calculations?
hard
A. SUM([Profit] / COUNTD([Customer ID]))
B. AVG(SUM([Profit]))
C. SUM([Profit]) / COUNTD([Customer ID])
D. SUM([Profit]) * COUNTD([Customer ID])
Solution
Step 1: Understand the goal
We want average profit per customer, so total profit divided by unique customers.
Step 2: Analyze each option
SUM([Profit]) / COUNTD([Customer ID]) divides total profit (SUM) by distinct customer count (COUNTD), correctly calculating average profit per customer.
Final Answer:
SUM([Profit]) / COUNTD([Customer ID]) -> Option C
Quick Check:
Total profit ÷ unique customers = average profit per customer [OK]
Hint: Divide total profit by distinct customers for average [OK]