Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 8,147 of 9,834    |
|    Liz McGuire to Jeanette    |
|    Re: PLEASE HELP with CALC for MIN & MAX    |
|    12 Feb 07 10:48:53    |
      From: liz@paradoxcommunity.com              I don't know how else to explain it. 198 excludes the start date from       the calculation. 90 and 107 exclude two start dates from the       calculation. If you want to exclude the start date, I reckon you'll       have to:              a) use the min start and max end - gets you 198              OR              b) count how many rows there are for the given street, sum the two       ranges and add n-1, where n is the number of rows.              Or something.              Liz                     Jeanette wrote:       > Helpful but...       > the idea is to get a daily cost and project it given the BGN & END dates       > and then the amounts should roll up to the original StreetCost.       >       > It's not happening if I use 199 days for the example below.       > HOWEVER if the BGN & END dates were not broken up by a RptYear the TNOD would       > be 198 and that allows an accurate rollup to the StreetCost BUT as (END-BGN).       >       > AND using dates 1/15/06 thru 2/1/06 and 9/15/05 thru 12/31/05 for 2 seperate       > streets (END-BGN)+1 does not allow an accurate rollup to the StreetCost -       > it does if (END-BGN)is used...       >       > WHAT TO DO ????       >       >       >       >       > "Liz McGuire" |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca