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

From High5Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
   
 
   
  
Summary:
+
<h3>Summary:</h3>
  
 
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: 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.
Line 11: Line 11:
 
   
 
   
  
Ways of Using Excel with SME:
+
<h3>Ways of Using Excel with SME:</h3>
  
 +
#    Connect Excel direct to SQL Server (preferred)
 
#    Output search grids to excel
 
#    Output search grids to excel
#    Connect Excel through ODBC or direct to SQL Server
 
 
#    Print out to excel
 
#    Print out 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:
 
 
#    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
 
 
*    Go to the module you want for information.  For example, customers, service orders, invoices, etc.
 
*    Select Search
 
*    Select Options>Add Fields to Grid to select the information you want in the grid and then in excel.
 
*    Arrange the columns how you want by dragging the columns to the appropriate position.
 
*    If you want to group item, select the column and drag into the grey area above the columns.
 
*    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.
 
 
<br>2.    Next select Options>Export to Excel and select the path and filename for export.
 
<br>3.    Finally, open the Excel file you created and manipulate data as needed.
 
  
+
<h3>Connect Excel directly to SQL Server</h3>
 
 
 
 
 
*    Connect Excel through ODBC or direct SQL Server
 
  
 
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 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>
<br>2.   To setup an ODBC connection see [[ODBC Connection]]
+
* 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.
 +
<br>[[File:Excel3.png]]<br>
 +
* Set the options, uncheck all except Tables, set the Owner to ‘dbo’ as it makes finding the tables easier and then choose your columns.
 +
<br>[[File:Excel4.png]]<br>
 +
* 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.
 +
<br>[[File:Excel5.png]]<br>
 +
* Click ‘Next’ and pick a sort field. It’s better to wait until you edit the query.
 +
<br>[[File:Excel6.png]]<br>
 +
* Filter Data - It’s better to wait until you edit the query.
 +
<br>[[File:Excel7.png]]<br>
 +
* Click ‘View data or edit query in Microsoft Query
 +
<br>[[File:Excel8.png]]<br>
 +
* The Query Editor opens
 +
* First step – turn off Auto Query or the query will attempt on every change.
 +
<br>[[File:Excel9.png]]<br>
 +
* Set your filter criteria:
 +
<br>[[File:Excel10.png]]<br>
 +
* Add fields
 +
<br>[[File:Excel11.png]]<br>
 +
* Sorting
 +
<br>[[File:Excel12.png]]<br>
 +
* Return the data to Excel
 +
<br>[[File:Excel13.png]]<br>
 +
* Pick the row/column for your data.
 +
<br>[[File:Excel14.png]]<br>
 +
* Returned Data
 +
<br>[[File:Excel15.png]]<br>
 +
* To edit the query:
 +
* Right click in the query and select Table> Edit Query from the menu.
 +
<br>[[File:Excel16.png]]<br>
  
<br>3.    For Excel 2003:  Select +New SQL Server Connection.odc
+
<h3>Outputting search grids to excel</h3>
 +
The final method is to print a report to Excel.
  
<br>[[File:03000005.png]]
+
*    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:
  
<br>4.Enter the Server Name and select Next
+
#    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
 
+
##    Go to the module you want for information. For example, customers, service orders, invoices, etc.
<br>[[File:03000006.png]]
+
##    Select Search
 
+
##  Select Options>Add Fields to Grid to select the information you want in the grid and then in excel.
<br>5.Select Database and table and select next
+
##    Arrange the columns how you want by dragging the columns to the appropriate position.
<br>[[File:03000007.png]]
+
##    If you want to group item, select the column and drag into the grey area above the columns.
 
+
##    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.
<br>6.Provide a file name, description and search terms and select Finish
+
# Next select Options>Export to Excel and select the path and filename for export.
<br>[[File:03000008.png]]
+
# Finally, open the Excel file you created and manipulate data as needed.
 
 
<br>7.Select a location for the data
 
<br>8.You can also edit the query for the data
 
<br>[[File:03000009.png]]
 
 
 
<br>9.Note: Without editing the query, it will bring in the entire table. Most likely you will only want to bring in specific data
 
 
 
*Example: Pull in Customer name, city, state, Contact and email:
 
#[[File:0300000A.png]]
 
#This requires knowledge of SQL.
 
<br>[[File:0300000B.png]]
 
#   More complex SQL queries can be performed, please contact your local sql expert.
 
 
 
*    The final method is to print a report to Excel.
 
  
 +
<h3>Print Report to Excel</h3>
 
All reports can be output as many different types of formats, for example graphic formats, pdf, and Excel.
 
All reports can be output as many different types of formats, for example graphic formats, pdf, and Excel.
  

Latest revision as of 22:13, 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

  • Set your filter criteria:


Excel10.png

  • Add fields


Excel11.png

  • Sorting


Excel12.png

  • Return the data to Excel


Excel13.png

  • Pick the row/column for your data.


Excel14.png

  • Returned Data


Excel15.png

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


Excel16.png

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