Programming4us
         
 
 
SQL Server

An OLAP Requirements Example: CompSales International (part 6) - Creating the Cube

12/13/2010 5:17:45 PM
Creating the Cube

Most of the hard work in the CompSales International example is done. All that is left to do now is to create a cube that is based on your fact tables in your data source, use the dimensions and hierarchies you just defined, and then process it (that is, populate the cube with data). In the Solution Explorer, you right-click the Cubes object and select New Cube. This invokes the Cube Wizard, as shown in Figure 25.

Figure 25. Selecting the build method for the cube in the Cube Wizard.


Next, you identify the measure group tables from the data source view that will be used to provide data to the cube. Available data source views are listed in this dialog. Because you have already defined a data source view (Comp Sales2008 DSV), you simply highlight it and check the primary fact table (use CompSalesFactoid as your Measure group table) that will provide your data, as shown in Figure 26, and click Next.

Figure 26. Selecting the data source view and measure group table to use for the cube.


The wizard detects the possible data measures (facts) from the measure group table you just identified. In this measure group table, there are Sales Units, Sales Prices, Sales Returns, and a Count measure to choose from. Select all of them, as shown in Figure 27.

Figure 27. Selecting the measures (facts) that will be in the cube.


If you have dimensions defined already (as you chose to do earlier), you want the new cube to use these definitions. The next wizard dialog lists any shared dimensions that have been created already. Your dimensions are listed there, and you need to check all the ones to be used for your cube (Time_Dimension, Product_Dimension, and Geography_Dimension), as shown in Figure 28. Then you click Next.

Figure 28. Selecting the existing dimensions for your cube.


As you can see in Figure 29, the last dialog in this wizard shows a preview of your complete cube definition and provides a place to name the cube (for this example, name it Comp Sales). Now you click Finish.

Figure 29. Naming the cube and previewing the cube definition in the Cube Wizard.


You are now put in the cube designer, which shows the completed cube design for Comp Sales. The cube designer provides all related cube information within the single IDE (Visual Studio). Figure 30 shows the cube designer and all related tabs that can be invoked from here (Dimension Usage, Calculations, KPIs, Actions, Partitions, Aggregations, Perspectives, Translations, and the Cube Data Browser).

Figure 30. The Comp Sales cube definition in the cube designer.


Other -----------------
- SQL Server 2008 Analysis Services : An Analytics Design Methodology
- SQL Azure : Other Considerations
- SQL Azure : Sample Design - Application SLA Monitoring
- SQL Azure : Combining Patterns
- SQL Server 2008 Analysis Services : Understanding the SSAS Environment Wizards (part 2)
- SQL Server 2008 Analysis Services : Understanding the SSAS Environment Wizards (part 1)
- SQL Server 2008 Analysis Services : Understanding SSAS and OLAP
- SQL Azure : Design Patterns (part 3)
- SQL Azure : Design Patterns (part 2) - Sharding
- SQL Azure : Design Patterns (part 1)
- SQL Azure : Design Factors (part 2)
- SQL Azure : Design Factors (part 1)
- Limitations in SQL Azure
- SQL Server 2008 : Performance Data Collection (part 2)
- SQL Server 2008 : Performance Data Collection (part 1)
- SQL Server 2008 : Performance Tuning - Partitioning
- SQL Server 2008 : Guide to the DYNAMIC Management Views (DMVs)
- SQL Server 2008 : Managing Security - Service Accounts and Permissions
- SQL Server 2008 : Managing Security - Security and SQL Agent
- SQL Server 2008 : Implementing Transactions - Transaction Traps
 
 
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
Most View
- Windows Server 2008 : Controlling Access to Web Services (part 6) - Configuring Server Certificates
- SQL Azure Backup Strategies (part 1) - Copying a Database
- Central Management Servers (part 3) - Configuring Multi-Server Query Options
- SharePoint 2010 : Configure Access Requests for Lists and Libraries
- Windows Server 2008 Server Core : Accessing DLLs Using the RunDLL32 Utility
- Windows Azure : Diagnostics
- Microsoft Systems Management Server 2003 : Modifying Installation Scripts Using the Installation Expert (part 1)
- SharePoint 2010 : Implementing and Configuring a Records Center (part 2)
- Exchange Server 2010 : Upgrading from and Coexisting with Exchange Server 2007 (part 3)
- Working with Windows 7’s Basic Network Tools and Tasks (part 6) - Customizing Your Network