Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3
Default Removing Legacy Data from a PivotChart report


I have a pivot chart report which pulls its source data from SQL
Server database. I have created a copy of this file to point to a
different SQL Server (exact same tables). When I refresh the report,
the chart and pivot are refreshed correctly from the new server.
However the original data still remains (as well as the new data) in
the drop down selection box for the columns.

i.e.
the chart is showing ExecuteDate in the ROW area, JobName in the
COLUMN area and the number of minutes each job ran each day as the
DATA. The graph plots each job showing the duration over the last 30
days.

In the JobName dropdown, I can see all of the jobs from the original
SQL Server, as well as the second one.
In reality I have copied this file over 5 servers, so I have lots of
redundant data I can't seem to remove!!

How can I clear this out?

Thanks, Ben.

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Removing Legacy Data from a PivotChart report

Hi,

Have a read of Debra Dalgleish's page.
http://www.contextures.com/xlPivot04.html

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
wrote in message
ups.com...

I have a pivot chart report which pulls its source data from SQL
Server database. I have created a copy of this file to point to a
different SQL Server (exact same tables). When I refresh the report,
the chart and pivot are refreshed correctly from the new server.
However the original data still remains (as well as the new data) in
the drop down selection box for the columns.

i.e.
the chart is showing ExecuteDate in the ROW area, JobName in the
COLUMN area and the number of minutes each job ran each day as the
DATA. The graph plots each job showing the duration over the last 30
days.

In the JobName dropdown, I can see all of the jobs from the original
SQL Server, as well as the second one.
In reality I have copied this file over 5 servers, so I have lots of
redundant data I can't seem to remove!!

How can I clear this out?

Thanks, Ben.


  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3
Default Removing Legacy Data from a PivotChart report

Excellent.. And to truly show my lack of knowledge in Excel
programming, can a sort function be added to that macro?



On Mar 29, 9:45 pm, "Andy Pope" wrote:
Hi,

Have a read of Debra Dalgleish's page.http://www.contextures.com/xlPivot04.html

Cheers
Andy
--

Andy Pope, Microsoft MVP - wrote in message

ups.com...

e drop down selection box for the columns.




  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,489
Default Removing Legacy Data from a PivotChart report

Not sure what it is you want to sort.

You could try using the macro recorder whilst you do the sorting and then
see if it works when added.

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
wrote in message
ups.com...
Excellent.. And to truly show my lack of knowledge in Excel
programming, can a sort function be added to that macro?



On Mar 29, 9:45 pm, "Andy Pope" wrote:
Hi,

Have a read of Debra Dalgleish's
page.http://www.contextures.com/xlPivot04.html

Cheers
Andy
--

Andy Pope, Microsoft MVP -
wrote in
message

ups.com...

e drop down selection box for the columns.





  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3
Default Removing Legacy Data from a PivotChart report


I was hoping to sort the data in the PivotField dropdowns. The macro
in Debra Dalgleish's example works a treat, though I'd like to sort
the list of items as well as remove redundant items..?


On Mar 30, 7:02 pm, "Andy Pope" wrote:
Not sure what it is you want to sort.

You could try using the macro recorder whilst you do the sorting and then
see if it works when added.

Cheers
Andy

--




  #6   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,979
Default Removing Legacy Data from a PivotChart report

It depends which code you're using, but if it's the version for Excel
2000, you can add a line to set the AutoSort, e.g.

For Each pf In pt.VisibleFields
pf.AutoSort xlAscending, pf.SourceName


wrote:
I was hoping to sort the data in the PivotField dropdowns. The macro
in Debra Dalgleish's example works a treat, though I'd like to sort
the list of items as well as remove redundant items..?


On Mar 30, 7:02 pm, "Andy Pope" wrote:

Not sure what it is you want to sort.

You could try using the macro recorder whilst you do the sorting and then
see if it works when added.

Cheers
Andy

--





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Excel report to place certain data into existing report? Craig Harrison Excel Worksheet Functions 3 July 25th 06 01:54 PM
I cannot get my pivotchart to filter data the way I want jpgrimes22 Charts and Charting in Excel 0 July 13th 06 08:34 PM
How do I not lose formarting when I refresh a PivotChart Report? jpgrimes22 Charts and Charting in Excel 1 July 11th 06 10:33 PM
Time scale axis should be available in PivotChart Report. vertblancrouge Charts and Charting in Excel 1 April 11th 05 01:42 AM
Time scale axis should be available in PivotChart Report. vertblancrouge Charts and Charting in Excel 0 April 7th 05 09:43 PM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"