In Tableau, what is the main difference between aggregate calculations and row-level calculations?
Think about when the calculation happens: before or after grouping data.
Aggregate calculations summarize data after grouping, such as SUM or AVG, while row-level calculations work on each row individually before any aggregation.
Given a sales dataset with columns Region and Sales, which Tableau calculation will return the total sales per region?
Choose the correct formula:
Think about which function aggregates sales per group.
SUM([Sales]) aggregates sales values per region. The others either operate row-level or calculate averages.
You want to create a dashboard showing average sales per customer and also highlight customers with sales above average. Which calculation types should you use?
Average sales per customer is a summary, flagging is per row.
Average sales per customer requires aggregation. Flagging customers above average is a row-level check against that aggregate.
Consider this Tableau calculated field: [Sales] / AVG([Sales]). What issue will this cause?
Think about how Tableau handles mixing aggregation levels in one formula.
Tableau requires aggregate and row-level calculations to be separated properly; mixing them directly causes an error.
You have a large dataset and need to calculate the percentage contribution of each product's sales to the total sales. Which approach is best for performance and accuracy?
Consider where aggregation happens and how to avoid repeated calculations.
Summing sales per product and dividing by total sales as separate aggregates in Tableau optimizes performance and ensures accuracy.