1.3.5.6 Calculate Percentage

The Calculate Percentage processor calculates the percentage value of one number in relation to the second. The input for both numeric values are from the attributes.

Use Calculate Percentage to calculate one numeric value as a percentage of another.

The following table describes the configuration options:

Configuration Description

Inputs

Specify one numeric attribute to calculate from, and one numeric attribute to percentage.

  • Value: The numeric value, selected from the attributes, that is to be expressed as a percentage.

  • Percentage of: The numeric value, selected from the attributes, in relation to which the percentage is calculated.

Options

The following data attributes are output:

  • Percentage of: By default this is set to 100. This field is disabled if the corresponding input attribute is set.

  • Precision: Number of decimal places to round the result.

Output

The percentage value that is calculated. The output can be null if the input is null, or if the maximum value is zero.

Flags

None.

The Calculate Percentage transformer presents no summary statistics on its processing.

Output Filters

None.

Example

Value Maximum Precision Output Value

50

100

0

50%

5000

25000

0

20%

22350

56800

2

39.35%

198

0

2

<Null>