A crucial distinction: a row-level calc computes per row then aggregates; an aggregate calc aggregates first, then computes. Getting this right is the difference between a correct and a wrong ratio.
The classic example
// WRONG for a total ratio — averages per-row ratiosProfit Ratio (row) = [Profit] / [Sales] → then SUM/AVG of ratios// RIGHT — aggregate first, then divideProfit Ratio (agg) = SUM([Profit]) / SUM([Sales])
Key takeaways
- 01Row-level calc: compute per row, then aggregate. Aggregate calc: aggregate first, then compute.
- 02For group ratios/rates, aggregate then divide: SUM(Profit)/SUM(Sales).
- 03Averaging row-level ratios gives a different, usually wrong, answer.
- 04Tableau blocks mixing aggregate and non-aggregate in one calc.
