Posted: 2013-05-14 09:13 |
We were recently asked how to produce a report which shows the revenue generated per Order by specific products. Please see below how to create this report:
'GROUP_CONCAT( order_line_items.product_refcode SEPARATOR ', ' )'
This formula will show all the Products selected within a single Order separated by a comma.
'SUM(IF( order_line_items.product_refcode LIKE 'VOiP%' OR order_line_items.product_refcode LIKE 'SUPPORT%' , order_line_items.document_currency_net_value, 0))'
In non-reporting language, the formula says 'If a product is like 'VOIP%' OR 'SUPPORT%' then give the net value of that line, otherwise 0. Then give the sum of this'. Stating the product is like 'VOIP' or 'SUPPORT' is specific to this example and you would replace this with your own product codes.
You should end up with a report which looks something like the one below (click to enlarge). Here you can see all Orders, the products which are included as Line Items and their combined value. |
Posted: Mon, 12.08.2013 - 09:34 |
In next release of Workbooks, due out in late summer, you can build the same report by undertaking the following steps:
The Details view will now show all Opportunities, each line item and the Product selected, the Net Value of the line item and the Net Value of the Opportunity as a whole. This can built upon using a Summary view to show the specific information we wish to view. To do this:
'GROUP_CONCAT( PARENT('Product') SEPARATOR ', ')'
This formula will show all the Products selected within a single Order separated by a comma. Note, the part highlighted in yellow is simply the 'Product' column from the details view which has been selected using the Formula builder.
'SUM(IF( PARENT('Product') LIKE 'VOiP%' OR PARENT('Product') LIKE 'SUPPORT%', PARENT("Product Revenue"), 0))'
In non-reporting language, the formula says 'If a product is like 'VOIP%' OR 'SUPPORT%' then give the net value of that line, otherwise 0. Then give the sum of this. Stating the product is like 'VOIP' or 'SUPPORT' is specific to this example and you would replace this with your own product codes.
You should end up with a report which looks something like the one below (click to enlarge).
|