Hi there! This is my first post and I am new on Crystal Reports.
I need your help on this:
I have
fields:
tableA.id (number)
tableA.date
tableA.qtyproduct (number)
tableA.year
tableB.id
tableB.date
tableB.condition (delivered, partial_delivered)
tableB.year
Relations: id=id, year=year (RIGHT JOIN)
I want to sum all qtyproducts with condition "delivered". I grouped by tableB.date, by quarter and month inside quarter. I tryed a formula:
if {tableB.condition} = "delivered"
then {tableA.qtyproduct}
else 0
and I place it in the detail section, then I summarized it and... I got the sum of tableA.qtyproduct that do not meet the condition "delivered".
What is wrong?
Eg:
tableA.qtyproduct = 1 -- delivered
= 2 -- partial delivery
After the formula, I got 2 instead 1.
Would you please help me?
Thank you very, very much! (and thanks for the forum, it is great!
)