Crosstab Average of sums

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
felixfelix
User
Posts: 1

Crosstab Average of sums

Post by felixfelix »

I have sql view like:

item;date;amount;total price

now i need a crosstab report with moth in head and field sum(total price), sum(amount) and a thrid field like sum(total_price)/sum(amount)


arbei
User
Posts: 9384

Post by arbei »

There is no built-in feature to calulate the summary values like sum(total_price)/sum(amount), but since you already have sum(total_price) and sum(amount), you may use Cell_Rendered server event to do the division yourself. Use var_dump() to check the arguments of the server event first.


Post Reply