Module 8
Module 8
Simple :-An element without any children. Also known as a leaf element. It is
the lowest level in the hierarchy.
String :-An element that stores text strings in cells.
Consolidated :-An element that has aggregated data in a cube. Two or more
elements roll up to a consolidated element.
String elements are not aggregated and are typically used for descriptive
purposes. To include a string in a cell in a cube, the element from the last
dimension defining the cell must be a string element. TM1 treats string
elements that occur in any dimension other than the last one as numeric
elements. It is best practice to make the measures dimension the last
dimension. In a later exercise, you will add a string element to a measures
dimension that is in a cube. TM1 only stores data at the leaf level element, and
consolidations are done in RAM. This allows TM1 to quickly compute
calculations.
Using weights with elements
•Weights identify the contribution of an element to a consolidation.
•Default weight factor is 1.0.
TM1 assumes all children will be aggregated (addition). Credit balances may be stored.
Unsigned and negative weights allow you to apply a reduction. Weighting is a property
of a child's relationship to a parent. It allows the value of the child element to be
subtracted from the parent value (instead of aggregated). Net Revenue = Total
Revenue + (Total Sales Deductions * (-1))
Using attributes
If you want to Attribute type Example
It is best practice to name the dimension with an intuitive noun that indicates it
is a leaf-level element. TM1 supports the use of spaces and some special
characters in names. However, it is better to use underscores (_) instead of
spaces in order to minimize conflict with other applications.
Demonstration 1: Create
dimensions manually
Demonstration 1: Create
dimensions manually
Purpose: You want to create the Price and Cost, Months, and Versions
dimensions manually.
1. From the Start menu, point to All Programs\IBM Cognos TM1 - 64, and
then click Architect.
2. Maximize the window, expand TM1, and then double-
click SampleOutdoors.
3. Log on with a user ID of admin and a password of apple. Notice that this
TM1 server does not currently contain any objects.
4. From the View menu, deselect the Display Control Objects menu item if it
is currently selected.
5. Right-click Dimensions, and then click Create New Dimension.
6. From the Edit menu, click Insert Element.
7. In the Insert Element Name box, type Unit Sale Price.
8. Leave the default Element Weight and Element Type, and then click
Add. The new element appears in the Inserted Elements pane. You can
also press to add elements to the Inserted Elements pane.
9. Repeat steps 6 and 7 to add Unit Cost, Margin and Margin%. 10.
Click OK.
11. From the View menu, click Properties Window.
12. Select Unit Sale Price on the left.
If the Dimension Editor does not appear with two panes as shown you
can also click the Display Properties Window button on the toolbar.
13. From the Dimension menu, click Save.
14. In the Name box, type Price_and_Cost_Measures, and then click
OK.
15. Click OK to close the Dimension Editor
Task 2. Create the Months
dimension
Next you will create the Months dimension. Instead of typing each month, you
will use Microsoft Excel to populate the months.
1. Right-click Dimensions, and then click Create New Dimension.
2. Launch Microsoft Excel, create a new blank workbook (if necessary), and
then in cell A1, type Jan. You will use Autofill functionality to populate the
remaining months of the year.
3. Click cell A1, and then place the pointer over the lower right corner of cell
A1, until you see a plus sign.
4. Click and drag the cursor to cell A12, and then release the mouse button
5. Copy the 12 months from Microsoft Excel, and paste them in the
grey pane in the Dimension Editor.
6. Close Microsoft Excel without saving.
7. In the Dimension Editor window, from the Dimension menu, save
the dimension with the name Months.
The icon to the left of each element indicates that these are leaf-level numeric elements,
at the lowest level of detail in the dimension. In a cube that contains only numbers, all
the lowest level elements are numeric.
8. Click OK to close the Dimension Editor. It is a proven practice to include the
measures dimension as the last dimension in the cube. However, dimensions can be
created in the order of your choice. The measures dimension is usually named
something like _m or _measures. In the next unit, you will create the Price and Cost
cube. TM1 supports string elements. They are not aggregated and are usually used for
descriptive purposes. If string elements exist, they must be defined in the last dimension
in the cube (which can also be the measures dimension). A dimension does not actually
contain anything. It maps to data points when used in a cube. The text string "Jan" does
not point to text. It points to a value that "Jan" describes.
Task 3. Create the Versions
dimension
Next you will add descriptions that identify next and previous months.
1. In Server Explorer, right-click the Months dimension and click Edit
Element Attributes.
2. From the Edit menu, click Add New Attribute.
3. In the Name box, type Next, under Type, ensure that Text is selected, and
then click OK.
4. Repeat steps 2 and 3, and in the Name box, type Previous. You will need to
identify the Next and Previous month.
5. Enter the values as shown below:
Note: You can paste Autofill values from Microsoft
Excel.
Task 3. Add attributes to alias the month name in
full name form
7. Click OK.
8. Leave Architect open for the next demonstration.
Results: You modified the Months dimension to include the elements for
quarters and year, and then sorted the Months dimension. Next you added
descriptive attributes for each month to identify the next and previous
months, as well as an alias for each month to be able to refer to it in either
short or long form. Lastly, you edited the attribute elements to format the
Price_and_Cost_Measures dimension.
TurboIntegrator
What is TurboIntegrator ?
1) Data Source
2) Define Variables
3) Map Data
4) Advanced
5) Schedule
The Data Source tab allows you to select and preview the data from the
data source as it appears to TI. Define Variables is used to identify how
the incoming data will be transformed for use in the TM1 structures. Map
Data allows for more detailed mapping of data structures and objects.
Scripts used by a TI process are displayed and edited from the Advanced
tab. The Schedule tab is used to schedule the process to run repetitively,
or off hours.
Create a dimension using
TurboIntegrator
Demonstration 3: Create a dimension using
TurboIntegrator
Ignore Ignore the contents of the column when processing the data source.
Attribute The column contains element attributes for the dimension you want to
create or update.
Other The column contains data that does not fall into any of the previous four
categories. Typically, this setting is used for columns containing data that
will be processed through custom variables and formulas.
4.Repeat steps 2 and 3 with the following information.
V2 vProductTypes Consolidation
V3 vTotalProduct Consolidation
1. Click the Maps tab, and then click the Dimensions sub-tab.
2. For the vProducts element variable, in the Dimension column, type
Products.
3. In the Action column, click the down arrow , and then click Create (if
necessary).
4. In the Element Type column, ensure that Numeric is selected. Numeric is
the default and should only be changed if the data will be used for a String
element. When you review the elements in a dimension in the Subset or
Dimension Editors, their icon includes either a # or ab (at the lowest level)
identifying a numeric or a string element.
5. In the Element Order column, click By Input. The Dimension Element
Ordering dialog box appears.
6. Select Automatic, and then select Hierarchy.
The result appears as shown below:
7. Click OK.
8. Click the Consolidations tab. This tab identifies the parent-child relationship(s) in the
dimension. You can map more than one hierarchy here if necessary. It is often useful to
diagram the parent-child relationships on paper or in a diagram tool prior to working in this
screen: vTotalProduct
vProductTypes
vProducts
9. For the vProductTypes consolidation variable, click the arrow to the right of the Child
Variable cell, select vProducts, and then click OK.
10. For the vTotalProduct consolidation variable, click the arrow to the right of the Child
Variable cell, select vProductTypes, and then click OK.
11. Under Component Order for vProductTypes, click By Input. The Component Element
Ordering dialog box appears.
12. Click Automatic.
The result appears as shown below:
3. Click OK.
The Server Explorer window may move to the front. Click the TurboIntegrator
window to see it.
The results appear as follows: