I recently had to manually convert SQL query into Crystal Reports field formula. Since it's my first encounter with CR, I picked VB syntax for the formula.
I know the formula itself is correct. My problem is that I don't know how to accummulate the values returned by the formula for each customer_id - in my report in the detail line I get only the last (or first?) value returned for each individual customer_id, and not the sum for the given customer_id
I know there should be an easy two-step fix, either by redefining variable or by some other trick.
The formula is similar to the one given below, except it's way more twisted.
=== cut ===
Dim x
x= IIf({Table.Field1} + {Table.Field2}=0, {Table.Field3},{Table.Field4})
formula=x
=== cut ===
Please help me figure out how to accumulate values returned for each individual customer_id. Putting sum(...) does not work.
I know the formula itself is correct. My problem is that I don't know how to accummulate the values returned by the formula for each customer_id - in my report in the detail line I get only the last (or first?) value returned for each individual customer_id, and not the sum for the given customer_id
I know there should be an easy two-step fix, either by redefining variable or by some other trick.
The formula is similar to the one given below, except it's way more twisted.
=== cut ===
Dim x
x= IIf({Table.Field1} + {Table.Field2}=0, {Table.Field3},{Table.Field4})
formula=x
=== cut ===
Please help me figure out how to accumulate values returned for each individual customer_id. Putting sum(...) does not work.