I’m trying to get a value from a report set based on linear interpolation. For example if you create a report using eFasion with Week and Sales Revenue, then create a RunningSum function for the Sales Revenue, you’ll get results like this:
Week Sales revenue Accum
1.00 $503,580 $503,580
2.00 $847,028 $1,350,608
...
11.00 $743,874 $8,437,948
12.00 $752,468 $9,190,416
13.00 $861,213 $10,051,629
...
My need would be similar to trying to determine the exact point (linearly interpolated week) at which the cumulative sales hit $10M, which can be defined as:
10M Week = ((10000000 - {ACCUM_UNDER_10M}) / ({ACCUM_OVER_10M} - {ACCUM_UNDER_10M})) * ({WEEK_OVER_10M} - {WEEK_UNDER_10M}) + {WEEK_UNDER_10M}
Where
{ACCUM_UNDER_10M} = Highest accumulated sales revenue under 10M
{WEEK_OVER_10M} = Corresponding week
{ACCUM_OVER_10M} = Lowest accumulated sales revenue over 10M
{WEEK_UNDER_10M} = Corresponding week
The value ends up being 12.94005 in this case.
The problem I have lies with Reporter’s limitations when trying to define the nearest cumulative revenue and corresponding weeks to the $10M mark. Doing functions like =Max() Where ( < 10000000 ) results in syntax errors.
Anyone know how to get around Reporter’s limitations here? I’m running v6.1b. Thanks.
paulmaric (BOB member since 2004-02-09)