Monthly aggregate next to each other (per year)

I’m using Influx DB Cloud service to gather data from my energy counter. This is always a total number meaning the actual reading (not delta).
I’m able to agregate by month but i’m having two issues

  1. Data label is showing first day of a month instead of previous
  2. I would like to see months next to each other between the years. Meaning August’23 should be next to August’'24 but with dufferen colour. Doable?

My current dashboard code is:

from(bucket: “grentonNew”)
|> range(start: -14mo)
|> filter(fn: (r) => r[“_measurement”] == “eastron”)
|> filter(fn: (r) => r[“host”] == “totalconsumption”)
|> filter(fn: (r) => r[“_field”] == “value”)
|> difference()
|> aggregateWindow(every: 1mo, fn: sum, createEmpty: false)
|> yield()

Are you just wanting to correct the fact that your graph shows 2 blocks for the month 09-2024? Try playing with the AggregateWindow statement to include a start or stop.

Also try specifying the stop time in the range function with this:

Sort of…See this thread: