Create a Logical Model

Logical models can only be created for relation database data sources. (See JDBC or Connect to a Specific Data Source for information on how to configure a relational database data source.)

If you see the ‘Create Visualization’ dialog box, press the ‘Close’ button Close and then proceed with the steps below.

200

To create a logical model, you must first define a physical view. See Create a Physical View. Then follow the steps below:

  1. Press the top ‘Data’ button Data.

    press Data button

  2. In the ‘Navigation Tree’ in the left panel, expand the ‘Data Sources’ folder and the data source to which you want to add a data model. Select the ‘Data Model’ node, and press the ‘New Logical Model’ button New Logical Model.

    press New Logical Model button

  3. Provide a name for the logical model and press OK.

    name logical model and press OK

  4. Press the ‘Add Element’ button Add Element, and select ‘Add Entity’.

    press Add Element and select Add Entity

  5. Provide a name for the new entity and press Next.

    name new entity and press Next

    An entity name can contain any characters. However, the following characters and character combinations have been observed to cause problems on certain databases in particular usages. If you use these characters in an entity name, thorough testing with your database is recommended.

    ! ? [ ] < > ^ ` \ ' = " {D {d {T {t ( : $()
  6. In the ‘Add Attributes’ dialog box, select the fields (columns) that should be used as attributes for the entity. Press OK.

    select fields as entity attributes

    This adds the logical model entity and its attributes to the left panel.

    entity and attributes added to left panel

    An attribute name can contain any characters except a period (“.”). However, the following characters and character combinations have been observed to cause problems on certain databases in particular usages. If you use these characters in an attribute name, thorough testing with your database is recommended.

    ! [ ] ? { & } : ^ ` \ ' " = / < > $()
  7. Optional: To add additional attributes to an entity, follow the steps below:

    1. Press the ‘Add Element’ button Add Element, and select ‘Add Attribute’.

      press Add Element and select Add Attribute

    2. In the ‘Add Attributes’ dialog box, select the entity to which you want to add attributes, and then choose the attributes to add. Press OK.

      select entity and add attributes

  8. Optional: To add an expression or formula attribute to an entity, follow the steps below:

    1. Press the ‘Add Element’ button Add Element, and select ‘Add Expression’.

      press Add Element and select Add Expression

    2. In the ‘Add Expression’ dialog box, select the entity to which you want to add an expression, and provide a name for the new expression field. Enter the expression using SQL syntax. (You can select data fields and operators from the provided lists.) Then press OK.

      add expression to entity

  9. To edit the properties of an attribute, expand the entity in the left panel that contains the attribute, and click to select the attribute. Make the desired settings in the right panel. (See Modify Attribute Properties in Edit a Logical Model for more information.) Then press the ‘Save’ button Save.

    select attribute and press Save

  10. Repeat the above steps to add additional entities and attributes.

  11. Press the ‘Save’ button Save to save the logical model.