I have a data series of numerical observations.
I would like to create a metric with time builder, which shows:
(sum of obsValues filtered for 2018) / (the average of (sum of obsValue by years)) *100
I think you can make this work if you use a Filter Ratio aggregation in TSVB.
Set the Aggreation to Filter Ratio
Set the Numerator to year:2018, the Denominator to * (the denominator is that by default)
Set the Metric to Sum of field obsValue.
Now create a Math aggregation where you can set the value from the previous aggregation as a parameter that you can divide by the number of years (sadly you'll have to set that by hand, because I don't think you can get it from an aggregation) in order to get the average by year and then you can multiply it with 100 as well. This will you give you a chart with the values that you desire.
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.