cross sum calc field
Posted: Fri Oct 17, 2014 9:26 am
i have a cross table report.
the cross row is product item,the cross column is date.the cross sum value is the product qty and amount.
i need to calc the item's average price.like sum(amount)/sum(qty)
the format like this
product name date
qty price amount
2014-09 2014-10
product1 100 100 10000 110 100 11000
my data like this
product name date qty amount
product1 2014-09 50 5500
product1 2014-09 50 4500
product1 2014-10 100 10000
product1 2014-10 10 1000
how should i get the price in the cross table?
the cross row is product item,the cross column is date.the cross sum value is the product qty and amount.
i need to calc the item's average price.like sum(amount)/sum(qty)
the format like this
product name date
qty price amount
2014-09 2014-10
product1 100 100 10000 110 100 11000
my data like this
product name date qty amount
product1 2014-09 50 5500
product1 2014-09 50 4500
product1 2014-10 100 10000
product1 2014-10 10 1000
how should i get the price in the cross table?