-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eCommerce demo percentages are not between 0 and 100% #47831
Comments
I believe that the following expression would address the above issue:
|
Pinging @elastic/kibana-canvas (Team:Canvas) |
Page 2 of the eCommerce workpad has the same issue |
Note that the original query and the fix that I proposed above both give inaccurate results, as they only pull 1000 documents back from Elasticsearch and then leverage the browser to compute the numerator and denominator based on those 1000 documents. If more accurate results are desired, then the example could be written as follows which uses elasticsearch to provide an accurate count for the numerator and denominator:
I'd like to remove the filters from in front of the 2nd essql statement, but this breaks the statement -- and so I have instead added a fake filter that should never impact the data |
That seems to be a counter intuitive way to compute metrics. What about implementing the concept of local/global variables ? Global to the canvas, or local to the element. It would simplify a lot this kind of basic computation. |
Kibana 7.4:
Describe the bug:
The eCommerce kibana demo shows "percentages" that do not make sense such as 522% and 478%. After looking at the expression, I believe this is related to the update to esdocs default number of documents returned (see update: #41604)
Steps to reproduce:
Open the demo and look at the numbers beside the MALE and FEMALE pants drawing.
Expected behavior:
Percentages between 0 and 100%.
Screenshots (if relevant):
The text was updated successfully, but these errors were encountered: