hi Folks
Got a dilemma. I have a chart of accounts (LinkID) and 3 tables with YTD figures in them (linked together with matching linkID). I want to show Gross profit as a single entry under Cost of Goods sold instead of as another column.
I am attempting to replicate David Churchward's rather excellent looking formulas for creating a P&L (and failing so far)
Profit & Loss–The Art of the Cascading Subtotal « PowerPivotPro
He said that it's a many to many relationship - therefore I assume I'll have to create some sort of linking tables which I've tried to do
I've got a chart of accounts (that contains information about revenues/assets etc).
Then I have created another table (using the LinkID) field
called Heading1Link (which has a linkID,Account name,Heading1 Code). This is linked to the Chart of Accounts using the LinkID.
Then I've created another table which has his cascading subtotals. It looks like this..(that is linked via the Heading1_code).
[TABLE="width: 501"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Heading_1_name[/TD]
[TD]Heading_1_Code[/TD]
[TD]Heading_1_Summary[/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGS[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Cost[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]EBITDA[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Depreciation[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Net Interest Payable[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Profit on sale of assets[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Net Profit before Tax[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Asset[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Liability[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Share Capital and Reserves[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Now my question is this...I have created the measure as he suggested..my YTD numbers are from one of the three tables. i.e.'TB_Oct-14'[_Nov_14_YTD_Act] but I keep getting either no numbers at all. Or a message that I need a relationship. I'm now getting googly eyed looking at it so I'd really appreciate some insight..
IF(
COUNTROWS(VALUES(Heading_1_One[Heading_1_name]))= 1,
CALCULATE
(
'TB_Oct-14'[_Nov_14_YTD_Act],
ALL(Heading_1_One[Heading_1_name]),
Heading_1_One[Heading_1_Code] < VALUES(Heading_1_One[Heading_1_Code] )),
BLANK()
)
Thank you
Got a dilemma. I have a chart of accounts (LinkID) and 3 tables with YTD figures in them (linked together with matching linkID). I want to show Gross profit as a single entry under Cost of Goods sold instead of as another column.
I am attempting to replicate David Churchward's rather excellent looking formulas for creating a P&L (and failing so far)
Profit & Loss–The Art of the Cascading Subtotal « PowerPivotPro
He said that it's a many to many relationship - therefore I assume I'll have to create some sort of linking tables which I've tried to do
I've got a chart of accounts (that contains information about revenues/assets etc).
Then I have created another table (using the LinkID) field
called Heading1Link (which has a linkID,Account name,Heading1 Code). This is linked to the Chart of Accounts using the LinkID.
Then I've created another table which has his cascading subtotals. It looks like this..(that is linked via the Heading1_code).
[TABLE="width: 501"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Heading_1_name[/TD]
[TD]Heading_1_Code[/TD]
[TD]Heading_1_Summary[/TD]
[/TR]
[TR]
[TD]Revenue[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]COGS[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Gross Profit[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Cost[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]EBITDA[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Depreciation[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Net Interest Payable[/TD]
[TD="align: right"]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Profit on sale of assets[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Net Profit before Tax[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Asset[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Liability[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Share Capital and Reserves[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Now my question is this...I have created the measure as he suggested..my YTD numbers are from one of the three tables. i.e.'TB_Oct-14'[_Nov_14_YTD_Act] but I keep getting either no numbers at all. Or a message that I need a relationship. I'm now getting googly eyed looking at it so I'd really appreciate some insight..
IF(
COUNTROWS(VALUES(Heading_1_One[Heading_1_name]))= 1,
CALCULATE
(
'TB_Oct-14'[_Nov_14_YTD_Act],
ALL(Heading_1_One[Heading_1_name]),
Heading_1_One[Heading_1_Code] < VALUES(Heading_1_One[Heading_1_Code] )),
BLANK()
)
Thank you