The macro allows to skip the Document Formula and only provide a Result Formula. This way a value can be calculated by the use of results previously calculated - either by a formula above in the table or by other instances of the Calculation Macro specified previously on the same page. If no Document Formula is specified The macro allows to skip the Document Formula and only provide a Result Formula. This way a value can be calculated by the use of results previously calculated - either by a formula above in the table or by other instances of the Calculation Macro specified previously on the same page. If no Document Formula is specified, the default results, like SUM or AVG are not present, because the formula does not iterate over the documents in the result set. Only the representation, the literal, and the result are provided.iterate over the documents in the result set. Only the representation, the literal, and the result are provided. Example Box |
---|
| This example shows how the formula named main uses the value of the revelvance-factor formula of the macro result-repo . Name | Format | Result Formula |
---|
main | percent | ${result-repo.relevance-factor}*2 + 10% |
|
|