Tableau Cheat Sheet
Calc fields · LODs · table calcs
Calculated fields, LOD expressions, parameter actions, table calculations, and dashboard layout best practices.
PDF quick reference
TableauCheat sheet
- Sections
- 3
- Snippets
- 4
- Page
- 1
01
Calculated fields
[Profit Margin] = [Profit] / [Sales]
IF [Sales] > 1000 THEN "High"ELSEIF [Sales] > 500 THEN "Mid"ELSE "Low" END
02
LOD expressions
{ FIXED [Region] : SUM([Sales]) }{ INCLUDE [Sub-Category] : AVG([Profit]) }{ EXCLUDE [Order Date] : SUM([Sales]) }
03
Table calculations
RUNNING_SUM(SUM([Sales]))SUM([Sales]) / TOTAL(SUM([Sales]))
