In this article, I will explain the steps required to create such a report from AdventureWorksDW database (available for download on Codeplex). I have also provided a link to download the report definition (RDL) file below.
Thursday, July 18, 2013
Create Calendar style reports in SQL Reporting Services
In this article, I will explain the steps required to create such a report from AdventureWorksDW database (available for download on Codeplex). I have also provided a link to download the report definition (RDL) file below.
Sunday, March 14, 2010
Scribe Insight 7.0 supports multiple targets
The blog post on Scribe's web site describes various scenarios where this feature can be valuable. These include:
- If the source record was triggered via a publisher, then the update source feature is not available since the source for that DTS is a message queue and not the original application which triggered the integration.
- The source system uses an adapter which does not support the update source feature (for example, Scribe adapter for Dynamics CRM).
- The source query is a complex join which update source cannot support.
- You need to be able to update multiple fields on the source record.
For example, because the previous release of Scribe Insight did not support multiple target connections in the same DTS, Dynamics GP to Dynamics CRM template has to use two separate DTSs for CRM to GP Sales Order integration as follows:
- OrderToERP.dts: Sends submitted orders from Dynamics CRM to Dynamics GP
- OrderToERP_Result.dts: Updates the Sales Order in Dynamics CRM based on the result of the OrderToERP.dts
This new feature will be very valuable for addressing many Dynamics CRM integration needs including the one above.
Sunday, December 20, 2009
Create Top 10 Products Charts and show them inside Account form
1. Create a SQL Server Reporting Services report containing the charts. You can download the report using this link. Here are a few things to keep in mind. Because we will be passing the object type code and unique identifier as parameters to the report via IFrame, we need to add those parameters to the report. In addition, I have added the CRM_URL parameter to the report so that a user can click on the bar in the chart to view the selected product in CRM. Please download the report (.rdl) file below for details.
2. Upload the report to the Reports area in Dynamics CRM.
3. Publish the report for external use.
8. Open the Account to test your charts. (Note: You may need to create some invoices to test the charts).

