Relationships at Database Layer

Total Page:16

File Type:pdf, Size:1020Kb

Relationships at Database Layer

F.M Model – database layer F_CST_NFM_Branch_Month represents the raw table in the database.

There are 3 identifiers (Skey’s) and the measure in Number_of_Customers_Ex_12_NP

No filters or determinants defined. Relationships at database layer

Business Layer Transformer Model The measure ‘Number of Customers ex 12 NP’ is directly defined for the first two dimensions and allocated for the others.

For measure ‘Actual GBP’ it is directly defined for all dimensions except Budget version. See diagram below.

So on my crosstab report, when I try to do: Actual / Number of Customers (column) by Cost Centre (rows) it double counts where there is a set. Report Output

Column 2 (per customer) has a hardcoded value and both columns 1 and 2 display the output except when it comes to Total Expenses.

Column 3 (average year) doubles up where there is a set expression in the rows and as a result column is wrong Report XML

/content/package[@name='Cost_Reporting']/model[@name='2011- 12-05T11:10:08.889Z']

< /crosstab>

< crosstabColumns>

Cost Reporting Please select a Currency:LocalGBP< defaultSimpleSelection>Local
children([Cost_Reporting].[All Dates].[Last Year].[Last Year]->:[PC].[@MEMBER].[Last Year])average([Number of customers ex 12 NP] within set (descendants ([Last Year], 2)))[Cost_Reporting].[All Org Structures].[All Org Structures].[Company_Code]- >:[PC].[@MEMBER].[POL]POL - Poland[Cost_Reporting].[All Org Structures]All Org Structures[Cost_Reporting].[All Org Structures].[All Org Structures]All Org Structures[Cost_Reporting].[Measures]. [Actual]Actual[Cost_Reportin g]. [Measures]Measures[Cost_Reporting].[Measures].[Actual GBP]Actual GBP[Cost_Reporting]. [Measures]Measures#sb('Actual ' + prompt('p_Measure', 'token', 'Local'))# [Cost_Reporting].[Measures].[Non_Financial Measures].[Number of customers ex 12 NP]Number of customers ex 12 NP[Cost_Reporting]. [Measures]Measurestuple([Actual GBP], [Aggregate(Expense_Category)]) / 749196tuple([Actual GBP], [Aggregate(Expense_Category)]) / [Average Year][Cost_Reporting].[Measures].[Non_Financial Measures].[Total Employees]Total Employees[Cost_Reporting]. [Measures]Measures[Cost_Reporting]. [Measures]Measures_round (tuple([Actual GBP], [Aggregate(Expense_Category)]) / [Total Employees], 0)[Cost_Reporting]. [Measures]Measures_round (tuple([Actual GBP], [Aggregate(Expense_Category)]) / 1287.18, 0)[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expenseschildren([Cost_Reporting].[All Expenses].[All Expenses].[All Expenses]->:[PC].[@MEMBER]. [Expense_Skey])[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expensesset([Cost_Reporting].[All Expenses].[All Expenses]. [Expense_Category]->:[PC].[@MEMBER].[Revenue], [Cost_Reporting].[All Expenses].[All Expenses]. [Expense_Category]->:[PC].[@MEMBER].[Impairment], [Cost_Reporting].[All Expenses].[All Expenses]. [Expense_Category]->:[PC].[@MEMBER].[Collecting Commission], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Code]->:[PC].[@MEMBER].[Intercompany administration fees], [Cost_Reporting]. [All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Interest], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[FX Gains/Losses], [Cost_Reporting]. [All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Option Fee/Guarantee Fee], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Royalty & Service Fee], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC]. [@MEMBER].[Default Fees], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->: [PC].[@MEMBER].[Dividends], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->: [PC].[@MEMBER].[CIT])[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expensesexcept([Expense_Categories], [Excluded Expense_Categories])aggregate(currentMeasure within set [Expense_Category])[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expenses[Cost_Reporting].[All Dates]All Dates[Cost_Reporting].[All Dates].[All Dates]All Datesaggregate(currentMeasure within set [Head Office])[Cost_Reporting].[All Cost Centres].[All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Marketing - Lead Origination]Marketing - Lead Origination[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Call Centre - Front Line]Call Centre - Front Line[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centresset([Cost_Reporting].[All Cost Centres].[All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Marketing - Retention], [Cost_Reporting].[All Cost Centres].[All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Call Centre - Telesales])[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centresaggregate (currentMeasure within set ([Marketing - Retention & Call Centre - Telesales]))[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]. [Sub_Cost_Centre]->:[PC].[@MEMBER].[Call Centre - Soft Collections][Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]. [Cost Centre]->:[PC].[@MEMBER].[Debt Recovery][Cost_Reporting].[All Cost Centres]. [All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Call Centre - Customer Service]Call Centre - Customer Service[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centresset([Cost_Reporting].[All Cost Centres].[All Cost Centres].[Sub_Cost_Centre]->:[PC].[@MEMBER].[Agents/Representatives], [Cost_Reporting].[All Cost Centres].[All Cost Centres].[Cost Centre]->:[PC].[@MEMBER].[Field Management (Ops)])aggregate (currentMeasure within set ([Agents_Field_Ops]))[Cost_Reporting].[All Cost Centres].[All Cost Centres]. [Sub_Cost_Centre]->:[PC].[@MEMBER].[Administration][Administration] - [Administration - H.O][Administration (Not H.O)] + [Agents_Field Ops][Cost_Reporting].[All Cost Centres].[All Cost Centres].[Cost Centre]->: [PC].[@MEMBER].[Health & Safety]Health & Safety[Cost_Reporting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres].[Cost Centre]- >:[PC].[@MEMBER]. [Security]Security[Cost_Repor ting].[All Cost Centres]All Cost Centres[Cost_Reporting].[All Cost Centres].[All Cost Centres]All Cost Centrestuple([Aggregate (H.O)], [Administration])[Cost_Reporting].[All Org Structures].[All Org Structures].[Branch_Bkey]- >:[PC].[@MEMBER].[POL_Provident Polska H.O.][Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expensesset([Cost_Reporting].[All Expenses].[All Expenses]. [Expense_Category]->:[PC].[@MEMBER].[Salaries], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Bonus], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Personnel], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Training], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Recruitment], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[External Personnel Costs], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Travel & Accommodation], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Bank Charges], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Legal & Professional UK driven], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Legal & Professional Locally driven], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Printing & Stationery], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Marketing], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Market Research], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Public Relations], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Rent & Service Charges Head Office], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Rent & Service Charges Field], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Postage], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Telephone], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[IT], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Other], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Depreciation], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Local Sales Tax], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[VAT], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[CZSK Recharge], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER].[Recharges], [Cost_Reporting].[All Expenses].[All Expenses].[Expense_Category]->:[PC].[@MEMBER]. [Development])[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expensesaggregate (currentMeasure within set [Total_Expenses])[Cost_Reporting].[All Expenses]All Expenses[Cost_Reporting].[All Expenses].[All Expenses]All Expensesminimum (currentMeasure within set [Total_Expenses]) [POL - Poland][Last Year]

Recommended publications