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
 
 
Most View
- Keyword Research Tools (part 4)
- Application Lifecycle Management with BizTalk Server 2009
- SQL Server 2008 : Indexing for Performance - Putting It All Together (part 1)
- BizTalk Server 2009 : Identifying Standard Message Exchange Patterns (part 3)
- Programming with SQL Azure : WCF Data Services (part 1)
- SharePoint 2010 : Get Started with Social Features
- Implementing Windows Vista’s Internet Security and Privacy Features (part 4) - Surfing the Web Securely - Thwarting Phishers with the Phishing Filter
- Windows Phone 7 : Finding Text on a Web Page
- Windows Server 2008 : Installing the Web Server Role (part 1)
- Exchange Server 2010 : Managing Web and Mobile Access (part 1) - Enabling and Disabling Outlook Web App Features, Configuring Ports, IP Addresses, and Host Names Used by Web Sites
Top 10
- Implementing Edge Services for an Exchange Server 2007 Environment : Utilizing the Basic Sender and Recipient Connection Filters (part 3) - Configuring Recipient Filtering
- Implementing Edge Services for an Exchange Server 2007 Environment : Utilizing the Basic Sender and Recipient Connection Filters (part 2)
- Implementing Edge Services for an Exchange Server 2007 Environment : Utilizing the Basic Sender and Recipient Connection Filters (part 1)
- Implementing Edge Services for an Exchange Server 2007 Environment : Installing and Configuring the Edge Transport Server Components
- What's New in SharePoint 2013 (part 7) - BCS
- What's New in SharePoint 2013 (part 6) - SEARCH
- What's New in SharePoint 2013 (part 6) - WEB CONTENT MANAGEMENT
- What's New in SharePoint 2013 (part 5) - ENTERPRISE CONTENT MANAGEMENT
- What's New in SharePoint 2013 (part 4) - WORKFLOWS
- What's New in SharePoint 2013 (part 3) - REMOTE EVENTS