Please help me to create following statistic - I need to count daily user registrations and output percentage of difference between current day and the average of 4 the previous weekdays.
So I’m trying to create task to downsample data first, like this:
|> from(bucket: “Test”)
|> range(start: 2020-01-01T11:24:00Z)
|> filter(fn: ® => r["_measurement"] == “paid”)
|> aggregateWindow(every: 1d, fn: count)
|> to(bucket: “d”)
But I see only one record with count instead of 30 or more rows (one per day) for existing data…