Support for Complex Formulas #138670
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
8.3.2
Elasticsearch version:
8.3.2
Server OS version:
docker running on Oracle Linux Server 8.6
Browser version:
Brave 1.42.88
Original install method (e.g. download page, yum, from source, etc.):
docker-compose
Describe the bug:
Not sure if this a bug or feature request.
Running formulas on the y-axis does not appear to be running on all filtered data, and therefore not sorting properly. And since the formula is not processing all data, it sorts not on the y-axis, but the x-axis (ie. the first ip in alphanumeric order).
So I'm importing Tenable.io information, and I'm trying to create a vertical bar graph, with ip as the x-axis, and sort on highest "weighted" score for vulnerability severity using this formula:
((sum(vpr.score, kql='vpr.score >= 9') * 0.40) + (sum(vpr.score, kql='vpr.score >= 7 and vpr.score < 9') * 0.15) + (sum(vpr.score, kql='vpr.score >= 4 and vpr.score < 7') * 0.05)) / ((count(kql='vpr.score >= 9') * 0.40) + (count(kql='vpr.score >= 7 and vpr.score < 9') * 0.15) + (count(kql='vpr.score >= 4 and vpr.score < 7') * 0.05))
Excel equivalent:
=SUMPRODUCT("severity_score","appropriate weight percentage")/SUM("sum of weight percentages")
The text was updated successfully, but these errors were encountered: