How can you add certain records that meet a dynamic condition? For example, the user with "ID" = 1
of table "Usuario"
has three purchases in table "Compras"
. This table "Compras"
has three fields: ID_Compra
, ID_Usuario
and Monto_Compra
. How do I do in Crystal Reports to add these three purchases, if there are more than 200 clients and more than 1,000 purchases in my table? How can I group your purchases and not sum up all the fields in the table?
I am using the following formula:
sum({Compras.Monto_Compra})
This formula adds up to more than a thousand purchases in the Compras
table. I see that Crystal Reports has the option of conditional sums, but I have not found examples of use.