Create a formula rule
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Use formula rules to set up a specific fixed or calculated value for a variable. The calculations are performed every time that the variables in the calculation are changed.
Repeat the first six steps described in Create a validation rule.
Select the Formula setup tab.
In the Variable field, select the variable name.
If the selected variable belongs to the array group, type its index in the Index field.
In the Type field, select one of the following:
Value – The variable should receive a specific value.
Calculated – The variable value should be calculated according to a specific formula.
If you selected Value, select one of the values for the variable in the Outcomes field. If you selected Calculated, click Calculated to create a formula.
Select the Recalculate check box if all the rules that contain the selected variable should be recalculated.