[Lens] Math operation in formula nulls if any of the operations has null
results
#140829
Labels
enhancement
New value added to drive a business result
Feature:Lens
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Describe the bug:
When using Lens formula with a math operation, if any of the operators has a null result, that leads to a
null
the entire formula.For instance, the following formula will be given a lower result (
null
) compared to a subset of it without the math operation:Here you can compare with the
average(bytes, kql='geo.dest: "US"')
counter part (column 3 of the table):Expected behavior:
I can consider two expected behaviour here:
0
in case ofnull
for any operatornull
values to a given value (default( 0, average(bytes, kql='geo.dest: "US"')) + ...
)The text was updated successfully, but these errors were encountered: