If I have a Legacy Metric with this formula:
sum(data.bills)/(sum(data.sales)
And I want to add a filter like this:
{ "match_phrase": { "data.style": "Lease" } }
But the documents that have the field data.sales
never have the field data.style
, so, when I apply the filter, shows no result.
Is there any way to "tell" Lens to apply that filter to the numerator (sum(data.bills)
) and not to the denominator?