GM Excel Crew,
I am having trouble and I need some expert advice. I am recreating a PnL statement using a Pivot table. It gives me lots of flexibility for my needs for analysis. However, there is one problem that is driving me nuts. In this PnL there are lets say 50 accounts. Of course its broken out in Expenses, Rev etc. However here is my issue. In the data table, I have 2 columns, one is the account name and number and a second column for its bucket. Like the example below
[TABLE="width: 532"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]FULL ACCOUNT NAME[/TD]
[TD]ACCOUNT NUMBER[/TD]
[/TR]
[TR]
[TD] 100000 External salesroduct[/TD]
[TD]100000 RPT[/TD]
[/TR]
[TR]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD]100070 RPT[/TD]
[/TR]
[TR]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD]110000 RPT[/TD]
[/TR]
</tbody>[/TABLE]
So then I roll this into a pivot table:
[TABLE="width: 777"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]* External Product Quantity[/TD]
[TD] 100000 External salesroduct[/TD]
[TD="align: right"]7,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD="align: right"]2,000[/TD]
[/TR]
[TR]
[TD]* External Product Quantity Total[/TD]
[TD] [/TD]
[TD="align: right"]9,000[/TD]
[/TR]
[TR]
[TD]* Internal Product Quantity[/TD]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD="align: right"]11,000[/TD]
[/TR]
[TR]
[TD]* Internal Product Quantity Total[/TD]
[TD] [/TD]
[TD="align: right"]20,000[/TD]
[/TR]
</tbody>[/TABLE]
Looks Great but I need to add one more line which I am using the Calculated Field via item to add the two Totals above together (Named * Product Quantity) . Here's the rub. When I do that my results look like this below. In a nut shell, it is including all the other accounts. I don't understand why its doing this. I only want to show what that I specifically put to the formula. What am I missing?
[TABLE="width: 777"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]* Product Revenue[/TD]
[TD] 100000 External salesroduct[/TD]
[TD="align: right"]7,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD="align: right"]2,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD="align: right"]11,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 132000 Proceeds on sale: operating noncurr[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 132099 Proceeds on sale: operating noncurr[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 142000 Net gain on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 142099 Net gain on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 145800 Other non trading revenue, external:[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 152000 Proceeds on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 152099 Book value of op non curr assets dis[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 172000 Net loss on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 172099 Net loss on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 185000 Discount received from vendors[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 185500 Underages and overages[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 195800 Other non trading expenses TD[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202001 GRIR write-off to P&L[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202012 Raw material inventory quantity chan[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202018 Spares,stores & proc matl inventory[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202020 Fuel Inventory Quantity Change[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 203002 Raw Materials: Variances Price Relat[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
I am having trouble and I need some expert advice. I am recreating a PnL statement using a Pivot table. It gives me lots of flexibility for my needs for analysis. However, there is one problem that is driving me nuts. In this PnL there are lets say 50 accounts. Of course its broken out in Expenses, Rev etc. However here is my issue. In the data table, I have 2 columns, one is the account name and number and a second column for its bucket. Like the example below
[TABLE="width: 532"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]FULL ACCOUNT NAME[/TD]
[TD]ACCOUNT NUMBER[/TD]
[/TR]
[TR]
[TD] 100000 External salesroduct[/TD]
[TD]100000 RPT[/TD]
[/TR]
[TR]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD]100070 RPT[/TD]
[/TR]
[TR]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD]110000 RPT[/TD]
[/TR]
</tbody>[/TABLE]
So then I roll this into a pivot table:
[TABLE="width: 777"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]* External Product Quantity[/TD]
[TD] 100000 External salesroduct[/TD]
[TD="align: right"]7,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD="align: right"]2,000[/TD]
[/TR]
[TR]
[TD]* External Product Quantity Total[/TD]
[TD] [/TD]
[TD="align: right"]9,000[/TD]
[/TR]
[TR]
[TD]* Internal Product Quantity[/TD]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD="align: right"]11,000[/TD]
[/TR]
[TR]
[TD]* Internal Product Quantity Total[/TD]
[TD] [/TD]
[TD="align: right"]20,000[/TD]
[/TR]
</tbody>[/TABLE]
Looks Great but I need to add one more line which I am using the Calculated Field via item to add the two Totals above together (Named * Product Quantity) . Here's the rub. When I do that my results look like this below. In a nut shell, it is including all the other accounts. I don't understand why its doing this. I only want to show what that I specifically put to the formula. What am I missing?
[TABLE="width: 777"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]* Product Revenue[/TD]
[TD] 100000 External salesroduct[/TD]
[TD="align: right"]7,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 100070 Transport Brokerage Revenue[/TD]
[TD="align: right"]2,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 110000 Internal sales product:w/in legal entity[/TD]
[TD="align: right"]11,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 132000 Proceeds on sale: operating noncurr[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 132099 Proceeds on sale: operating noncurr[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 142000 Net gain on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 142099 Net gain on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 145800 Other non trading revenue, external:[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 152000 Proceeds on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 152099 Book value of op non curr assets dis[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 172000 Net loss on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 172099 Net loss on sale: operating oth NCA[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 185000 Discount received from vendors[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 185500 Underages and overages[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 195800 Other non trading expenses TD[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202001 GRIR write-off to P&L[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202012 Raw material inventory quantity chan[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202018 Spares,stores & proc matl inventory[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 202020 Fuel Inventory Quantity Change[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD] 203002 Raw Materials: Variances Price Relat[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]