Month wrong beginning

Try to change the following line:

to this one:

 |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false, timeSrc: "_start")