Hello,

I'm trying to calculate the average of documents by day (24h) for working days, i found that elastic calculate the average by this formula : avg = sum(docs of working days) / numberOfDays, and what i want is the next formula : avg = sum(docs of working days) / (numberOfDays - weekends).

my question is, is there a way to exclude weekends from the interval calendar ? or to delete buckets of weekends ?

Thank you