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?