_value=90010 _time=today
_value=50 _time=yesterday
_value=0 _time=the day before
Witch looks fabulous, except the days are not matching the data. In the table the 90010 corresponds to yesterday and 50 corresponds to the day before. I don’t understand what i’m doing wrong. Can someone point at where i’m wrong. many thanks.
@rucaza When you use aggregateWindow(), the aggregate function (count) actually drops the _time column because it isn’t part of the group key and it doesn’t know how to aggregate the time value. By default aggregateWindow() duplicates the _stop column as the new _time column to give each row a _time value for the window the row represents.
You can control which column aggregateWindow() duplicates as the output time with the timeSrc parameter. In your case, I’d suggest setting timeSrc: "_start":
I am writing to ask how I might create a SQL query to obtain a count of the number of records for each day “column1” has a value of “value1”
The output I would like to see in each row has two columns e.g holiday counting, the date, and then the number of times “value1” appeared in “column1” that for that day. Any help is greatly appreciated.