Please use TGML Tag TT when posting sample data and take the time to line up each field properly.
If you do not know what a TGML Tag TT is, then search this page for
TGML and learn how to use some of these basic codes. I am spending too much time trying to PARSE your example data.
ALSO, you did not post data that in any way related to the FIRST example you were acking about -- eliminating the column with ZEROS. Where is THAT Source???
Here's your modified source data; one added column AND rows without AMOUNTS have been DELETED...
[tt]
Month Year AccountingNumber Account Amount AcctCat
12 2007 08210 Equipment 624.29 Exp
12 2007 08210 Labor 182.7 Exp
12 2007 08210 Hauling 13.23 Exp
12 2007 08210 Land Prep 287.56 Exp
1 2008 08210 Equipment 292.69 Exp
1 2008 08210 Fertilizer 400.59 Exp
1 2008 08210 Herbicide 90.44 Exp
1 2008 08210 Insecticides 85.85 Exp
1 2008 08210 Fungicides 452.5 Exp
1 2008 08210 Irrigation 8,581.10 Exp
1 2008 08210 Labor 738.58 Exp
1 2008 08210 Diesel 494 Exp
1 2008 08210 Irrigation Equipment 205.94 Exp
1 2008 08210 Miscellaneous 565.55 Exp
1 2008 08210 Hauling 179.41 Exp
1 2008 08210 Spraying 37.7 Exp
1 2008 08210 Watchmen 328.41 Exp
1 2008 08210 Land Prep 85.32 Exp
1 2008 08210 Trees 6,962.03 Exp
1 2008 08210 Lease Payment 211.46 Exp[/tt]
Here's the PT off this source...
[tt]
Sum of Amount AcctCat Year
Exp
2007 2008
Account 12 1
Diesel 494
Equipment 624.29 292.69
Fertilizer 400.59
Fungicides 452.5
Hauling 13.23 179.41
Herbicide 90.44
Insecticides 85.85
Irrigation 8581.1
Irrigation Equipment 205.94
Labor 182.7 738.58
Land Prep 287.56 85.32
Lease Payment 211.46
Miscellaneous 565.55
Spraying 37.7
Trees 6962.03
Watchmen 328.41
[/tt]
Skip,
Just traded in my old subtlety...
for a NUANCE!![[tongue] [tongue] [tongue]](/data/assets/smilies/tongue.gif)