Calculate the percentage of a bucket over the total


I'm quite new with Elasticsearch and I'm exploring the analytics feature of ES. I was trying to calculate the percentage of each bucket from a histogram over the total. So if I have three buckets with these values:
A = 3
B = 10
C = 7
I'd like to add these values to the buckets as well:
A = 3; 0.15
B = 10; 0.5
C = 7; 0.35

However, I couldn't find a way to do so. I found some old threads about this topic saying that it's not possible. I'd like to know if this is possible nowadays and if not, if it there is a chance it could be added in the future.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.