Hi i got a DW that retrieves data from orders-orders details table.
DW works in this way:
Detail band: nothings is showed but retrieve all details from orders= product, units, price
- In this band i got a computed field (units_nogifts) that says: If (price > 0, units, 0) >> this is because we just want to know how many units of products that they are not gifts.
Group 2 - group by master order = client, order code, total prize, shipping, etc..
- In the header of this group i got 3 computed fields:
(double_order) ; If (sum (units_nogifts for group 2) = 2, 1, 0)
(triple_order) ; If (sum (units_nogifts for group 2) = 3, 1, 0)
(bigger_order) ; If (sum (units_nogifts for group 2) = 4, 1, 0)
-Group 1 - group by Payment Methods (credit card - bank transfer....)
- In the trailer of this band i got 3 computed fields:
Sum( | double_order for group 1) -> just for kwowing how many double order threre are for each payment method |
Sum( | triple_order for group 1) |
Sum( | bigger_order for group 1) |
- In summary i got 3 computed field:
Sum( | double_order for group all) -> just for kwowing total of double orders threre are |
Sum( | triple_order for group all) |
Sum( | bigger_order for group all) |
Problem is that computed fields that sum(double_order).....in trailer of group 1 and summry dont calculate rigth values.
In fact i dont know whats the final sum that show.
Id like to know if i can do that in the way, maybe it's not possible make sum from computed fields placed in group headers.
Any advice?
thanks in advance