1.3.4.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.
|
Options |
The following data attributes are output:
|
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> |