The type of funnel ghaph or funnel is designed to represent a series of values where each individual value presents a percentage of the total.

1 Example

This example shows the total sales by country and year

You see the parameterization of the box:



  1. Selector type of Funnel graph.
  2. Column of the sentence with value to be displayed, in this case the country country.
  3. Filter by combo of the column The_year and thus be able to filter the graph by years.
  4. SQL statement to execute:
Copy
<select>
    <columns>
        YEAR(invoicedate) <alias name='the_year' />,
        customer.country, 
        SUM(invoice.total) total
    </columns>    
    <from table='invoice'>                    
        <join table='customer'>
            <on>invoice.customerid = customer.customerid</on>		
        </join>	
    </from>
    <group>1,2</group>
    <order>3 DESC</order>
</select>

* Starting from the table of invoices and grouping by year and country.


5. In the series the column is added ' total'.