I’m trying to get either the previous_period_value() or previous_value() function to work in a custom measure, but whenever I use any of the example code given on the docs it returns an error.
This error occurs for line graphs, bar graphs, etc. so it’s not tied to a specific graph. The specific code I ran for it: previous_period_value(total_hours, date, 1), where total_hours is a number & date is a string recognizable by graphs as a timeseries.
Aggregate(parent: Relation, groups: FrozenOrderedDict[str, Annotated[Value, Not(pattern=InstanceOf(type=))]], metrics: FrozenOrderedDict[str, Annotated[Value[+T, Scalar], Not(pattern=InstanceOf(type=))]])