Focal Point
Matrix/financial modeling code problem

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8611048331

March 15, 2005, 06:02 PM
Vickie
Matrix/financial modeling code problem
Below is the beginning part of a table detailing typical financial statement data items belonging to a number of fkfindatadateid's (join field).

FILE=FINDATA , SUFFIX=SQLMSS ,$
SEGNAME=FINDATA , SEGTYPE=S0 ,$
FIELD=FKFINDATADATEID ,fkFinDataDateID,
P19 ,P10 ,MISSING=OFF,$
FIELD=AUDITEDSTMT ,AuditedStmt,
I11 ,I4 ,MISSING=OFF,$
FIELD=NETSALES ,NetSales,
D20.2 ,D8 ,MISSING=ON ,$
FIELD=REVENUE ,Revenue,
D20.2 ,D8 ,MISSING=ON ,$

Profit, loss, expenses, etc., etc., etc.....


I process a number of joins to link a company name to its financial dates and financial data. The financial data tracks back several years by quarter.

I am attempting to use financial modeling language, or matrix type code - to insert recaps, bars, row to row, column to column calcs, etc, to display a typical income statement. My spreadsheet details across: FY 12 mos, trailing 12 months, then each of the 4 qtrs, going back 4 years in each grouping.

Typical code is:

TABLE FILE LEDGER
SUM AMOUNT FOR ACCOUNT
1010 AS 'CASH ON HAND' OVER
1020 AS 'DEMAND DEPOSITS' OVER
1030 AS 'TIME DEPOSITS' OVER
BAR OVER
RECAP TOTCASH = R1 + R2 + R3;
END

I cannot figure out how to get all my data items referenced into a single field, ie 'ACCOUNT' above. Also, how do I reference 'AMOUNT'? I do know that the magic word 'FOR' controls the processing.

I have tried using defines to accomplish this, but seem to go around in circles. The 'ACCOUNT' items have the same names as where my dollar values lie.

Any help would be appreciated, thank you...vickie