Replacement for Time Series Wizard in Oracle BI

Using TODATE and AGO in OBIEE

AGO function provides a shift backwards in Time. So basically, this would help in analyzing monthly sales with last month sales, Quarterly sales with Last Quarter sales etc. Also, Todate and AGO can be used nested within each other.

For this TIP we will be assuming the following hierarchy in the time dimension.
Year --> Quarter --> Month

One of the most important things that one should take care while creating a time dimension is that, the lowest chronological key should be a unique key. And all the above levels should have unique identifiers. For example, if you have columns Year, Quarter and Month, you need to make Quarter and Month unique by appending Year to both Quarter and month.

Now lets look at the syntax of AGO function.
AGO (<measure>, <level>, <shift needed>)
Example:
AGO (BISE1_TUTORIALWH.SALES.AMOUNT,BISE1_TUTORIALWH.TIMESDim.”Month”, 1)

What this would basically do is it would calculate the value of the measure for the previous Month (level of the time dimension shifted by one month).

Similarly, the syntax of TODATE function
TODATE (<measure>, <level>)
Example: (for Year to Date)
TODATE (BISE1_TUTORIALWH.SALES.AMOUNT,BISE1_TUTORIALWH.TIMESDim.”Year”)

What this would basically do is it would summarize the value of the measure from the start of the year till date. Similarly to calculate the Month to Date values use Month level instead of Year.

Popular posts from this blog

How To Unlock Bootloaders on your Xperia Arc S

Inherited Colour Vision Deficiency