...
Add the following rows. The display name must be from the Target Variables.
Eg. "target_diagnostic_bloods": calculates the target for global variable "target_diagnostic_bloods"
Do this for all the transactional variables.
...
Once all the rows are created, go to Setup Wizard, and down the bottom to where the targets are.
Click "Set Targets". Displayed will be all the Targets that have been successfully set.
...
Example of copying a normal Report to be a Target Report:
For the Targets to display a round number, this must be done when creating the formula in the row.
The Round() Function:
round(<value>, <precision>, <mode>):
It rounds the given <value> to the specified <precision> using the <mode> and returns the rounded number.
Precision and mode are optional.
- value: the value to be rounded, e.g. the calculated target
- precision (optional): the decimal digits to round to. 0 = round to integer, - = digits to the left, + digits to the right. default: 0.
- mode (optional): i guess this is rarely needed. 4 rounding modes are available:
- PHP_ROUND_HALF_UP (default)
- PHP_ROUND_HALF_DOWN
- PHP_ROUND_HALF_EVEN
- PHP_ROUND_HALF_ODD
Examples:
round(3.4); // 3
round(3.5); // 4
round(3.6); // 4
round(3.6, 0); // 4
round(1.95583, 2); // 1.96
round(1241757, -3); // 1242000
round(5.045, 2); // 5.05
round(5.055, 2); // 5.06
*xxx will be your original formula