In above data, the average at group level can be calculated using bucketing at team level and I can get accurate results as
m-group: 2.5
n-group: 21.25
Now while I try to calculate average avg at parent group.
The bucketing at group level will give wrong output as: 29.83
but actually it should be 11.87
Sorry, but writing pseudo query here, will update it sometime later.
The key is first calculate aggregation at team level (lowest level)
Then wrap it with bucket average, which is at group level (next higher level)
and then wrap it again with bucket average, the A-parent-group (top level)
This way we could achieve bucket averages at any number of levels. :
This way I'm able to catch the aggregate numbers but still not sure how to build visualization using this. If vega is only way, I will need to spend some more time on visualization part
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.