Table (count data and divide through days of current month)

I have data like
data value
01.08.2019 - 33
02.08.2019 - 25
03.08.2019 - 26
(empty)
31.08.2019 - 26
How I can count this data per month and divide per count of current Month days?
4/31 = 0.1290

Hey @Yevhen_Baidiuk,

To accomplish this, you would need to perform a Bucket Script Aggregation, which isn't currently supported in Kibana. We are tracking this issue here: https://github.com/elastic/kibana/issues/4707 if you'd like to vote on it