A Dimension view is a database view of a Dimension table. It may be a full or partial view. It is typically used in cases such as date dimensions, where multiple date dimensions exist for one Fact table. In many data warehouses Dimension views are built as part of the end-user layer but creating them in the data warehouse means they are available regardless of the end-user tools used. 
Views are displayed in WhereScape RED either as part of the Dimension object group or in a separate object group—Dimension View. The default is to view Dimensions and Dimension Views together:

This visualization option is set from the Tools > User Preferences > Look and Feel menu item:

This example shows Dimensions and Dimension Views as separate object types:

Creating a Dimension View

  1. Double-click Dimension (or Dimension View) in the left pane.
  2. Browse the data warehouse in the right pane.
  3. Drag a table from the right pane into the middle pane.
    • The Add New Metadata Object window defaults the object type to a Dimension view
    • Change the view name as required and then click Add.

  4. The View Column Definition window appears to provide a means of re-mapping some of the column names in the view if required.

  5. Click OK, the View properties window is displayed:
    • Select the Distinct Data Select check box if you want the view to return only different values.
    • A 'Where' clause could be entered, but this can be done later. Normally you would just click OK.

  6. A prompt appears to indicate that the view has been defined.
    • Because this is a Dimension view, you are given the option to create both the view and an associated Get Key function. For any other view type, a Get Key function is not created.

  7. If you click Create View + Function, the following window appears which enables you to select a business (natural) key for the Dimension view.

  • No labels