mv_avg.asciidoc 517 B

123456789101112131415161718192021222324252627282930313233
  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. include::types/mv_avg.asciidoc[]
  16. *Example*
  17. [source.merge.styled,esql]
  18. ----
  19. include::{esql-specs}/math.csv-spec[tag=mv_avg]
  20. ----
  21. [%header.monospaced.styled,format=dsv,separator=|]
  22. |===
  23. include::{esql-specs}/math.csv-spec[tag=mv_avg-result]
  24. |===