When we develop sample Excel spreadsheets we use sample data on our development machines. For these spreadsheets to be useful to you, the data connection needs to be changed to point to your database. The steps below outline how to adjust this connection.
- Open the sample file in Excel.
- Click the PowerPivot Ribbon and click Manage (See Notes below for info on PowerPivot availability and activation).
- In the Data Model editor click Existing Connections
- On the Existing Connections dialog, click Edit.
- On the Edit Connection dialog, use the Server Name drop down to select your Microsoft SQL Server Instance. If you do not know your server name, you can find this in Comsense Advantage by clicking Help > About Comsense Advantage listed as SQL Server Instance.
- When you change the Server Name the Database name will clear out. Use the Database Name drop down to select ComsenseDataWarehouse.
- Click Save
- Click Close on the Existing Connections dialog.
- Click the drop down under Refresh and click Refresh All.
- The Data Refresh dialog will appear and show you progress. Click Close when complete.
- Close the PowerPivot for Excel editor to return to Excel, using either File > Close or click the X in the upper right corner of the window.
- Save the Excel spreadsheet.
- To refresh the data in the spreadsheet in the future, simply click Refresh All on the Data Ribbon in Excel.
Only certain editions of Excel include the PowerPivot feature see this article on PowerPivotPro for more info.
To enable the Excel PowerPivot feature see Microsoft's instructions here.
If you receive an error attempting to refresh connect or refresh the data, see the article Installing SQL Client Libraries for help.