Guest_imported
New member
- Jan 1, 1970
- 0
Here is the records got from table. I want sub totals to be calculated for in exams, out exams, in patients and out patients. I have written the desired result for sub totals. I am getting the details part correctly but 'am not able to figure out how to get this sub totals.
techid techtype examid patientid
----------------------------------
71010 OP 4539 693
J0151 IP 2020 696
J0151 IP 4494 1245
J1245 OP 2160 693
J1245 OP 4214 693
W4144 IP 4312 895
W4144 IP 4494 1169
W4144 OP 4214 693
W4144 IP 1748 693
techtype 'ip' ==> in patient/ exams
techtype 'op' ==> out patient/ exams
inex ==> in exams
outex ==> out exams
inpat ==> in patients
outpat ==> out patients
desired report ==>
techid inex outex totex inpat outpat totpat
-----------------------------------------------
71010 0 1 1 0 1 1
j0151 2 0 2 1 0 2
j1245 0 2 2 0 1 1(693 is one patient)
w4144 3 1 4 3 1 3
-----------------------------------------
subtotals:5 4 9 4 3 7
Pl. tell me how to get this sub totals. I tried with running sub totals by using formula option but couldn't get the desired sub totals. Can't we add running subtotal field again in running subtotal. Thanks in advance.
techid techtype examid patientid
----------------------------------
71010 OP 4539 693
J0151 IP 2020 696
J0151 IP 4494 1245
J1245 OP 2160 693
J1245 OP 4214 693
W4144 IP 4312 895
W4144 IP 4494 1169
W4144 OP 4214 693
W4144 IP 1748 693
techtype 'ip' ==> in patient/ exams
techtype 'op' ==> out patient/ exams
inex ==> in exams
outex ==> out exams
inpat ==> in patients
outpat ==> out patients
desired report ==>
techid inex outex totex inpat outpat totpat
-----------------------------------------------
71010 0 1 1 0 1 1
j0151 2 0 2 1 0 2
j1245 0 2 2 0 1 1(693 is one patient)
w4144 3 1 4 3 1 3
-----------------------------------------
subtotals:5 4 9 4 3 7
Pl. tell me how to get this sub totals. I tried with running sub totals by using formula option but couldn't get the desired sub totals. Can't we add running subtotal field again in running subtotal. Thanks in advance.