Guys, another fix for datasweet-formula in Table visualization:
When creating a table split by some kind of bucket, adding a formula metric and selecting Calculate metrics for every bucket/level in options, Kibana shows this error:
To fix this, I created a AggConfigs.toDsl decorator that removes undefinedvalues from dsl object and also added a columnGroup config in the response. This is the final result:
The column group config is needed in order to calculate the formulas separately!
This fix was tested in 6.1.1 version only. If you have any suggestion or change requests, please let me know!
Guys, another fix for
datasweet-formula
in Table visualization:When creating a table split by some kind of bucket, adding a formula metric and selecting
Calculate metrics for every bucket/level
in options, Kibana shows this error:To fix this, I created a
AggConfigs.toDsl
decorator that removesundefined
values fromdsl
object and also added acolumnGroup
config in the response. This is the final result:The column group config is needed in order to calculate the formulas separately!
This fix was tested in
6.1.1
version only. If you have any suggestion or change requests, please let me know!