Query Group by time ( Shift time)

Hello @Karan12592,
I’m not sure that this is possible with InfluxQL However you can do this with Flux. What version of InfluxDB are you using?
There are tons of ways to manipulate time with Flux, but you’ll want. to use the timeShift() function

Functions to manipulate timestamps: Time series data is difficult to work with. Flux includes several functions to work with time. However, a couple of these functions are spread out between various community package contributions and Flux packages within the documentation. A consolidated list of all of these functions provide you with a deeper understanding of how you can use Flux to work with time. The following functions allow you to manipulate your timestamps and execute a variety of time series transformations. Including:

1 Like