MSSQL Server Reporting Services: Mastering OLAP Reporting: Percent of Total - Two Perspectives - Page 5June 20, 2005 Create a Reporting Services Project To begin, we will launch Reporting Services' Report Designer, found in Microsoft Visual Studio .NET 2003. 1. Click Start. 2. Navigate to, and click, the Microsoft Visual Studio .NET 2003 shortcut in the Programs group, as appropriate. The equivalent on my PC appears as depicted in Illustration 16.
Click for larger image Visual Studio .NET 2003 opens at the Start page. 3. Select File --> New from the main menu. 4. Click Project from the cascading menu, as shown in Illustration 17.
Click for larger image
Illustration 17: Selecting a New Project The New Project dialog appears. Business Intelligence Projects appears in the Project Types tree, indicating an installation of Reporting Services. 5. Click Business Intelligence Projects in the Project Types tree, if necessary. 6. Click Report Project in the Templates list. 7. Type the following into the Name box, leaving other settings at default: RS018 8. Navigate to a location in which to place the Report Project files. The New Project dialog appears, with our input, as depicted in Illustration 18.
9. Click OK. Our new project appears in the Solution Explorer (upper right corner of the Visual Studio .NET interface), as we see in Illustration 19.
Having created a Report Project, we are ready to proceed with creating the new report clone. Adding Multi-Layered Calculations in an OLAP ReportIn this section, we will copy the existing Foodmart Sales report, and then open it in Reporting Services' Report Designer, where we will add the calculations that are the focus of our article. Create a Copy of the Foodmart Sales Report As we have noted, we will be working with a copy of the Foodmart Sales report, to keep the original sample intact for easy access and use at another time. 1. Right-click the Reports folder underneath the newly created shared data source, in the Solution Explorer. 2. Select Add --> Add Existing Item from the cascading context menus that appear, as depicted in Illustration 20.
The Add Existing Item - RS018 dialog appears. When we installed Reporting Services, the default installation point for the sample report files was the Samples folder within the Reporting Services program folder. A common example of this default path is as follows: C:\Microsoft SQL Server\MSSQL\Reporting Services\Samples\Reports 3. Using the Add Existing Item - RS018 dialog, navigate to the location of the sample reports in your own environment. An example of the Add Existing Item - RS018 dialog, having been pointed to the sample Reports folder (which contains the Foodmart Sales report we seek), appears as partially shown in Illustration 21.
4. Right-click the Foodmart Sales report inside the dialog. 5. Select Copy from the context menu that appears, as depicted in Illustration 22.
6. Within the Add Existing Item - RS018 dialog, navigate to the RS018 folder we created earlier, when we added the new RS018 project. 7. Right-click somewhere in the white space inside the RS018 folder, within the dialog. 8. Select Paste from the context menu that appears, as shown in Illustration 23.
A copy of the Foodmart Sales report appears within the dialog. 9. Right-click the new file. 10. Select Rename from the context menu that appears. 11. Type the following name in place of the highlighted existing name: Multi-Layer_Calculations.rdl NOTE: Be sure to include the .rdl extension in the file name. The renamed copy of the Foodmart Sales sample report appears as depicted in Illustration 24.
12. Select the new file by clicking it, if necessary. 13. Click Open on the dialog box to add the new report to report project RS018. Multi-Layer_Calculations.rdl appears in the Reports folder, within the RS018 project tree in the Solution Explorer, as shown in Illustration 25.
Having created a copy of the functional report, we are now ready to make the enhancements requested by the FoodMart information consumers. |