mv_avg.asciidoc 536 B

1234567891011121314151617181920212223242526272829303132333435
  1. [discrete]
  2. [[esql-mv_avg]]
  3. === `MV_AVG`
  4. *Syntax*
  5. [source,esql]
  6. ----
  7. MV_AVG(expression)
  8. ----
  9. *Parameters*
  10. `expression`::
  11. Multivalue expression.
  12. *Description*
  13. Converts a multivalued expression into a single valued column containing the
  14. average of all of the values.
  15. *Supported types*
  16. include::types/mv_avg.asciidoc[]
  17. *Example*
  18. [source.merge.styled,esql]
  19. ----
  20. include::{esql-specs}/math.csv-spec[tag=mv_avg]
  21. ----
  22. [%header.monospaced.styled,format=dsv,separator=|]
  23. |===
  24. include::{esql-specs}/math.csv-spec[tag=mv_avg-result]
  25. |===