Step 1: Create the parameters
- Right-click in the Data pane and then select Create Parameter.
- In the Create Parameter dialog box, name the parameter "Furniture Goal".
- Under Data Type select Integer.
- Under Allowable values select All.
- Click OK.
- Right-click the parameter and then select Show Parameter Control.
- Complete Steps 1 through 6 for a parameter named "Office Supplies Goal".
- Complete Steps 1 through 6 for a parameter named "Technology Goal".
Step 32 Create the calculated field
- Select Analysis > Create Calculated Field.
- In the Create Calculated Field dialog box, name the field "Reference Line".
- In the formula field, enter the following formula:
CASE MIN([Department])
WHEN 'Furniture' THEN MIN([Furniture Goal])
WHEN 'Office Supplies' THEN MIN([Office Supplies Goal])
WHEN 'Technology' THEN MIN([Technology Goal])
END
- Click OK.
http://kb.tableau.com/articles/howto/adding-separate-dynamic-reference-lines-for-each-dimension-member