Hi Experts,
I'm working with Visual Basic 2013, MySQL, Sap Crystal Reports and connection with ODBC, I already made a couple of reports successfully, but now I'm trying to make another report but I can't find a way to do it.
Table: temporal1
Key Fecha City Office Docto_A Docto_B Docto_C Total
0001 2016-03-15 Los Angeles Sede 256 111 12 10,000.00
0002 2016-03-15 Los Angeles Sede Mat 125 114 12 13,000.00
0003 2016-03-15 Los Angeles Sede Vesp 130 87 12 14,500.00
0004 2016-03-15 Los Angeles CSR1 478 121 12 9,200.00
0005 2016-03-15 Los Angeles CSR2 201 67 12 17,600.00
0006 2016-03-15 Los Angeles CSR3 995 402 12 4,500.00
0006 2016-03-15 Chicago Sede 916 402 12 4,500.00
0006 2016-03-15 Chicago CSR1 985 402 12 4,500.00
0006 2016-03-15 Houston Sede 995 409 12 4,500.00
As you see, I have six rows with City = Angeles and different office each one.
What I need is to to make a formula or a query in Formula Workshop Editor of Crystal Reports to show only one line per City on the report like this:
RME Sedes CSR's Total
Los Angeles 859 2,300 3,159
Chicago 1,330 1,399 2,729
Houston 1,416 0 1,416
Sedes is the sum of (Docto_a, Docto_B and Docto_C) of (Sede + Sede Mat + Sede Vesp)
CSR's is the sum of (Docto_a, Docto_B and Docto_C) of (CSR1 + CSR2 + CSR3)
Total is the sum of (Sedes + CSR's)
I hope you guys can help me on this report and Thank you so much in advance