Solved

Excel Chart and Graph Data

Posted on 2012-03-21
2
441 Views
Last Modified: 2012-03-26
Is it possible to base a chart or graph in Excel off of a SQL Server table and/or SQL Server Procedure?

My boss would like the data NOT to be embedded in a sheet within the document.  I have already offered the common tricks like hiding the sheet, hiding the data, etc.  He basically wants to use some complicated graphs that have already been created, but point them to a different data source.

Thank you
0
Comment
Question by:WEhalt
2 Comments
 
LVL 42

Accepted Solution

by:
dlmille earned 200 total points
ID: 37751147
Excel charts inherently have a SourceData property that must be an Excel range, so "normal" charts require the data to be in the spreadsheet.

I had thought one could create a PivotChart directly from an existing connection, but when I attempted this, it always ended up creating a pivot table of the data, first, which appears to be a non-starter.

You MAY be able to go straight from SQL database table/view to dashboard report/chart using:  PerformancePoint Dashboard Designer or other 3rd party dashboard design software (google dashboard designer).

http://office.microsoft.com/en-us/performancepoint-server/create-a-pivotchart-report-by-using-performancepoint-dashboard-designer-HA010252496.aspx#BM2

Or, if you want to stick with Excel, you could put some VBA together to create a non-visible instance of the data from SQLServer, create the chart, then export that chart to a jpg or other related format, then pull that file up which is just the picture output.  In this instance, the data while pulled into Excel is never seen nor kept in Excel and the hidden process's job is to generate a picture of the chart.

One other less dynamic approach follows a method I used about 20 years ago that is similar.  Generate in a central place all the charts that might be needed, taking snapshots of the charts that you want to distribute via your "Executive Dashboard/Management System".  In this way, no users have access to the data, only the output.  You can generate all this with VBA, and even push the output to a powerpoint file if you wish, or to tabs in an Excel spreadsheet with some type of menu supporting navigation from/to charts.

If you find either of these two last options attractive, I can assist.  They do meet the requirement of the data not being embedded with the charts.

Good luck!

Dave
0
 

Author Closing Comment

by:WEhalt
ID: 37765536
Thank you that answer was superb!  I will share the information with my supervisor and ask I new question if he wants me to pursue this.

Thanks again.
W
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question