Monday, December 20, 2010

Time Series Functions

These functions help to obtain the data analyzed based on the time. There are two types of Time Series in OBIEE viz..

1)     Ago
2)     To Date

  Following are the prerequisites and procedure to create time series function in OBIEE RPD.

a)     Create a dimensional Hierarchy (ex: YearàQTRàMonth) and convert it to the time dimension. DC on hierarchy and check the box time dimension.

b)     Define the Chronological Key. A chronological key should always be the lowest level in the table and the data in it should be in the format of 20090102 or 200109 (year, month format). DC on level (preferred/last—detail) go to KEYS tab and check chronological key.

c)     Duplicate the existing column, rename and specify the formula for the column.

1)     Ago: This function when specified in any column displays data that is month ago, 2 months ago depending on the specified formula. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series and then AGO. Then in metric go to logical tables and select metric and in level go to time dimension and select month (1 month ago) and give the period as 1(since it is 1 month ago) then transfer two new columns to presentation layer
.
Ex: sales: 100,200,300 à -, 100, 200 (1 month AGO).

2)     To Date: This functions allows us to display the aggregated measures based on the formula specified. DC on new column check use logical columns and click on exp. Builder. In the left column select functions and then time series then select TO DATE. Select metric from logical tables (revenue) and as level go to time dimension and select year(YTD) and OK.

YTD- year to date – Displays aggregated values that is with respect to month since it is YTD. Similarly for QTD and MTD.

Ex: sales: 100,200,300 à YTD Sales: 100,300,600

Please let me know for any comments/questions.

No comments:

Post a Comment