Good Morning!!
I currently am using Access 2003 vba to export data to an excel pivot table via automation. The table creation works great - and I have added a column to the end of the table to calculate percentages on 2 of the rows (it looks like this):
ClosedBy (All)
Closed (All)
Count of TRRID Timely
OpenMonthYear No Yes Grand Total Percent Worked Timely
04-Apr-2011 1 1 100%
05-May-2011 194 3176 3370 94%
06-Jun-2011 147 2537 2684 95%
07-Jul-2011 307 1613 1920 84%
Grand Total 648 7327 7975 92%
The problem is, since I am creating the last column in code with the percentages, if the user tries to manipulate the data in the pivot table, the percentages go away.
I haven't worked much with pivot tables, so don't know if there is a way to have a percentage column actually calculate accordingly in the pivot table? if there is a way to do it, I imagine I can program it (just need to figure out how ) I don't think adding the column to the query in access would work, as I don't believe it exports the formulas -( I could be wrong ) so that won't work. Anyone have any ideas?
THANK YOU!!!!
I currently am using Access 2003 vba to export data to an excel pivot table via automation. The table creation works great - and I have added a column to the end of the table to calculate percentages on 2 of the rows (it looks like this):
ClosedBy (All)
Closed (All)
Count of TRRID Timely
OpenMonthYear No Yes Grand Total Percent Worked Timely
04-Apr-2011 1 1 100%
05-May-2011 194 3176 3370 94%
06-Jun-2011 147 2537 2684 95%
07-Jul-2011 307 1613 1920 84%
Grand Total 648 7327 7975 92%
The problem is, since I am creating the last column in code with the percentages, if the user tries to manipulate the data in the pivot table, the percentages go away.
I haven't worked much with pivot tables, so don't know if there is a way to have a percentage column actually calculate accordingly in the pivot table? if there is a way to do it, I imagine I can program it (just need to figure out how ) I don't think adding the column to the query in access would work, as I don't believe it exports the formulas -( I could be wrong ) so that won't work. Anyone have any ideas?
THANK YOU!!!!