Copyright 2007, Information Builders. Slide 1 FOR and the FML Syntax Noreen Redden Information Builders FOCUS Users of New England
Copyright 2007, Information Builders. Slide 2 Financial Reporting Agenda General Accounting Concepts Why FML? Requirements for Parent-Child Reporting Financial Report Painter Preparing the Data Examples Questions
Copyright 2007, Information Builders. Slide 3 Financial Reporting General Accounting Concepts Creating specific types of reports (eg. Income Statement, Balance Sheet) The rows on Financial reports are made up of General Ledger Accounts with measurement values (eg. Actual, Plan, Forecast) General Ledger contains Account transactions (eg. Debit/Credit entries) Chart of Accounts is the G/L Account hierarchy
Copyright 2007, Information Builders. Slide 4 Financial Reporting General Accounting Concepts Total of Debits must equal Total of Credits Transactions for buying a building: G/L AccountDescriptionDebitCredit Building 1,000, Cash 200, Mortgage 800,000
Copyright 2007, Information Builders. Slide 5 Financial Reporting General Accounting Concepts Chart of Accounts Assets Current Assets Cash Long Term Assets Building Liabilities Long Term Liabilities Mortgage Payable
Copyright 2007, Information Builders. Slide 6 Financial Reporting General Accounting Concepts The signs of the numbers may be negative for certain types of accounts Revenue Liability Stockholder’s Equity However, they need to be presented as non-negative numbers on the report
Copyright 2007, Information Builders. Slide 7 Financial Reporting What’s the difference In Typical Reporting: Report Lines appear in Sort Order Lines Appear Only for values retrieved from File Free Text can only be inserted on Sort Breaks Inter-Row calculations can only be performed at Sort Breaks (RECAP)
Copyright 2007, Information Builders. Slide 8 What is Financial Reporting? What’s the difference In Financial Reporting: Specific Report Lines can be placed anywhere on the page – regardless of sort sequence Report Lines can appear in report regardless on whether there is any Amount in the General Ledger Free Text can be inserted on any line of the page Inter-Row calculations can performed simply Complex formatting
Copyright 2007, Information Builders. Slide 9 Financial Reporting Requirements for Parent-Child Reporting Graphical representation of the Parent/Child hierarchy Each element contains a pointer to the next element.
Copyright 2007, Information Builders. Slide 10 Financial Reporting Requirements for Parent-Child Reporting (cont’d) Hierarchy Requirements Account Code Account Parent Account Description Usually requires an additional process to create this structure New structure is then joined to the data to be reported upon
Copyright 2007, Information Builders. Slide 11 Financial Reporting Master File Keywords REFERENCE=fieldname Where fieldname identifies FIELDNAME within the Master File that contains the Child value. PROPERTY=PARENT_OF Marks the fieldname as containing the Parent value of the field identified in the REFERENCE attribute PROPERTY=CAPTION Marks the field as containing the Description value of the field identified in the REFERENCE attribute
Copyright 2007, Information Builders. Slide 12 Financial Reporting Parent-Child Rules Each parent must be stored as a child A child may have only one parent Top level must point to a blank parent Child and parent fields must have the same format If you qualify the field names in the references, you MUST use those referenced field names in the request
Copyright 2007, Information Builders. Slide 13 Financial Reporting Hierarchy Examples Chart of Accounts ACCOUNTACCOUNT PARENTACCOUNT CAPTION 1000Profit Before Tax Gross Margin Sales Revenue Retail Sales Retail – Television Organization Chart Employee IDManager IDTitle 001CEO President VP Sales Dir East Coast Sales Dir West Coast Sales NE Sales Manager
Copyright 2007, Information Builders. Slide 14 Financial Reporting The Painter Starting a Financial Report In the Report Painter: Add the fields you want to include in the report, including the field that you intend to designate as your FOR field The FOR field is the field that contains the Child account value You can include BY and/or Across sort fields Headings, footings,calculated values, and images are usable Select the field that you want to use as the FOR field, and click the For button on the Report Painter Columns toolbar Report can only contain one FOR field Click the Matrix tab at the bottom of the window The Financial Report Painter's Design matrix opens
Copyright 2007, Information Builders. Slide 15 Financial Reporting The Painter Highlight the column, click the For button then the Matrix tab
Copyright 2007, Information Builders. Slide 16 Financial Reporting The Painter This view shows an expanded hierarchy and a section of the report
Copyright 2007, Information Builders. Slide 17 Financial Reporting Children/Consolidate Options You open the tag dialog by right-clicking on a row and selecting row properties
Copyright 2007, Information Builders. Slide 18 Financial Reporting Children/Consolidate Options (cont’d) With Children Shows a total for the groups parent at the start of each grouping Get Children Shows the figures for children of that entry. Additional groups would appear as above. Consolidate Instructs WebFOCUS to calculate a total for each of the parent entries or the specific parent.
Copyright 2007, Information Builders. Slide 19 Financial Reporting Adding Rows Together You can also create dynamic hierarchies using FML. In this example, we create a report showing totals by the existing hierarchy and a proposed hierarchy.
Copyright 2007, Information Builders. Slide 20 Financial Reporting RECAP You open the recap dialog by either right- clicking on a row or clicking on the tool bar
Copyright 2007, Information Builders. Slide 21 Financial Reporting RECAP (cont’d) You can also create recaps by clicking on a cell, then, while holding down the shift key, you can drag a reference to that cell elsewhere. Note, that by default, a “+” is used. You can change that to whatever you need it to be.
Copyright 2007, Information Builders. Slide 22 Net Profit____ 1000____ Gross Margin____2000____1000____ Sales Revenue ____1000____ Retail Sales ____ Retail TV Sales Retail Stereo Sales Mail Order Sales ____ Mail Order TV Sales Mail Order St Sales Operating Expenses____3000____1000____ Selling Expenses ____1000____ Advertising ____ DescriptionLev 3Lev 2Lev 4Lev 1Lev 5DescriptionChildParent Net Profit Gross Margin Sales Revenue Retail Sales Retail TV Sales Retail Stereo Sales Mail Order Sales Mail Order TV Sales Mail Order St Sales Operating Expenses Selling Expenses Advertising Financial Reporting Preparing the data Source – Level Based Hierarchy Output – Parent/Child
Copyright 2007, Information Builders. Slide 23 Financial Reporting Preparing the data (cont’d) FILENAME=ACCTLVL, SUFFIX=FOC, $ SEGMENT=ACCTLVL,SEGTYPE=S1, $ FIELDNAME=FOCLIST, ALIAS=E01, USAGE=I5, $ FIELDNAME=ACCT_LVL1, ALIAS=E02, USAGE=A4, $ FIELDNAME=ACCT_LVL2, ALIAS=E03, USAGE=A4, $ FIELDNAME=ACCT_LVL3, ALIAS=E04, USAGE=A4, $ FIELDNAME=ACCT_LVL4, ALIAS=E05, USAGE=A4, $ FIELDNAME=ACCT_LVL5, ALIAS=E06, USAGE=A4, $ FIELDNAME=ACCT_LVL6, ALIAS=E07, USAGE=A4, $ FIELDNAME=DESCR, ALIAS=E08, USAGE=A44,$ FILENAME=ACCTPC, SUFFIX=FOC, $ SEGMENT=ACCTPC, SEGTYPE=S1, $ FIELDNAME=DESCRIPTION, ALIAS=E01, USAGE=A44, REFERENCE=CHILD_ACCOUNT, PROPERTY=CAPTION,$ FIELDNAME=PARENT_ACCOUNT, ALIAS=E02, USAGE=A4, REFERENCE=CHILD_ACCOUNT, PROPERTY=PARENT_OF,$ FIELDNAME=CHILD_ACCOUNT, ALIAS=E03, USAGE=A4, $
Copyright 2007, Information Builders. Slide 24 TABLE FILE filename PRINT/SUM FOR hierarchyfld parentvalue GET/WITH CHILD(REN) (n) ALL AS CAPTION/’text’ LABEL label … hierarchyfld the hierarchy field name or, field name from the host file(JOIN) parentvalue the parent value for which the children are to be retrieved Financial Reporting Syntax
Copyright 2007, Information Builders. Slide 25 parentvalue GET/WITH CHILD(REN) (n) ALL AS CAPTION/’text’ LABEL label GET CHILDREN displays the hierarchy starts with the first child of the parent value does NOT include the parent in the display … WITH CHILDREN displays the hierarchy starts with the first child of the parent value DOES include the parent in the display (n) ALL Integer value from 1 to 99 How many levels of the hierarchy to display Warning message if 999 levels are exceeded ALL is a synonym for up to 99 levels Levels of the hierarchy are indented at each level Financial Reporting Syntax
Copyright 2007, Information Builders. Slide 26 parentvalue GET/WITH CHILD(REN) (n) ALL AS CAPTION/’text’ LABEL label CAPTION The caption value to display Taken from the CAPTION field in the Master File Description ‘text’ A text string which will be used for the Row Title Does NOT use the CAPTION field, if used LABEL Regular FML syntax – assigns an explicit row label Financial Reporting Syntax
Copyright 2007, Information Builders. Slide 27 PIN REPORTSTO TITLE FULLNAME MARKETING EXECUTIVE VALINO, DANIEL INDUSTRIAL MARKETER BELLA, MICHAEL SALES MANAGER CASSANOVA, LOIS MARKETING DIRECTOR ADAMS, RUTH EXECUTIVE MANAGER ADDAMS, PETER MARKETING DIRECTOR PATEL, DORINA PRESIDENT SANCHEZ, EVELYN SENIOR SALES EXEC. SO, PAMELA EMPLOYEE COORDINATOR PULASKI, MARIANNE SUPERVISOR OF AP/AR ANDERSON, TIM PRODUCT DISTRIBUTOR RUSSO, ANTHONY CORPORATE CONSULTANT WANG, KATE MANAGER CVEK, MARCUS MANAGER WHITE, VERONICA SENIOR CONSULTANT WHITE, KARL Financial Reporting Examples Hierarchy sample data
Copyright 2007, Information Builders. Slide 28 FILENAME=ORGCHART, SUFFIX=FOC, $ SEGMENT=SEG01, SEGTYPE=S1, $ FIELDNAME=PIN, ALIAS=E01, USAGE=A9, FIELDTYPE=I, $ FIELDNAME=REPORTSTO, ALIAS=E02, USAGE=A9, PROPERTY=PARENT_OF,REFERENCE=PIN,$ FIELDNAME=TITLE, ALIAS=E03, USAGE=A20,$ FIELDNAME=FULLNAME, ALIAS=E04, USAGE=A50, PROPERTY=CAPTION,REFERENCE=PIN,$ Financial Reporting Examples Master File Description (Synonym) – USEORG.MAS
Copyright 2007, Information Builders. Slide 29 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' ON TABLE SET FORMULTIPLE ON ON TABLE NOTOTAL ON TABLE SET BLANKINDENT ON Financial Reporting Examples COUNT SALARY $83,000.00
Copyright 2007, Information Builders. Slide 30 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' OVER ' ' INDENT 1 Financial Reporting Examples COUNT SALARY $83, $43,400.00
Copyright 2007, Information Builders. Slide 31 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN Financial Reporting Examples COUNT SALARY $83, $115, $80,500.00
Copyright 2007, Information Builders. Slide 32 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' GET CHILDREN Financial Reporting Examples COUNT SALARY $115, $80,500.00
Copyright 2007, Information Builders. Slide 33 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN 2 Financial Reporting Examples COUNT SALARY $83, $115, $62, $54, $55, $62, $42, $58, $80, $49, $30, $79,000.00
Copyright 2007, Information Builders. Slide 34 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN ALL Financial Reporting Examples COUNT SALARY $83, $115, $62, $55, $52, $54, $70, $39, $43, $30, $43, $55, $35, $62, $19, $54, $62,500.00
Copyright 2007, Information Builders. Slide 35 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN ALL ADD Financial Reporting Examples COUNT SALARY $1,892, $1,346, $170, $55, $52, $280, $70, $39, $43, $30, $43, $90, $35, $198, $19, $116, $62,500.00
Copyright 2007, Information Builders. Slide 36 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ’ ADD Financial Reporting Examples COUNT SALARY $1,892,900.00
Copyright 2007, Information Builders. Slide 37 ' ' WITH CHILDREN ALL Financial Reporting Examples COUNT SALARY $83, $115, $62, $55, $52, $54, $70, $39, $43, $30, $43, $55, $35, $62, $19, $54, $62, COUNT SALARY $1,892, ' ' ADD
Copyright 2007, Information Builders. Slide 38 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN ALL OVER ' ' ADD ON TABLE SET FORMULTIPLE ON Financial Reporting Examples COUNT SALARY $83, $115, $62, $55, $52, $54, $70, $39, $32, $26, $1,892,900.00
Copyright 2007, Information Builders. Slide 39 JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1 TABLE FILE USEORG COUNT ENTRIES SUM.SALARY FOR 'USEORG.SEG01.PIN' ' ' WITH CHILDREN ALL AS CAPTION OVER ' ' ADD AS ’*TOTAL’ ON TABLE SET FORMULTIPLE ON Financial Reporting Examples COUNT SALARY SANCHEZ, EVELYN 1 $83, LASTRA, KAREN 1 $115, ADAMS, RUTH 1 $62, VALINO, DANIEL 1 $55, LIEBER, JEFF 1 $52, ADDAMS, PETER 1 $54, CASSANOVA, LOIS 1 $70, MEDINA, MARK 1 $39, WANG, JOHN 1 $62, ANDERSON, TIM 1 $32, LOPEZ, ANNE 1 $26, *TOTAL 37 $1,892,900.00
Copyright 2007, Information Builders. Slide 40 SET CNOTATION=EXPLICIT TABLE FILE GGSALES SUM UNITS ACROSS DATE COMPUTE QTRCHG/I8=0; AS 'Quarter Change' FOR REGION 'Midwest' LABEL MW OVER RECAP MW(5)=MW(4) - MW(1); OVER 'West' LABEL W OVER RECAP W(5)=W(4) - W(1); OVER RECAP COMBTOT/I8=MW + W ; AS 'Total' WHERE DATE GE END Financial Reporting Examples Date 1997/09/ /10/ /11/ /12/01 Quarter Change Midwest West Total
Copyright 2007, Information Builders. Slide 41 Questions Thanks for Coming