Skip to content
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

Percentages without mapColumn #36906

Closed
shaunmcgough opened this issue May 22, 2019 · 3 comments
Closed

Percentages without mapColumn #36906

shaunmcgough opened this issue May 22, 2019 · 3 comments
Labels
enhancement New value added to drive a business result Feature:Canvas impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@shaunmcgough
Copy link

Canvas could benefit from allowing a user to easily obtain a percentage by comparing two fields. Right now, you have to use mapColumn to do this, such as:

filters
| essql
query="SELECT count(distinct foo_uuid) as foo_total FROM "bar" WHERE count > 0"
| mapColumn name="foos"
expression={filters | essql query="SELECT count(distinct foo_uuid) as foo FROM "bar" WHERE count > 3" | math "foo"}
| math "foo/foo_total"
| formatNumber "0,.0%"
| metric ""
metricFont={font family="'Open Sans', Helvetica, Arial, sans-serif" size=36 align="center" color="#000000" weight="normal" underline=false italic=false}
labelFont={font size=14 family="'Open Sans', Helvetica, Arial, sans-serif" color="#000000" align="center"}
| render

@shaunmcgough shaunmcgough added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label May 22, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@shaunmcgough shaunmcgough added the enhancement New value added to drive a business result label Jun 4, 2019
@wylieconlon
Copy link
Contributor

This is closely related to #28265 #36193 #20515

@timductive timductive added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label Aug 15, 2019
@Heenawter
Copy link
Contributor

Closing for now - there is a workaround for this feature (using mapColumn, as mentioned), and adding extra expressions and/or UI for this does not currently fit in to our Canvas roadmap. We can reopen if our priorities change 👍

@Heenawter Heenawter closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Canvas impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

6 participants