Quantcast
Channel: Lync News
Viewing all articles
Browse latest Browse all 4272

Just a Lync Guy: Integrating Lync 2013 Monitoring Data and Excel using Power Pivot

$
0
0

In 2012, Ilse Van Criekinge published a great article on Extending your Lync monitoring data using PowerPivot and Power View. This article included a built-in Excel file that integrated into the Lync Monitoring Data database and allowed you to use Excel Power Pivot to look in into a few reporting examples made by IIse.

Following that blog article, I’d like to show you the process on how exactly you can integrate Excel and the Lync Monitoring data and a few examples of what you can do with that.

Integration:

  1. Open Excel 2013 and enable the PowerPivot Add-in by going to File > Options > Add-Ins.
  2. In the Manage box, click COM Add-ins> Go.
  3. Check the Microsoft Office Power Pivot in Microsoft Excel 2013 box, and then click OK. If you have other versions of the Power Pivot add-in installed, these versions are also listed in the COM Add-ins list. Be sure to select the Power Pivot add-in for Excel 2013.
  4. On the Excel 2013 Ribbon, you should now see PowerPivot display. Click on it and choose Manage on the top left corner of the Ribbon.
    clip_image002
  5. On the Power Pivot for Excel screen that opens, Click on “From Database” and choose “From SQL Server” to load the Table Import wizard which will allow us to import the monitoring data from the databases.
    clip_image004
  6. In the “Table Import Wizard” screen prompt, type the Monitoring SQL Server name (No FQDN is required) and specify the Instance if there is any. If no Instances exist, type the server name only. If the name was entered correctly, you should be able to choose the Database name out of the drop down list below.
    For the example below, I’ve chosen the LcsCDR database, but you can choose any type of database, or alternatively, you can import data out of the Lync Front End Servers such as RTCLOCAL or RTC databases.
    clip_image005
  7. On the “Choose How to Import the Data” screen, choose “Select from a list of table and views to choose the data to import” or if you are familiar enough with SQL queries, choose the second option which will allow you query the databases with your custom queries.
    clip_image006
  8. On the “Select Tables and Views” screen, select the tables you want to query or run the PivotTable/PivotCharts against it. For the examples below, I’ve chosen the following tables:
    1. Users
    2. UserStatistics
    3. VoIP Details View
      clip_image007clip_image008
  9. You can also choose “Select Related Tables” if you want to let the Excel determine the associated tables based on the relationship configured in the SQL databases. Once you’ve selected the tables, click the Finish button to start importing the data.
    clip_image009clip_image010
  10. Once the import is done, the “PowerPivot for Excel” screen will show up and will display all the data imported from the Monitoring databases based on the tables selection.
    clip_image012
  11. In order to perform analysis on the imported data, click the “PivotTable” button and select the type of pivot. In my examples I chose PivotTable and PivotChart.
    clip_image013
  12. Once you’ve selected the PowerPivot option, on the right side of the screen you will be able to choose the Rows and Columns out of the existing tables being imported and also provide with some values and choose different filters for views. More on how to use PivotTable and PivotCharts here.
    clip_image014

Examples

I decided to share 2 examples of usage with data imported from the LcsCDR database, but bear in mind that it’s up to you to decide how you’re going to use it and the options are almost unlimited.

Example #1 – Top 10 PSTN Numbers called from Lync Users

  1. In order to demonstrate this example, choose the following information:
    1. ROWS – [VoIP Details View].[ToPhone]
    2. COLUMNS
    3. FILTERS – [VoIP Details View].[ToUriType] and choose PhoneURI as the filter value in order to count only PSTN numbers as destinations.
    4. VALUES – Count of [VoIP Details View].[ToPhone]
      image
    5. Once you’ve selected the following, you can see on the left side of the screen that the PivotTable is changing accordingly.
    6. In order to select the top 10 and also sort by the Count column, click on the Row Label sort button and choose Value Filters > Top 10
      image
    7. In the Filter screen choose the top 10 out of the “Count of to Phone”:
      image
    8. For sorting, choose “More Sort Options” and choose DescendingCount of ToPhone”:
      imageimage
    9. The result should be similar to that:
      image
    10. Another great options, is also adding some Data Slicers, those can be helpful, for instance adding timeline slicer to filter the amount on calls per Months/Quarters/Years. To do so, choose the PivotTables Analyze Ribbon and select Insert Timeline:
      image
    11. On the Insert Timeline screen, select the “SessionIdTime” and click OK:
      image
    12. Once selected, the following Timeline filter will show up on the screen and will allow you to filter the amount of calls per date:
      image

Please note that you can choose the same details and use PivotChart and play with the other column to display Source number instead of destination numbers and every other scenario you can think of.

Example #2 – Getting Last Logon Time for Users

The other example, is based upon a recent script that was released allowing you find Lync Orphaned users.

  1. Open the PowerPivot Screen and Select new PivotTable on a new Worksheet.
  2. Select the following:
    image
  3. Insert Timeline and select “LastLoginDate”:
    image
  4. One the screen that appears, filter with the Timeline slicer to display Years/Quarters/Days in order to show the results requested.
  5. The result should be similar to that:
    image

For more great examples, please check this Blog and download the Excel files which include more samples for usage:

imageimage

image


Filed under: Lync Tagged: LcsCDR, Lync, PowerPivot, Reporting Services

Viewing all articles
Browse latest Browse all 4272

Trending Articles