Applies to: CELONIS 4.0 CELONIS 4.2 CELONIS 4.3 CELONIS 4.4
Description
Calculates the median of the specified column for each element of the given parent table.
The median is the middle element of a group. If the group has an even number of elements, the upper value of the two middle values is taken as the median.
Like the regular MEDIAN operator, the column can either be an INT, FLOAT or DATE column. The data type of the result is the same as the input column data type. If no value in the child table exists for the element in the parent table (either because all values of the child table column are filtered out, or because no corresponding value exists in the first place), NULL will be returned.
Вычисляет медиану указанного столбца для каждого элемента данной родительской таблицы.
Медиана является средним элементом группы. Если группа имеет четное количество элементов, верхнее значение двух средних значений принимается как медиана.
Как и обычный оператор MEDIAN, столбец может быть столбцом INT, FLOAT или DATE. Тип данных результата совпадает с типом данных входного столбца.
Если в элементе родительской таблицы не существует значения в дочерней таблице (либо из-за того, что все значения столбца дочерней таблицы отфильтрованы, либо из-за отсутствия соответствующего значения в первую очередь), будет возвращено значение NULL.
Syntax
PU_MEDIAN ( parent_table, child_table.column [, filter_expression] ) |
Examples