I'm trying to generate the following output:
| type | totals | 
|---|---|
| CostA | 1500 | 
| CostB | 200 | 
| CostC | 300 | 
From a table with this structure:
CostA
CostB
CostC
name
date
-- more columns ...
The table has more columns but I want the sum for only 3 of them.
I need this structure specifically because superset expects a structure like this to generate some charts.
Any idea?
 
     
     
    