Re: how to combine aggregations

2015-01-15 Thread Adrien Grand
I believe you could run a terms aggregation on the city field, and under this terms aggregation put two sum aggregations, one for clicks and one for displays. And finally you could derive the click rate from the sum of clicks and displays on client side? If you are starting playing with

how to combine aggregations

2015-01-14 Thread Yan Georget
Hello, Let's imagine I am logging displays and clicks, say by cities. I can aggregate those by countries and I can also compute grand totals. Now I would like to compute click rates (clicks/displays) by cities, countries and I would also like to get a global click rate. How can I do this? It