Overview
This article explains how to connect Microsoft Excel to your Cloud Cruiser database with a join of two views that enable you to analyze charge data.
To connect Excel 2010
- Launch Excel and create a new blank workbook.
- Click Data > Get External Data > From Other Sources > From Microsoft Query.
- Double-click <New Data Source>.
- In the Create New Data Source dialog box, give your new data source a name and select the SQL Server driver, then click Connect.
The SQL Server Login dialog box appears. - In the Server field, enter the network computer name of the computer hosting the Cloud Cruiser database.
- Deselect Use Trusted Connection and enter Cloud Cruiser’s database username as the Login ID.
This is the Application User that you entered on the Database Settings page of the Cloud Cruiser installer. The default Application User is ccadmin
. If you do not know this username and its password, ask your database administrator to provide them to you or to create another account with read access to the Cloud Cruiser database. - Enter the password for that user, then click Options.
- Select the ccdb database, then click OK twice to close both the SQL Server Login and Create New Data Source dialog boxes.
- In the Choose Data Source dialog box, select your new data source and click OK.
- In the Query Wizard dialog box, select the ReportAccountStruct0 view from the list of available tables without expanding it, then click the arrow to move all of its columns into your query. Do the same with the ReportSummary view and click Next.
The ReportAccountStruct0
view contains data about customer accounts based on the full account structure. If you want to view data in Excel based on an alternate account view you have created, instead select the ReportAccountStruct<view_ID>
database view where <view_ID>
is the numeric account structure ID. - If you receive an error message saying that you must join tables manually, click OK to dismiss it.
- In the top pane of the query window, drag the Account UID column of one view onto the Account UID column of the other view.
This joins the two views, creating a combined record of values from each wherever the Account UID in one view matches an Account UID in the other. - Choose File > Return Data to Microsoft Excel.
- In the Import Data dialog box, choose PivotTable Report and click OK.
It might take some time for Excel to load the data from this query. - Click Analyze > Relationships to define how to join the summary data to hierarchical account IDs and descriptions.
- In the Manage Relationships dialog box, click New.
- In the Create Relationship dialog box, make the following selections:
- Table:ReportSummary
- Column (Foreign): Account UID
- Related Table: ReportAccountStruct0
- Related Column (Primary): Account UID
- Click OK and then close the Manage Relationships dialog box.
You now have a PivotTable based on a join of charge summaries and account information. For instructions for using this table to analyze your data, see Analyzing charge data.
To connect Excel 2013
- Launch Excel and create a new blank workbook.
- Click Data > Get External Data > From Other Sources > From SQL Server.
The Data Connection Wizard opens. - In Server name, enter the network computer name of the computer hosting the Cloud Cruiser database.
- Select Use the following User Name and Password and enter the user name and password of the Cloud Cruiser database account, then click Next.
This is the Application User and Password that you entered on the Database Settings page of the Cloud Cruiser installer. The default Application User is ccadmin
. If you do not know these credentials, ask your database administrator to provide them to you or to create another account with read access to the Cloud Cruiser database. - Select the ccdb database.
- Select the Enable selection of multiple tables option, then select the following views from the list:
- ReportSummary
- ReportAccountStruct0
The ReportAccountStruct0
view contains data about customer accounts based on the full account structure. If you want to view data in Excel based on an alternate account view you have created, instead select the ReportAccountStruct<view_ID>
database view where <view_ID>
is the numeric account structure ID.
- Click Finish.
- In the Import Data dialog box, choose PivotTable Report and click OK.
It might take some time for Excel to load the data from this query. - Click Analyze > Relationships to define how to join the summary data to hierarchical account IDs and descriptions.
- In the Manage Relationships dialog box, click New .
- In the Create Relationship dialog box, make the following selections:
- Table:ReportSummary
- Column (Foreign): Account UID
- Related Table: ReportAccountStruct0
- Related Column (Primary): Account UID
This joins the two views, creating a combined record of values from each wherever the Account UID in one view matches an Account UID in the other.
- Click OK and then close the Manage Relationships dialog box.
You now have a PivotTable based on a join of charge summaries and account information. For instructions for using this table to analyze your data, see Analyzing charge data.