Computes the approximate median from all row values in a column or group. Input column can be of Integer or Decimal.
- If a row contains a missing or null value, it is not factored into the calculation. If the entire column contains no values, the function returns a null value.
- When used in a
pivottransform, the function is computed for each instance of the value specified in the
groupparameter. See Pivot Transform.
The approximate percentile functions utilize a different algorithm for efficiently estimating quantiles for streaming and distributed processing, depending on the running environment where the function is computed.
Tip: Approximation functions are suitable for larger datasets. As the number of rows increases, accuracy and calculation performance improves for these functions.
- For an exact calculation of this function, see MEDIAN Function.