Try to change the following line:
to this one:
|> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false, timeSrc: "_start")
Try to change the following line:
to this one:
|> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false, timeSrc: "_start")