CR 8.5
INTERBASE
I'm having an issue with running totals using distinct counts. I am writing a report that includes running totals based on freight bill numbers in order to find the number of shipments per customer in our database for a selected year (parameter). I have created a RT for the entire year as well as RT's for each month, but the totals never match.
HERE IS MY RUNNING TOTAL FOR THE ENTIRE YEAR:
Name: #bill count
Field to Summarize: {TLORDER.BILL_NUMBER}
Type of Summary
istinct Count
Evalute X-2 = year({TLORDER.BILL_DATE}) = {?year}
{?year} being a parameter
Reset on change of group
Placed in GF1
HERE'S MY RUNNING TOTAL FOR EACH MONTH:
for january:
Name:jan
Field to Summarize: {TLORDER.BILL_NUMBER}
Type of Summary
istinct Count
Evalute X-2 = month({TLORDER.BILL_DATE}) = 1 and
year(({TLORDER.BILL_DATE}) = {?year}
Reset on change of group
Placed in GF1
The other 11 months are done in the same exact way and here is what the data looks like:
TOTAL JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC
5140 787 445 421 289 332 425 282 386 548 495 300 440
Let me do the math for you:
The total for all 12 months added up is 5150 distinct records, but the total for the year is only 5140. This is my issue. I have double-checked my work and my totals should match theoretically.
Has anyone encountered this kind of problem before or have any explanation on why this occurs? Any feedback is greatly appreciated. Thanks
the shtinkster
INTERBASE
I'm having an issue with running totals using distinct counts. I am writing a report that includes running totals based on freight bill numbers in order to find the number of shipments per customer in our database for a selected year (parameter). I have created a RT for the entire year as well as RT's for each month, but the totals never match.
HERE IS MY RUNNING TOTAL FOR THE ENTIRE YEAR:
Name: #bill count
Field to Summarize: {TLORDER.BILL_NUMBER}
Type of Summary
Evalute X-2 = year({TLORDER.BILL_DATE}) = {?year}
{?year} being a parameter
Reset on change of group
Placed in GF1
HERE'S MY RUNNING TOTAL FOR EACH MONTH:
for january:
Name:jan
Field to Summarize: {TLORDER.BILL_NUMBER}
Type of Summary
Evalute X-2 = month({TLORDER.BILL_DATE}) = 1 and
year(({TLORDER.BILL_DATE}) = {?year}
Reset on change of group
Placed in GF1
The other 11 months are done in the same exact way and here is what the data looks like:
TOTAL JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC
5140 787 445 421 289 332 425 282 386 548 495 300 440
Let me do the math for you:
The total for all 12 months added up is 5150 distinct records, but the total for the year is only 5140. This is my issue. I have double-checked my work and my totals should match theoretically.
Has anyone encountered this kind of problem before or have any explanation on why this occurs? Any feedback is greatly appreciated. Thanks
the shtinkster