0
0
Tableaubi_tool~10 mins

Parameter actions in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data shows products and their sales. The parameter 'Selected Product' is set to 'Bananas' by a parameter action. The sales value shown corresponds to the selected product.

CellValue
A1Product
B1Sales
A2Apples
B2100
A3Bananas
B3150
A4Cherries
B4200
D1Selected Product
E1Sales for Selected Product
D2Bananas
E2150
Formula Trace
IF [Product] = [Selected Product] THEN [Sales] ELSE NULL END
Step 1: [Selected Product]
Step 2: [Product] = [Selected Product] for each row
Step 3: IF condition THEN [Sales] ELSE NULL for each row
Step 4: Aggregate or display sales for selected product
Cell Reference Map
    A        B        D        E
1 |Product | Sales  |Selected|Sales for
  |        |        |Product |Selected
2 |Apples  | 100    |Bananas | 150
3 |Bananas | 150    |        |    
4 |Cherries| 200    |        |    
The formula uses the 'Product' column (A2:A4), the 'Sales' column (B2:B4), and the parameter 'Selected Product' (D2) to determine which sales value to show in E2.
Result
    A        B        D            E
1 |Product | Sales  |Selected Prod|Sales for
  |        |        |uct          |Selected
2 |Apples  | 100    |Bananas     | 150
3 |Bananas | 150    |            |    
4 |Cherries| 200    |            |    
The final output shows the selected product 'Bananas' in cell D2 and its sales value 150 in cell E2, demonstrating how parameter actions filter data dynamically.
Sheet Trace Quiz - 3 Questions
Test your understanding
What value does the parameter 'Selected Product' hold during evaluation?
A"Bananas"
B"Apples"
C"Cherries"
DNULL
Key Result
IF [Dimension] = [Parameter] THEN [Measure] ELSE NULL END filters measure by parameter selection