update approach and date range
This commit is contained in:
parent
c9d87ffccb
commit
df12babf00
@ -1,10 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
baseline - selections from actual, plan, and forecast
|
establish an existing forecast to operate on top of
|
||||||
incr - increment selection from baseline
|
update to refrect actuals with a diff as an iteration
|
||||||
incoming - baseline & incr stacked
|
create and additional to remove pull-forward as actuals flow in
|
||||||
negative - apply negative values to existing baseline to create a diff
|
|
||||||
diff - stack incoming and the negative
|
|
||||||
collapse_diff - group the diff to create single diff rows per item
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -21,9 +18,9 @@ CREATE TEMP TABLE tdr AS (
|
|||||||
-----------actuals into baseline-------------------------------------
|
-----------actuals into baseline-------------------------------------
|
||||||
DATERANGE('2020-06-01','2021-07-07','[]') arange
|
DATERANGE('2020-06-01','2021-07-07','[]') arange
|
||||||
-----------plan into baseline----------------------------------------
|
-----------plan into baseline----------------------------------------
|
||||||
,DATERANGE('2021-07-08','2022-06-01','[)') prange
|
,DATERANGE('2021-06-01','2022-06-01','[)') prange
|
||||||
-----------forecast into baseline------------------------------------
|
-----------forecast into baseline------------------------------------
|
||||||
,DATERANGE('2022-06-01','2022-06-01','[)') frange
|
,DATERANGE('2022-06-01','2022-06-01','[)') frange -- this range effectively excludes
|
||||||
-----------baseline selection for increment--------------------------
|
-----------baseline selection for increment--------------------------
|
||||||
,DATERANGE('2021-07-08','2021-07-08','[)') selection
|
,DATERANGE('2021-07-08','2021-07-08','[)') selection
|
||||||
-----------selection increment size----------------------------------
|
-----------selection increment size----------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user