Creation and Handling of Dimension Elements

Dimension elements are the individual values that belong to a specific dimension. In a Time dimension, elements could be individual dates or months; in a Product dimension, elements could be specific product names.

This article walks you through the creation of elements, their types, and how you can consolidate elements. For these actions we create a new dimension called “Customers” in the database “Demo”.

Select Dimensions in the hierarchy structure of the database “Demo” and click the button Add dimension. In the following dialog enter the name “Customers” and click OK to finish. Then click on the dimension, and the Elements tab opens. Click on the button Add element to create a new element.

For this example, create the element “Miller LLC”, then create the element “Total”. Next, create the element “Smith Corp”, selecting “Total” as the parent element. During the element creation, you can use the Tab key on your keyboard to navigate to the Parent Element column to make changes to the element:

Click on the expand/collapse button to the left of the “Total” element to view or hide the element’s children.

Select the element “Smith Corp”, then hit the Enter key to create the next element, which will automatically be a child of “Total”. Name this element “Meyer Ltd”.

Now right-click “Miller LLC” and select Add to (additional) parent from the context menu:

Select "Total" as parent element.

Elements can be added to one or to more than one consolidated element, making different views of a dimension possible. These structures are often called “parallel hierarchies”.

The buttons at the top of the elements tab are from left to right: add, delete and search elements, expand/collapse all branches ore only the selected branch, expand the level by number, use a stored Subset, set a Format/Style, toogle between show or hide Format/Style, and toogle between hierchical and list view.

Making changes to elements

  • Double-click on the name, type, parent element, or weight of an element to change these aspects.
  • Base elements can be changed to numeric or string type, but a consolidated (parent) element may not change type.
  • Weight can be a positive or a negative decimal number, using the point as decimal separator. A maximum of 8 digits can be stored after the decimal point. The arrow buttons change the weight up or down by a unit of 1.
  • Right-click on an element for a context menu with additional options (see screenshot above).

Note that in the individual fields for type, weight, and parent element, changes can only be made for one element at a time (contrary to attribute values). The parent of multiple elements can be changed via the drag-and-drop operation.

Element types

Elements in the In-Memory DB can be numeric (N), string (S), or consolidated (C).

  • Numeric elements can only contain numbers. They can be used for calculations, e.g. for consolidations.
  • String elements can contain all characters: (e.g. letters, numbers, special characters). They can be used for comments. They cannot be used for calculations.
  • A consolidated element is a parent element that has one or more child elements or child levels. With the OLAP Server, you can consolidate both numeric and string elements, but only consolidated elements based exclusively on numeric child elements will be calculated.

Note: for older versions of Jedox, it is not recommended to use the format yyyy.mm for the month dimension, as the elements are treated as numeric when performing drillthrough.

Consolidation calculations

Consolidated element = Child1 * weight + [Child2 * weight + …]

A prerequisite for the calculation of a consolidated element is that all child elements must be numeric or consolidated with a numeric value.

Drag-and-drop operations

Several drag-and-drop operations are implemented in the Modeler. When you hover the mouse cursor over a row in the Modeler elements grid, the row header will show a “drag handler” icon on the very left side. The icon visualizes the drag area. If you move the mouse cursor over the icon, the cursor changes to a “grabbing hand” cursor.
For example you can move in "Demo / Regions" the country "Austria" from "East" to "West". After this action "Austria" will be automatically consolidated in "West":

To mark several elements, press the Shift or Ctrl key while clicking on the elements and hold the grabbing hand to start the drag operation.

While dropping you can press the Shift key to indicate a Move operation or the Ctrl key to indicate an Add operation. While pressing the key, a tooltip is shown, hinting the currently chosen action. The additional key must be held down at the moment when drop occurs in the target area.

You can drop the element(s) between two elements in the grid (visualized by a blue line) or on top of an element (visualized by light blue background). If you drag the element on top of a collapsed consolidated element and hold it there for one second, the element will be expanded.

Longer trees that extend beyond the screen will automatically scroll when the cursor reaches the bottom of the screen.

Drag-and-drop functionality is also possible when paging is used, either in flat view or in tree view. To drag across pages, the mouse cursor is dragged on a paging control (button) and held there for one second. The UI will then change to the next / previous page.

In list view, elements may only be reordered using drag-and-drop functionality.

If you drop without a Shortcut key being pressed at same time, you receive a menu with Add, Move, and Cancel buttons. Not all of these actions are applicable for all drop positions. Inapplicable actions are disabled in the menu.

  • Add: this button is only active if the drop zone is either on top of an existing element or within a dimension hierarchy branch to which none of the selected/dragged elements currently belong. Selecting Add will define the elements as children of the element or element branch on which they are dropped. The elements will also remain in their existing hierarchy position (i.e., a parallel hierarchy is created).
  • Move: this button is always active. If the drop zone is within the same hierarchy branch, elements will be only reordered within the consolidation order. If the drop zone is on top of an element or within a different hierarchy branch, selecting Move will remove the elements from their current hierarchy position.
  • Cancel: this button is always active. It cancels the drop operation.

When adding or moving an element, a popup warning appears, as changing an element from base to consolidated type may imply loss of data.

Copying and Pasting Elements in dimensions

Elements of a dimension can be copied and pasted into another dimension or spreadsheet using the common keyboard shortcuts Ctrl + C and Ctrl + V. (There are also context menu commands for both actions, but due to browser restrictions, these items will just display a popup reminder to use the keyboard shortcut.)

If full row(s) are selected, the copy has PCWAT format (content: Parent, Child, Weight, Attribute(s), and Type) and the attributes will be inserted in the target dimension provided the correspondent columns exist. Attributes will only be inserted if the existing attribute name is completely identical with the attribute column name of the clipboard content (case-sensitive).

If you paste a copy into a dimension with existing elements, then the elements from the clipboard are added to the existing elements and all resulting elements will be sorted in the order that exists before the insertion.

If you copy one or more consolidated elements, an internal insertion into dimension of the same modeler will include also the direct child elements.
If you paste such a selection externally (into a spreadsheet or into a dimension of another modeler), child elements are not included. For an external insertion, all elements must be copied explicitly.

If you only select the element name(s) (not the whole row(s)), then the copy has PCW format.

If the copy is made from a spreadsheet, and has three columns, then the format must be PCW and a header row is not required. If content has more than three columns (e.g. 4, 5, 6), a header row is required (:parent, :child, :weight, [<attribute1,…>], :nodetype). Attribute column headers must match 100% the existing attribute names (case-sensitive) of the dimension, otherwise attributes will not be inserted.

Updated December 9, 2024