Pivot Table changes Averages to Sums after import from TOAD

jrzygrrl

New Member
Joined
Mar 28, 2015
Messages
2
Hello,
I have a pivot table that I want to show averages. I set it up to show everything as averages & save and close the file. I then have an automation that imports new data from TOAD into the file. When I open the file back up, the averages have all been changed to sums AND the Grand Totals on the columns have disappeared. I don't know if it's an excel or a TOAD problem though. Has anyone else had these issues? I should add that if I export the data from Toad into that same spreadsheet (while it's open) I don't encounter these problems.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I'm not familiar with TOAD, but will the workbook you open this pivot table from always be the same workbook?

My initial thought is just to create a brief macro that adjusts the pivot table to your desired settings upon opening, this way every time you open it (regardless of what's being down when it's closed) it'll refresh to your needs when opened.
 
Upvote 0
Might try this, either from an event change within the Sheet itself, or just as a button to refresh the table:

Code:
ActiveSheet.PivotTables("PivotTable1").PivotFields("Count of c").Function = _
        xlAverage
    'Repeat the above code for each column of data

    With ActiveSheet.PivotTables("PivotTable1")
        .ColumnGrand = True: .RowGrand = True
    End With
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top