Parameters: Create A Parameter Define The Parameter
Parameters: Create A Parameter Define The Parameter
Parameters
Parameters are dynamic values that can replace constant values in calculations. For example, you may
create a calculated eld that returns true if Sales is greater than $500,000 and otherwise return false.
You can replace the constant value of 500,000 in the formula with a parameter that you can change
dynamically using the parameter control.
You can also edit
the parameter
by right-clicking
the parameter
in the Data
window and
selecting Edit.
Create a Parameter
You can create parameters directly in the
Calculated Field dialog box. Click the Create link
at the top of the list of parameters.
Defne the Parameter
Specify the following properties to dene the
parameter:
Name - A descriptive way to refer to it.
Data type - Parameters can be integers, oating
point numbers, strings, boolean values, dates, or
date/times.
Current Value - The initial value.
Display format - How to dispaly the values.
Allowable Values - The type of control used to
select values. Parameters can be dened as an
open eld (All), a List, or a Range of dened values.
2
Use the Parameter in a Calculation
Replace the constant value in a calculated eld
with the parameter. You can double-click the
parameter in the list to add it to the formula.
3
Show the Parameter Control
Parameters are global across the entire workbook
and are shown at the bottom of the Data window.
Right-click a parameter and select Show Parameter
Control to open a card where you can modify the
parameter value.
4
1
You can also right-click
in the Data window
and select Create
Parameter.