Skip to main content
Skip table of contents

Median

The Median macro finds the median value of up to four Value fields. You may optionally specify up to four Key fields.

If you do not specify any Keys, the macro outputs one record containing the global median of each Value. If you specify one or more Keys, they define groupings, and the macro outputs one record per group, with each record containing the median of each value within that group.

Median macro configuration parameters

The Median macro has a single set of configuration parameters:

Key1...Key4

Optional key fields to define groupings in the data. The macro will output one record per group, with each record containing the median of each value within that group. You may specify up to four key fields. Default: Blank.

Value1...Value4

Fields for which the macro will find median values. You may specify up to four value fields. Default: Blank.

Configure the Median macro

  1. Select the Median icon, and then select the Configuration tab on the Properties pane.

  2. Optionally, select Key1 and select a key field to define groupings in the inputdata. The macro will output one record per group, with each record containing the median of each Value within that group. You may specify up to four key fields.

  3. Select Value and select the numeric field for which to find the median value. You may specify up to four value fields.  

  4. Optionally, go to the Execution tab, and then set Web service options.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.