Percentages without mapColumn #36906
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
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
The text was updated successfully, but these errors were encountered: