Question on Flux

My data are indexes, what I would like is to be able to have the average per day?

The average must be done only per day and not a moving average.

I saw that there is a solution in InfluxQL but nothing on FLUX?

Welcome @Livio_Tinnirello

Maybe I do not understand the question, but I believe this statement is what you want:

|> aggregateWindow(every: 1d, fn: mean)