Copyright 2007, Information Builders. Slide 1 FOR and the FML Syntax Noreen Redden Information Builders FOCUS Users of New England
Dec 26, 2015
Copyright 2007, Information Builders. Slide 1
FOR and the FML Syntax
Noreen ReddenInformation Builders
FOCUS Users of New England
Copyright 2007, Information Builders. Slide 2
Financial ReportingAgenda
General Accounting ConceptsWhy FML?Requirements for Parent-Child ReportingFinancial Report PainterPreparing the DataExamplesQuestions
Copyright 2007, Information Builders. Slide 3
Financial ReportingGeneral 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 ReportingGeneral Accounting Concepts
Total of Debits must equal Total of Credits
Transactions for buying a building:
G/L
Account Description Debit Credit
10005 Building 1,000,000
10001 Cash 200,000
20008 Mortgage 800,000
Copyright 2007, Information Builders. Slide 5
Financial ReportingGeneral 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 ReportingGeneral 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 ReportingWhat’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 LedgerFree 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 ReportingRequirements 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 ReportingRequirements 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 ReportingMaster 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 ReportingParent-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 ReportingHierarchy Examples
Chart of AccountsACCOUNT ACCOUNT PARENT ACCOUNT CAPTION
1000 Profit Before Tax
2000 1000 Gross Margin
2100 2000 Sales Revenue
2200 2100 Retail Sales
2210 2200 Retail – Television
Organization ChartEmployee ID Manager ID Title
001 CEO
002 001 President
003 002 VP Sales
004 003 Dir East Coast Sales
005 003 Dir West Coast Sales
006 004 NE Sales Manager
Copyright 2007, Information Builders. Slide 14
Financial ReportingThe 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 ReportingThe Painter
Highlight the column, click the For button
then the Matrix tab
Copyright 2007, Information Builders. Slide 16
Financial ReportingThe Painter
This view shows an expanded hierarchyand a section of the report
Copyright 2007, Information Builders. Slide 17
Financial ReportingChildren/Consolidate Options
You open the tag dialog by right-clicking on a row and selecting row properties
Copyright 2007, Information Builders. Slide 18
Financial ReportingChildren/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 ReportingAdding 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 ReportingRECAP
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 ReportingRECAP (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 21002000 ____1000 ____
Retail Sales 21002000 22001000 ____
Retail TV Sales 21002000 22001000 2210
Retail Stereo Sales 21002000 22001000 2220
Mail Order Sales 21002000 23001000 ____
Mail Order TV Sales 21002000 23001000 2310
Mail Order St Sales 21002000 23001000 2320
Operating Expenses ____3000 ____1000 ____
Selling Expenses 31003000 ____1000 ____
Advertising 31003000 31101000 ____
Description Lev 3Lev 2 Lev 4Lev 1 Lev 5 Description ChildParent
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
1000
2000
2100
2200
2200
2100
2300
2300
1000
3000
3100
1000
2000
2100
2200
2210
2220
2300
2310
2320
3000
3100
3110
Financial ReportingPreparing the data
Source – Level Based Hierarchy Output – Parent/Child
Copyright 2007, Information Builders. Slide 23
Financial ReportingPreparing 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 filenamePRINT/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 ReportingSyntax
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 ReportingSyntax
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 ReportingSyntax
Copyright 2007, Information Builders. Slide 27
PIN REPORTSTO TITLE FULLNAME --- --------- ----- -------- 000000010 000000040 MARKETING EXECUTIVE VALINO, DANIEL 000000020 000000340 INDUSTRIAL MARKETER BELLA, MICHAEL 000000030 000000050 SALES MANAGER CASSANOVA, LOIS 000000040 000000200 MARKETING DIRECTOR ADAMS, RUTH 000000050 000000200 EXECUTIVE MANAGER ADDAMS, PETER 000000060 000000200 MARKETING DIRECTOR PATEL, DORINA 000000070 PRESIDENT SANCHEZ, EVELYN 000000080 000000340 SENIOR SALES EXEC. SO, PAMELA 000000090 000000250 EMPLOYEE COORDINATOR PULASKI, MARIANNE 000000100 000000370 SUPERVISOR OF AP/AR ANDERSON, TIM 000000110 000000160 PRODUCT DISTRIBUTOR RUSSO, ANTHONY 000000120 000000230 CORPORATE CONSULTANT WANG, KATE 000000130 000000340 MANAGER CVEK, MARCUS 000000140 000000350 MANAGER WHITE, VERONICA 000000150 000000120 SENIOR CONSULTANT WHITE, KARL
Financial ReportingExamples
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 ReportingExamples
Master File Description (Synonym) – USEORG.MAS
Copyright 2007, Information Builders. Slide 29
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN''000000070' ON TABLE SET FORMULTIPLE ONON TABLE NOTOTALON TABLE SET BLANKINDENT ON
Financial ReportingExamples
COUNT SALARY ----- ------ 000000070 1 $83,000.00
Copyright 2007, Information Builders. Slide 30
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN''000000070' OVER'000000080' INDENT 1
Financial ReportingExamples
COUNT SALARY ----- ------ 000000070 1 $83,000.00 000000080 1 $43,400.00
Copyright 2007, Information Builders. Slide 31
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN
Financial ReportingExamples
COUNT SALARY ----- ------ 000000070 1 $83,000.00 000000200 1 $115,000.00 000000230 1 $80,500.00
Copyright 2007, Information Builders. Slide 32
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' GET CHILDREN
Financial ReportingExamples
COUNT SALARY ----- ------ 000000200 1 $115,000.00 000000230 1 $80,500.00
Copyright 2007, Information Builders. Slide 33
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN 2
Financial ReportingExamples
COUNT SALARY ----- ------ 000000070 1 $83,000.00 000000200 1 $115,000.00 000000040 1 $62,500.00 000000050 1 $54,100.00 000000060 1 $55,500.00 000000160 1 $62,500.00 000000270 1 $42,900.00 000000340 1 $58,800.00 000000230 1 $80,500.00 000000120 1 $49,500.00 000000170 1 $30,800.00 000000300 1 $79,000.00
Copyright 2007, Information Builders. Slide 34
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN ALL
Financial ReportingExamples
COUNT SALARY ----- ------000000070 1 $83,000.00 000000200 1 $115,000.00 000000040 1 $62,500.00 000000010 1 $55,500.00 000000310 1 $52,000.00 000000050 1 $54,100.00 000000030 1 $70,000.00 000000190 1 $39,000.00 000000210 1 $43,600.00 000000330 1 $30,500.00 000000360 1 $43,000.00 000000060 1 $55,500.00 000000320 1 $35,200.00 000000160 1 $62,500.00 000000110 1 $19,300.00 000000350 1 $54,100.00 000000140 1 $62,500.00
Copyright 2007, Information Builders. Slide 35
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN ALL ADD
Financial ReportingExamples
COUNT SALARY ----- ------000000070 37 $1,892,900.00 000000200 26 $1,346,600.00 000000040 3 $170,000.00 000000010 1 $55,500.00 000000310 1 $52,000.00 000000050 6 $280,200.00 000000030 1 $70,000.00 000000190 1 $39,000.00 000000210 1 $43,600.00 000000330 1 $30,500.00 000000360 1 $43,000.00 000000060 2 $90,700.00 000000320 1 $35,200.00 000000160 4 $198,400.00 000000110 1 $19,300.00 000000350 2 $116,600.00 000000140 1 $62,500.00
Copyright 2007, Information Builders. Slide 36
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070’ ADD
Financial ReportingExamples
COUNT SALARY ----- ------000000400 37 $1,892,900.00
Copyright 2007, Information Builders. Slide 37
'000000070' WITH CHILDREN ALL
Financial ReportingExamples COUNT SALARY ----- ------000000070 1 $83,000.00 000000200 1 $115,000.00 000000040 1 $62,500.00 000000010 1 $55,500.00 000000310 1 $52,000.00 000000050 1 $54,100.00 000000030 1 $70,000.00 000000190 1 $39,000.00 000000210 1 $43,600.00 000000330 1 $30,500.00 000000360 1 $43,000.00 000000060 1 $55,500.00 000000320 1 $35,200.00 000000160 1 $62,500.00 000000110 1 $19,300.00 000000350 1 $54,100.00 000000140 1 $62,500.00
COUNT SALARY ----- ------000000400 37 $1,892,900.00
'000000070' ADD
Copyright 2007, Information Builders. Slide 38
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN ALL OVER '000000070' ADD ON TABLE SET FORMULTIPLE ON
Financial ReportingExamples
COUNT SALARY ----- ------ 000000070 1 $83,000.00 000000200 1 $115,000.00 000000040 1 $62,500.00 000000010 1 $55,500.00 000000310 1 $52,000.00 000000050 1 $54,100.00 000000030 1 $70,000.00 000000190 1 $39,000.00... 000000100 1 $32,400.00 000000400 1 $26,400.00 000000400 37 $1,892,900.00
Copyright 2007, Information Builders. Slide 39
JOIN PIN IN USEORG TO PIN IN EMPDATA AS J1
TABLE FILE USEORGCOUNT ENTRIES SUM.SALARYFOR 'USEORG.SEG01.PIN' '000000070' WITH CHILDREN ALL AS CAPTION OVER '000000070' ADD AS ’*TOTAL’ ON TABLE SET FORMULTIPLE ON
Financial ReportingExamples
COUNT SALARY ----- ------ SANCHEZ, EVELYN 1 $83,000.00 LASTRA, KAREN 1 $115,000.00 ADAMS, RUTH 1 $62,500.00 VALINO, DANIEL 1 $55,500.00 LIEBER, JEFF 1 $52,000.00 ADDAMS, PETER 1 $54,100.00 CASSANOVA, LOIS 1 $70,000.00 MEDINA, MARK 1 $39,000.00... WANG, JOHN 1 $62,500.00 ANDERSON, TIM 1 $32,400.00 LOPEZ, ANNE 1 $26,400.00 *TOTAL 37 $1,892,900.00
Copyright 2007, Information Builders. Slide 40
SET CNOTATION=EXPLICIT
TABLE FILE GGSALESSUM UNITSACROSS DATECOMPUTE QTRCHG/I8=0; AS 'Quarter Change'FOR REGION'Midwest' LABEL MW OVERRECAP MW(5)=MW(4) - MW(1); OVER'West' LABEL W OVERRECAP W(5)=W(4) - W(1); OVERRECAP COMBTOT/I8=MW + W ; AS 'Total'WHERE DATE GE 19970901END
Financial ReportingExamples
Date 1997/09/01 1997/10/01 1997/11/01 1997/12/01 Quarter Change ------------------------------------------------------------------------- Midwest 40684 39563 35466 44813 4129 West 35030 41930 37298 37294 2264 Total 75714 81493 72764 82107 6393
Copyright 2007, Information Builders. Slide 41
Questions
Thanks for Coming