Download the report file here.
Monday, September 7, 2009
Key Performance Indicators (KPIs)
In business terminology, a Key Performance Indicator (KPI) is a quantifiable measurement for gauging business performance. For example, a retail business may use “Year over year revenue growth” as a KPI to gauge its performance. KPIs are typically shown as part of a dashboard or business scorecard to provide managers and analysts with at-a-glance picture of the state of business.
Technically KPIs may be implemented using any tool or technology. For example, you may be able to create a dashboard using Excel or SQL Server Reporting Services by retrieving the relevant data from a relational database or even entering the data manually into the spreadsheet and creating necessary calculations or formulas based on the data. However, this approach relies on the KPIs being created consistently by different users and developers, which may not be the case.
There are several advantages of using SQL Server Analysis Services to implement KPIs. First, it enables you to define a KPI once and use it in multiple dashboards and reports in multiple contexts. Second, it ensures that the users see the single version of the truth without you having to rely on the users and developers for the correct calculation.
Let us see how it would work using an example. You can create the “Internet Sales Growth” KPI using the following MDX expression in SSAS:
IIF(
SUM(PeriodsToDate([Date].[Fiscal].[Fiscal Year],
ParallelPeriod([Date].[Fiscal].[Fiscal Year], 1, [Date].[Fiscal].CurrentMember)), [Measures].[Internet Sales Amount]
)=0,
"NA",
SUM(PeriodsToDate([Date].[Fiscal].[Fiscal Year], [Date].[Fiscal].CurrentMember),[Measures].[Internet Sales Amount])/
SUM(PeriodsToDate([Date].[Fiscal].[Fiscal Year],
ParallelPeriod([Date].[Fiscal].[Fiscal Year], 1, [Date].[Fiscal].CurrentMember)), [Measures].[Internet Sales Amount]
) - 1
)
The above expression takes advantage of the MDX function ParallelPeriod to get a member from a prior period in the same relative position as the current member (month, quarter, semester, etc.). For example, a parallel period for FY 2004 Q3 is FY 2003 Q3, which will be used to calculate the year over year sales growth.
Once you have created a calculated measure and a KPI based on this calculation, developers and end users can use it in any spreadsheet, report or dashboard in any context. SSAS calculates the KPI automatically as the users slice and dice the data.
For example, users can use this KPI in any of the following:
- report showing year over year sales growth by territory that displays years across the columns and sales territories down the rows
- dashboard showing querterly sales and sales growth over the same quarter in the previous year by product category
- Excel PivotTable showing top 10 customers by sales that also includes sales growth rates for those customers. When the user slices the data further by product, SSAS automatically calculates the sales growth by customer and product.
Sunday, June 28, 2009
Create browser based Dashboards using Excel Services
However, you may want to make these reports and dashboards available to a wider audience via a Web browser. You want to enable users to filter the worksheets and charts to suit their needs. You also want to prevent your master Excel workbook from being edited by certain users while allowing only specific users to edit the master workbook. What is the solution?
Welcome to Excel Services! Excel Services is an interactive Web view for spreadsheets - a way for people to see data in their Web browser instead of using Excel. In fact, to look at the report or dashboard in Excel Services, users do not even need Excel installed. However, if they do have Excel installed, they can use the “Open Snapshot in Excel” feature of Excel Services to open the limited version of the workbook data in Excel and use the standard Excel features such as auto sum, formulas and charts for further analysis. However, this does not change the master version of the workbook saved in Excel Services.
In order to make your Excel workbook available in Excel Services, you publish your Excel workbook to Excel Services. To publish workbooks to Excel Services, you need:
- Excel Services set up with SharePoint Server 2007 Enterprise.
- A SharePoint site based on SharePoint Server 2007 Enterprise. This is where you can save your workbooks, and where others can see your workbook data by using their Web browsers.
- Excel 2007 installed on computers through one of the following: Office Professional Plus 2007, Office Enterprise 2007, or Office Ultimate 2007.
If you would like to learn how to set up Excel Services and publish an Excel workbook to Excel Services, there is a good tutorial available here.
Sunday, December 21, 2008
Create Calendar View in SQL Reporting Services
Sometimes it is easier to visualize the activity related information in a calendar view. For example, you may want to view the number of telephone calls and emails each day by department and/or salesperson during the month in a calendar view (rather than as a tabular report).
You can create a calendar view report in SQL Reporting Services using a matrix type data region. The matrix will have weeks of the month as rows and days of the week as columns.
You would first create a temporary table with a row for each day of the month. Each row has the following columns:
Day of the month: Use this to display the date in each cell of the matrix.
Week of the month: Use this as a row header of the matrix (you can hide this field in the actual report because it is not needed for the calendar view)
Day of the week: Use this as a column header of the matrix.
Activity count (or whatever data you want to aggregate for each day): Use this as a cell data element of the matrix.
You can calculate the day of the week and week of the month in SQL as follows:
DECLARE @d_date DATETIME,
@d_dow SMALLINT,
@d_weeknum SMALLINT,
@d_dow1 SMALLINT
SET @d_dow = DATEPART(dw, @d_date)
By default Sunday is the first day of the week.
SET @d_date = @mnthbeg_date
SET @d_dow1 = DATEPART(dw, @d_date)
SET @d_weeknum = ((@d_dow1 + DATEPART(d, @d_date) - 2) / 7) + 1
As you will notice from the above SQL statements, @d_dow1 is the day (Sunday through Saturday) on which the first day of the month falls.
Once you have this temporary table populated, you can simply select it and use it as a dataset for the matrix.
You can further enhance the report using the following default filters:
Month: Default to current month using =Month(Now)
Year: Default to current year using =Year(Now)
Salesperson/User: You can populate this list with the dataset from SystemUser filtered view. You can also default the user to the current CRM user using the CRM function dbo.fn_FindUserGuid(). If you are creating this report for a non-CRM application, you can simply use the User!UserID global variable to get the current Windows user.
In addition, you can create a drill-down report that displays the details of activities when the user clicks on a specific date in the report.
Monday, September 22, 2008
Create re-usable Dynamic PivotTable Reports for Dynamics CRM
You can open the saved Excel workbook at a later time and refresh it (Data > Refresh from CRM or Refresh All) to update the PivotTable to reflect the up-to-date information from Dynamics CRM 4.0.
If you want to make this PivotTable report available to the other CRM users, you can upload the Excel workbook containing your report to Dynamics CRM. You do this using the following steps:
1. Workplace > Reports > New
2. Report Type: Existing File
3. Browse to the folder where you saved your Excel workbook and select the workbook file
4. Save and Close
Your Excel report containing the dynamic PivotTable is now available to the other users (of course subject to their privileges set in CRM). For example, if you create a PivotTable report containing opportunities by salesperson and territory, the user viewing this report would see only the opportunities he/she can otherwise see in CRM.








