I want to use custom sql metric in Apache Superset Big Number visualization type. I want to use metric like: SUM(col_name)/2700000.0, but it doesn't work.
I tried SUM(col_name) and it works. I have tried also SUM(col_name)/COUNT(col_name) and this also works.
Metric I am trying to use: SUM(col_name)/2700000.0
I expect the metric to be working, but instead I am getting error:
ORA-00904: "col_name": invalid identifier
When I am clicking on hamburger icon and view query I can see:
SELECT SUM(col_name)/2700000.0
FROM
(SELECT SUM(col_name)/2700000.0 AS "SUM(col_name)/2700000.0"
FROM mytable
ORDER BY SUM(col_name)/2700000.0 DESC)
WHERE ROWNUM <= 50000;