You are on page 1of 6

Are transformation tables needed to create

transformation attributes/metrics in MicroStrategy


Architect 8.0.x?
Started 09-13-2000 by

JaimeP
Modified 09-13-2000 by

JaimeP
Article Options
Labels:
Architect
0Likes

No. Transformation tables can certainly be used if they exist in the database. Alternatively, a
transformation can be created.
To create a 'Last Year' transformation, for example, follow the steps below:
1.
Create a new attribute by selecting File > New > Transformation. The following window
appears:

2.

'Year.'

Click on 'Add' and select the attribute to which the transformation will apply, such as

3.

Double-click on 'Year_Id' to move it to the Form expression window. Add a '-1' using the
operators in that section.

4.

Click on 'OK' once to close this window. Select 'Save and Close.'
A transformation for 'Last Year' now exists, which can be used to create a 'Last Year - This Year'
sal

How to create Last Month Transformation in


MicroStrategy Desktop 8.x
Started 11-19-2003 by

agouveia
Modified 11-19-2003 by

agouveia
Article Options
Labels:
Architect

Architect Project Creation

Warehouse Catalog
0Likes

Even though Month ID information is stored differently in various user environments, this
document will illustrate the general process and requirements when creating a Last Month
Transformation.
It is important to note that the creation of a Last Month Transformation is different than the
creation of a Last Year Transformation, as described in MicroStrategy Knowledge Base
document TN4100-007-0034 - Are Transformation tables needed to create transformation
attributes/metrics in MicroStrategy Architect 8.x?
In the case of 'Year', it is possible to use an expression base Transformation such as Last Year =
Year_ID - 1, because if a year ID is 2001, 2001 - 1 = 2000.
However, it is difficult to arrive at a logical expression for 'Last Month'. This is due to the way that
the Month ID is stored in the warehouse. In the MicroStrategy Tutorial Project, Month ID is stored
as "yyyymm". For example, January 2001 is stored as "200101".
By using the expression Last Month = Month_ID - 1, if Month ID = 200101, then 200101 - 1 =
200100. As "00" does not correspond to a valid month, the expression would not work.
As such, in order to create a 'Last Month' transformation, it is necessary to use a table based
transformation. To create a 'Last Month' Transformation, perform the following steps:
1.
Create a transformation table in the warehouse. This table should contain two columns:
Month ID and Last Month ID (a column may also be added to the Month Lookup table containing
data about Last Month), as shown in the screen shot below:

2.

After this table is created in the warehouse, open the Warehouse Catalog (Schema
Menu) and select the table, moving it to the right panel where the tables are used in projects.
3.
Save and Update the Schema (Schema Menu).
Now, perform the following steps to create the actual transformation:
1.
Go to File Menu > New > Transformation, as illustrated below:

2.

The new transformation window will open, followed by the "Select a member attribute"
window. Select the member attribute as 'Month', as shown below:

3.

The "Define a new member attribute expression" window will open. Select the table that
was created in Step #1 (or the lookup table where the Last Month column was added). In the
available columns, select the Last Month ID column (Prev_Month_ID in MicroStrategy Tutorial)
and drag and drop it into the expression field on the left, as shown below:

4.

Click 'OK' and save the transformation:

For details on how to use transformations to create transformation metrics, refer to MicroStrategy
Knowledge Base document TN4000-7X0-0407 - How to create and use transformation metrics in
MicroStrategy Desktop 8.x.
Did this article solve your problem?YesNo

You might also like