Difference between revisions of "SME and Excel - Extracting Data in Meaningful ways"

From High5Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
This is the most powerful and flexible way to utilize SME with excel, however takes a bit more effort to setup.
 
This is the most powerful and flexible way to utilize SME with excel, however takes a bit more effort to setup.
  
Excel 2007 onward now has capability to connect directly to SQL Server.  Follow these steps
+
* Open Excel
#        Open Excel 2007 or 2010
+
* Go to the ‘Data’ tab
#        Select Data tab
+
* ‘From Other Sources’
#        Select From Other Sources and select "From SQL Server"
+
* From Microsoft Query
#        Enter your SQL Server instance name  ( see step 5 onward below)
+
<br>[[File:Excel1.png]]<br>
#        Select your SQL database
+
* Choose your Data Source (Contact High5 Software if you need assistance setting up your ODBC connection).
#        Then you will be provided with a list of SME tables to select
+
<br>[[File:Excel2.png]]<br>
##              For Excel 2003:  Select +New SQL Server Connection.odc
+
* Click on the data source and click ok
## [[File:ExcelConnect5.png]]
+
* You will be asked to log in. Put in your SQL password or contact High5 to set one up.
# Enter the Server Name and select Next
+
<br>[[File:Excel3.png]]<br>
## [[File:ExcelConnect6.png]]
+
* Set the options, uncheck all except Tables, set the Owner to ‘dbo’ as it makes finding the tables easier and then choose your columns.
# Select Database and table and select next
+
<br>[[File:Excel4.png]]<br>
## [[File:ExcelConnect7.png]]
+
* I recommend locating the table you are looking for and adding only one column, then editing the query in MS Query and adding the remainder.
# Provide a file name, description and search terms and select Finish
+
<br>[[File:Excel5.png]]<br>
## [[File:ExcelConnect8.png]]
+
* Click ‘Next’ and pick a sort field. It’s better to wait until you edit the query.
# Select a location for the data
+
<br>[[File:Excel6.png]]<br>
# You can also edit the query for the data
+
* Filter Data - It’s better to wait until you edit the query.
## [[File:ExcelConnect9.png]]
+
<br>[[File:Excel7.png]]<br>
# Note: Without editing the query, it will bring in the entire table. Most likely you will only want to bring in specific data
+
* Click ‘View data or edit query in Microsoft Query
# Example: Pull in Customer name, city, state, Contact and email:
+
<br>[[File:Excel8.png]]<br>
## [[File:ExcelConnectA.png]]
+
* The Query Editor opens
#This requires knowledge of SQL.
+
* First step – turn off Auto Query or the query will attempt on every change.
<br>[[File:ExcelConnectB.png]]
+
<br>[[File:Excel9.png]]<br>
#    More complex SQL queries can be performed, please contact your local sql expert.
+
* Show hide Criteria – will be where you limit your query
 +
<br>[[File:Excel10.png]]<br>
 +
* Set your filter criteria:
 +
<br>[[File:Excel11.png]]<br>
 +
* Add fields
 +
<br>[[File:Excel12.png]]<br>
 +
* Sorting
 +
<br>[[File:Excel13.png]]<br>
 +
* Return the data to Excel
 +
<br>[[File:Excel14.png]]<br>
 +
* Pick the row/column for your data.
 +
<br>[[File:Excel15.png]]<br>
 +
* Returned Data
 +
<br>[[File:Excel16.png]]<br>
 +
* To edit the query:
 +
* Right click in the query and select Table> Edit Query from the menu.
  
 
<h3>Outputting search grids to excel</h3>
 
<h3>Outputting search grids to excel</h3>

Revision as of 22:05, 18 February 2020

SME and Excel: Extracting Data in Meaningful ways


Summary:

SME: Service Management Enterprise provides a complete service management solution with complete reporting capabilities. As you know, Excel is a powerful program for data manipulation and reporting. Combining the capabilities of SME and Excel give a powerful way of working with business data.

SME has multiple ways to work with Excel. This document describes the various ways to utilize excel with SME.


Ways of Using Excel with SME:

  1. Connect Excel direct to SQL Server (preferred)
  2. Output search grids to excel
  3. Print out to excel



Connect Excel directly to SQL Server

This is the most powerful and flexible way to utilize SME with excel, however takes a bit more effort to setup.

  • Open Excel
  • Go to the ‘Data’ tab
  • ‘From Other Sources’
  • From Microsoft Query


Excel1.png

  • Choose your Data Source (Contact High5 Software if you need assistance setting up your ODBC connection).


Excel2.png

  • Click on the data source and click ok
  • You will be asked to log in. Put in your SQL password or contact High5 to set one up.


Excel3.png

  • Set the options, uncheck all except Tables, set the Owner to ‘dbo’ as it makes finding the tables easier and then choose your columns.


Excel4.png

  • I recommend locating the table you are looking for and adding only one column, then editing the query in MS Query and adding the remainder.


Excel5.png

  • Click ‘Next’ and pick a sort field. It’s better to wait until you edit the query.


Excel6.png

  • Filter Data - It’s better to wait until you edit the query.


Excel7.png

  • Click ‘View data or edit query in Microsoft Query


Excel8.png

  • The Query Editor opens
  • First step – turn off Auto Query or the query will attempt on every change.


Excel9.png

  • Show hide Criteria – will be where you limit your query


Excel10.png

  • Set your filter criteria:


Excel11.png

  • Add fields


Excel12.png

  • Sorting


Excel13.png

  • Return the data to Excel


Excel14.png

  • Pick the row/column for your data.


Excel15.png

  • Returned Data


Excel16.png

  • To edit the query:
  • Right click in the query and select Table> Edit Query from the menu.

Outputting search grids to excel

The final method is to print a report to Excel.

  • Output search grids to excel:

This is the simplest and quickest way to get data to excel. Any data you can show in an SME search grid can be output to excel. Here is how:

  1. First create the search grid or search view you want. There are many ways to get the grid to show information you want. Follow these steps and options to get the search grid to show what you want
    1. Go to the module you want for information. For example, customers, service orders, invoices, etc.
    2. Select Search
    3. Select Options>Add Fields to Grid to select the information you want in the grid and then in excel.
    4. Arrange the columns how you want by dragging the columns to the appropriate position.
    5. If you want to group item, select the column and drag into the grey area above the columns.
    6. If you want to filter certain data, select the green funnel icon towards the bottom left. This pulls up a filter too to filter on available data.
  2. Next select Options>Export to Excel and select the path and filename for export.
  3. Finally, open the Excel file you created and manipulate data as needed.

Print Report to Excel

All reports can be output as many different types of formats, for example graphic formats, pdf, and Excel.

  1. Select the report you want to output to excel. You can select the reports in Doc Center>Reports or in the individual modules
  2. Select print
  3. Towards the bottom, select Print to File
  4. Select Excel File
  5. Select the location and name of the file to export