Skip to content

Add average expression #4193

Description

@TomasEng

Our expression language should have a function that returns the average of a list of numbers.

Acceptance criteria

  • We have decided on how null values are weighted in the calculation (should they add to the total number of elements or not?)
  • The function exists in both frontend and backend
  • The function takes a list of numbers as its first argument and a fallback value for emty lists as its second argument
  • The function returns the average of the numbers in the provided list

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/logicrelated to logic/dynamics/expressionssquad/dataIssues that belongs to the named squad.

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions