NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scrollbar
iconsfalse

Page info
title
title

This page provides the information on the eval-data macro from the Atlassian site.

...

The eval-data macro allows evaluation of mathematical expressions using data in number-data macros.

Basic Mathematics

The following calculates the value of a fraction, initially 1/2.

...

Result:

Evaluate Data
Result
Result
format#0.0
${Numerator}/${Denominator}

Percentage:
Evaluate Data
Percentage
Percentage
format##0
round(${Result} * 100, 0)

Evaluating Data in Tables

In the Editview, the text-data and number-data macros present a plus sign with the table. Clicking the plus sign opens the table to accept names of variables and values for them. The eval-data macros calculate the sum and the average.

...

Table Data
Values
Values

Name

Value

Name

Value

Sum:

Evaluate Data
Sum
Sum
sumtable("Values", "Value")

Average:
Evaluate Data
Average
Average
avgtable("Values", "Value")

...