INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,
TIMEBALANCE,SKIP,UDA,FORMULA,COMMENT_ESSBASE)
VALUES (100,1,'Measures','Profit','','+','','X','','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,
TIMEBALANCE,SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(200,2,'Profit','Margin','','+','','X','','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(300,3,'Margin','Sales','','+','',
'','','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES (400,4,'Margin','COGS','Cost of Goods Sold','-','','','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(500,5,'Profit','Total Expenses','','-','','X','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(600,6,'Total Expenses','Marketing','','+',
'','','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(700,7,'Total Expenses','Payroll','','+','','','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,
TIMEBALANCE,SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(800,8,'Total Expenses','Misc','Miscellaneous','+',
'','','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(900,9,'Measures','Inventory','','~','','O','','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,
TIMEBALANCE,SKIP,UDA,FORMULA,COMMENT_ESSBASE) VALUES
(1000,10,'Inventory','Opening Inventory','','+','','','E','F','','',
'IF(NOT @ISMBR(Jan)) "Opening Inventory"=@PRIOR("Ending Inventory");ENDIF;"Ending Inventory"="Opening Inventory"+Additions-Sales;','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,SKIP,UDA,FORMULA,
COMMENT_ESSBASE) VALUES (1100,11,'Inventory','Additions','','~','','','E','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,
TIMEBALANCE,SKIP,UDA,FORMULA, COMMENT_ESSBASE) VALUES
(1200,12,'Inventory','Ending Inventory','','~','','','E','L','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,SKIP,UDA,FORMULA,
COMMENT_ESSBASE) VALUES (1300,13,'Measures','Ratios','','~','','O','','','','','','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA, COMMENT_ESSBASE) VALUES
(1400,14,'Ratios','Margin %','','+','T','X','','','','','Margin % Sales;','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA, COMMENT_ESSBASE) VALUES
(1500,15,'Ratios','Profit %','','~','T','X','','','','','Profit % Sales;','');
INSERT INTO MEASURES (SORTKEY,MEASURESID,PARENT,CHILD,MEASURES_ALIAS,
CONSOLIDATION,TWOPASSCALC,STORAGE,VARIANCEREPORTING,TIMEBALANCE,
SKIP,UDA,FORMULA, COMMENT_ESSBASE) VALUES
(1600,16,'Ratios','Profit per Ounce','','~','T','X','','','','',
'Profit/@ATTRIBUTEVAL(Ounces);','');