Skip to content

runningAccumulate function with reset key #6528

@alexey-milovidov

Description

@alexey-milovidov

Use case
We have runningAccumulate function to perform cumulative aggregations, for example: number of distinct users from the begginning up to each day. What if we want to reset accumulations for each month - to calculate number of distinct users from the first day of month up to each day of that month?

Describe the solution you'd like
Add a second parameter - "reset key". If it changes, reset the accumulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions