I need to create a Formula Metric in a Lens visualization on some terms/top value buckets.
I only want to calculate the metric for buckets with at least 10 records. How do I ensure that?
I know that in the aggregation-based visualizations I can add the following JSON input in the Advanced settings for the bucket specification: {"min_doc_count": 10}.
How can I do something similar in a Lens visualization, which I need to be able to calculate my formula metric?
Hi @jakn—This is not currently possible in Lens. You could either stick with the agg-based visualizations for now, or you could create a custom visualization (Vega) which gives you complete control over the query that is used to back the chart.
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.