Designing a Data Source View
Designing a Data Source View A Data Source View (DSV) is an Analysis Services object that represents an abstraction level on top of a relational database schema. (For detailed information about DSVs, see Chapter 18.) You might create a DSV that includes only the tables and relationships relevant to your multidimensional model. You can also create named queries and calculated columns in the DSV so that you can extend the relational schema. Creating a New Data Source ViewTo create a new DSV, you use the Data Source View Wizard. When you are in the wizard, you have to choose a data source. If you need to create a new data source, you can do that from the Data Source View Wizard—the Data Source View Wizard takes you into the Data Source Wizard and then returns you to where you came from. (Yes, you are going in circles. Do not ask.) Note You can also start with the Data Source View Wizard to create a new data source and then create a DSV for it.
You can make your life easier if the first table you add is the one you want to use as a fact table. Use the arrow to add that table to your DSV. Then, click the Add Related Tables button. The related dimension tables will appear in the Included Objects list. If you want to also include tables that are related to the dimension tables, click the Add Related Tables button again. Now tables are added to the list under Included Objects. Modifying a DSVWe are going to use FoodMart 2008 to demonstrate how to modify a DSV. Our DSV is a pretty simple one; it includes only about 20 tables. But, some DSVs can get much more complex, especially when your multidimensional model is created on top of a relational schema with a lot, maybe hundreds, of tables and relationships. To work with the FoodMart 2008 DSV in the DSV Designer, start in BI Dev Studio. In the Solution Explorer, right-click FoodMart 2008.dsv. From the menu that appears, select View Designer. Figure 9.4 shows you what you will see as BI Dev Studio shifts to its DSV Designer. The DSV Designer consists of multiple UI elements described in Table 9.1. Figure 9.4. You can modify the properties of your DSV in the DSV Designer of BI Dev Studio.You can use the DSV Designer to refine your DSV, as follows:
Editing a Named CalculationYou can edit the properties of a named calculation in the Edit Named Calculation dialog box. You can reach that dialog box by double-clicking the column that represents the named calculation. The dialog box already contains values for each property; you can change any or all of them. In Figure 9.5, you can see the Edit Named Calculation dialog box that displays when you double-click the WeekOfYear column in the time_by_day table. Figure 9.5. Use the Edit Named Calculation dialog box to change the properties of a named calculation.
|
手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )
GMT-8, 2025-12-13 22:14 , Processed in 0.017129 second(s), 17 queries .
Supported by Best Deal Online X3.5
© 2001-2025 Discuz! Team.