Trailing Twelve Month Actuals

We've requirement to calculate trailing twelve month to move data from one region to another. We've Year and Month is two separate dimension where both are level 0. Here is my calc script:
FIX ( "US$", "TestCostCenter", "b000", "s000", "Final","TestRegion","TestAcct")
"Actuals" = @MOVSUM("TestRegion2"->"Actuals", 12, @XRANGE("FY11"->"JAN","FY12"->"DEC"));
ENDFIX;
It works as long as its in the same year but once its cross year the numbers are not right. Not sure from where it making the number up. Here is the example data.
Jan     Feb     Mar     Apr     May     Jun     Jul     Aug     Sep     Oct     Nov     Dec
TestRegion2     FY11     TestAcct     1053.05     1341.5     206.9     -310.54     1217     662.52     -418.91     -2877.97     4757.49     -479.46     786.09     -13425.39
FY12     TestAcct     434.64     1099.28     4116.87     -4343.42     655.89     799.16     -1343.42     376.09     799.15     -148.05     #MI     #MI
TestRegion     FY11     TestAcct     1053.05     1341.5     206.9     -310.54     1217     662.52     -418.91     -2877.97     4757.49     -479.46     786.09     -7487.72
FY12     TestAcct     -8535.36     -7642.98     -3215.57     -8775.99     -8782.62     -7564.55     -6030     -10411.4     -9132.79     -10066.93     3358.46     2446.19
To view correctly in excel just copy the data and Paste Special. And then move 1st line 3 columns to right and line 3 & 5 one column.

you dont need to create any variables here.
I am not completely aware of your dimension structure here.
So for example if i had some three members in scenario dimension like Actuals, Forecast, Budget.
and if I want to perform this calculation only for Actuals Data, then i will be creating one more member under scenario dimension ROLLING_12MONTHS_ACTUALS.
Now
ROLLING_12MONTHS_ACTUALS = @xrange(Actuals,12,@xrange(Y2009->JAN,Y2010->DEC))
this will calculate last 12 months sum for all account lines for all the months in Y2010.
you can vary the range in @xrange if you need to calculate for more months.
Now users can retrieve the required data by specifiying the new scenario member in their reports across all the members of remaining dimensions.
- Krish

Similar Messages

  • Trailing twelve month

    what's the easiest way to generate a trailing twelve month ... number? global variable, dynamic time series, or just prompts in a report? seems like it should be a dynamic time series but... that doesnt' seem to work.
    thks!

    you dont need to create any variables here.
    I am not completely aware of your dimension structure here.
    So for example if i had some three members in scenario dimension like Actuals, Forecast, Budget.
    and if I want to perform this calculation only for Actuals Data, then i will be creating one more member under scenario dimension ROLLING_12MONTHS_ACTUALS.
    Now
    ROLLING_12MONTHS_ACTUALS = @xrange(Actuals,12,@xrange(Y2009->JAN,Y2010->DEC))
    this will calculate last 12 months sum for all account lines for all the months in Y2010.
    you can vary the range in @xrange if you need to calculate for more months.
    Now users can retrieve the required data by specifiying the new scenario member in their reports across all the members of remaining dimensions.
    - Krish

  • How to create a trailing 6 months graph in OBIEE dashboard?

    Hi,
    I'm new to oracle and currently learning new OBIEE application where I'm task with creating a graph trailing 6 months.  I did some research and found a solution in this forum but given that my background is not IT so those codes to me is like another language.  Basically I need to create a graph where users would select a prompt month like June-14, the graph would should show data for the prior month from May backward to Jan.  In my report, I would have 4 column like fiscal year, month, sales, and supplier.
    I know how to create the report to pull the data but I'm struggling with where/how to set up filter and prompt and where to apply the appropriate SQL query.  Please help!  Step by Step instruction would be very helpful.
    Thanks you so much in advance.

    Hi,
    That filter will not help you ...
    You said : users would select a prompt month like June-14
    The previous formula work on the current real date, not on a prompt (and why to cast CURRENT_DATE as date? It's a date! And again: DAYOFMONTH(CURRENT_MONTH * (-1) + 1 isn't it easier to just write 1 - DAYOFMONTH(CURRENT_MONTH) ? ...).
    Coming back to your question .... by the way ...
    I'm new to oracle and currently learning new OBIEE application and my background is not IT so those codes to me is like another language
    I would highly suggest you follow a proper training and/or a good book (please avoid the guy advertising his DVD OBIEE training for few $$) at least you start with good basis on OBIEE and BI / data analysis and reporting in general.
    Let's start by your prompt: when you say a month like June-14, do you mean that you really have a month column in your subject area with values like June-14? Do you also have a proper date next to it or anything more "numeric" ? Because otherwise you will need to translate textual months names into real date to be able to easily calculate the previous X months.

  • Trailing 12 months in Essbase 11.1.2.2 ASO cube

    I have an outline with the first four dimensions being ReportingPeriod, Years, TimeView, Accounts -
    ReportingPeriod
    -Qtr1
    --Jan
    --Feb
    --Dec
    Years
    -Y2012
    -Y2011
    -Y2004
    TimeView
    -Monthly
    -YTD
    -Trailing12Months
    Accounts
    -Revenue
    I easily got YTD working correctly with regular and time-balance accounts with the following MDX -
    AGGREGATE(PeriodsToDate([ReportingPeriod].Generations(2),ReportingPeriod.CurrentMember),[Monthly])
    But whatever MDX I try to implement Trailing12Months, I don't seem to be able to make any headway. Any ideas? Thank you!
    Edited by: user10655152 on Aug 15, 2012 3:34 PM
    Edited by: user10655152 on Aug 15, 2012 3:35 PM
    Edited by: user10655152 on Aug 15, 2012 3:35 PM
    Edited by: user10655152 on Aug 15, 2012 3:36 PM

    Thank you Dan. I had already successfully implemented the general idea suggested by Glenn. However, the problem there, as expected, was in the handling of TBLast accounts. The MDX below finally seems to give me trailing-12 months which also works correctly with TBLast accounts and the Qtr roll ups, although I'm not sure if this is the most efficient MDX possible for what I'm trying to achieve -
    ===Start MDX formula for member T12 of the outline earlier in the thread====
    AGGREGATE(
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-11)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-10)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-9)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-8)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-7)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-6)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-5)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-4)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-3)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-2)),
              ([Years].CurrentMember.NextMember,[ReportingPeriod].CurrentMember.Lag(-1)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(11)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(10)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(9)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(8)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(7)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(6)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(5)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(4)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(3)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(2)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember.Lag(1)),
              ([Years].CurrentMember,[ReportingPeriod].CurrentMember)
    , [Monthly])
    ===End MDX=====
    Only 12 of the 23 lines above will return non-empty results, so this works for me. Also, CurrentMember (without any Lag) needed to be listed last, so the TBLast accounts would show up correctly. I suppose this would still not work if my accounts dimension had a mix of TBLast and TBFirst/Avg members, but since I only have TBLast, I am fine for now. Thank you Glenn, your initial idea really helped an ASO newbie in need of direction!

  • Dear Customer Service Team,  I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I

    Dear Customer Service Team,
    I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I can not find it and now I only have access to the trial version.
    Thank you for your help in advance.
    Kind Regards,
    G. Zsolt

    There is no serial number require for Creative Cloud products, you may activate the products using your email address and password which is associated with Adobe. If your Dreamweaver asking for serial number, then make sure you are signing in with correct email address.
    You may also refer below link
    Sign in, activation, or connection errors | CS5.5 and later

  • I got a light room 5 and once i put in the serial number its asking for an older version serial number.  I had downloaded a 30 day trail few months back , but I dont hinki it had a serial number since it was only a trail version.

    I got a light room 5 and once i put in the serial number its asking for an older version serial number.  I had downloaded a 30 day trail few months back , but I dont hinki it had a serial number since it was only a trail version.  I got it directly from Adobe a few hours aga and when I am trying to call them, I am on hold for the last 30 mts

    You probably purchased a upgrade License so you will have to contact Adobe to get a refund and purchase the "Full Version".
    At this link. Products

  • Last twelve Months Folder not updating

    When I import photos into iPhoto, not all the photos will go into the Last Twelve Months folder. Some do some don't. They're all from the same camera. Seems like if I import a photo it should go directly into the folder, after all it's a Smart Folder.
    I did a search on the Forum because I thought I read at some point there's an issue with Last twelve Months if Photo Stream is enabled. Nothing came up in the search though.

    Joe:
    If the problem comes back you may have to try deleting the iPhoto preference file and see if that fixes it permanently.
    OT

  • I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    Is it getting hot only when charging?
    Not normal. Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • Rolling 12 months Actuals/Forecast

    I remember coming across an SAP How To PDF showing how to create a query where user inputs a specific period/month and dynamically all periods before the selected period populate with actuals and an perios /months remaining in the year will display forecast.  Again, this is dynamic depending on the period entered by the user and occurs on the same row.
    Can someone send me the link if you have it handy or if you know a solution, please share.

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    Let us assume you are storing the value of Fiscal Period entered by User in Variable ZPER. Also let us say you use characteristic Value Type to identify if data is Actuals or Forecast with Value Type 10 being Actuals and 20 being Forecast.<br>
    Then create a Restricted Key Figure Actuals which is restricted to 3 things: Key Figure, Value Type and Fiscal Period. Restrict the Value Type to 10 and restrict Fiscal Period in that key figures to value less than or equal to Variable ZPER. Secondly create a Restricted Key Figure Forecast which is restricted to 3 things: Key Figure, Value Type and Fiscal Period. Restrict Value Type to 20 and restrict Fiscal Period in that key figures to value greater than Variable ZPER.<br>
    Please check if you get desired results.
    <br><br>
    Hope it helps.<br><br>
    Cheers Abhijit<br>
    </FONT><FONT FACE = "Verdana", Font Color = "Red">
    </FONT>

  • 12 Months rolling forecast with prev. 4 month actuals - Integrated Planning

    Hi,
    What is the best practice for setting up a 12 month rolling planning with -4 months of actuals and +12 months of forecast with IP?
    Let's think about a very basic setup, Cost Center planning:
    - We have 2 infoproviders (for act/plan) and they are combined as a multiprovider and that is used on the aggregation level.
    In the planning layout/query:
    - On the lines Cost Elements are shown
    - On the columns periods and keyfigures are shown.
    The requirement is that actuals are shown for 4 previous months and planning is open & visible for the current month +11 months. We do not wish to show any actuals beside the figures for planning NOR old planned values beside the actuals for the previous months.
    Versioning works as follows: Zero version is always open for planning and snapshots are loaded into different versions at a given point in time. Actuals are also loaded as version 0.
    Value types are as usual: actual = 10, Plan = 20 and we use 0FISCPER for periods.
    So the result should be that we'll show 16 periods for each line (cost element) with the 4 first columns as static cells displaying only actuals and the 12 latter as input ready cells open for planning.
    All tips leading to workable solution are rewarded!
    -Miikka

    Hi
    Miikka Åkerman  
    how are you set 4 first columns as static cells displaying only actuals and the 12 latter as input ready cells open for planning.?
    and how about you designer cube that is include what characterices and key figure
    you said
    In the planning layout/query:
    - On the lines Cost Elements are shown
    - On the columns periods and keyfigures are shown.
    this periods is set as a keyfigures?
    Now I am face the same problem
    how to  set 4 first columns as static cells displaying only  and how to set the 12 latter as input ready cells open for planning.?
    if periods is move to next periods
    how to rolling this plan ??
    hope you can help me
    thanks a million

  • Updating Monthly Actuals - Better Approach?

    Does anyone have any experience or comments on these two approaches to the monthly process of loading actuals?
    1. Clear all fact records for existing month. Load the file data as-is.
    2. Keep existing fact records. Load the variance between current file and previous file (stored in a staging database)
    Wouldn't the second approach be ideal since the process would only get faster towards the end of month? It would also generate fewer records. Generally, the file will produce about 90K records each month.

    1. This process clear data - means the BPC is adding the value into the system with negative sign and you will 0 for values of that month
    Importing data after is adding the valuefrom your file into database
    2. This process is doing something similar with first:
    first is checking wwhat records are you importing into database for dimensions used by your application into work status.
    Usually Category, Time, Entity and after that is adding the diference into datbase only for tuples Category, Time, Entity from File.
    But even in this case is doing first a clear for that selected tuples and after that is adding the new values into system
    In my opinion I will say that first process is better and easier to follow. Depending by how big is the import file the second process is an option.
    For big files I suggest first approach for small file probably is better the second but even in that case I suggest to use the first one because it is easier to understand where is the problem if you have some bad values into database.
    Regards
    Sorin Radulescu

  • Insert twelve MONTH of the year into table A_MONTH

    Could some help me with my simple SQL programming. Thanks
    -Kenny
    REM 2. Creates a table names fungue_table_ssss_nnnnnn with columns named A_Month, A_Date, A_Radius and A_Area.
    Create table fungues_table_1442_794485 (
    A_Month int,
    A_Day date,
    A_Radius number(9),
    A_Area number(4));
    REM 3. Enters records into the table by using loops, where A_Month is the month of the year, spelled out fully in capital letters, beginning with JANUARY and ending with DECEMBER.
    Declare
    Max_record constant number := 12;
    I number := 1;
    Begin
    For I in 1..Max_record loop
    Insert into fungues_table_1442_794485
    (A_Month)
    values
    (I, sysdate);
    end loop;
    commit;
    end;
    null

    SQLJ and JDBC are APIs for accessing the database from Java.
    So do not be surprised there are not too many many takers for a PL/SQL programming exercise here. Or, try rewriting it in Java :)

  • Using YTD in BEx

    Hi,
    Fairly new to BEx. I'm trying to create a query that has the columns of Total and YTD and rows that show the past 3 years. My Total is being pulled directly from my multiprovider--so no issues. My YTD column is a restriction of this Total field, it is supposed to show the year to date total for each year (say if it's march then jan-march for 2011, 2010, 2009, etc). I have created this restriction by saying it should show values between the variables for first period of the year and enter fiscal period/year. My issue is that I am only getting results in the YTD column for the current year. I have tried setting an offset on the variable, but it is not working.
    Any suggestions?

    If you use variables on Fiscal Year Period, then the query would restrict to the year that the users enters for that variable. So you will not get any data for the two prior years that you are trying to get data for.
    It will be lot simpler if you have Fiscal Year and Posting Period available in your MultiProvider. Then you can create variable for just posting period only and that will give you your desired result. I have done that for my YTD as well as trailing twelve month calculations. Works great.
    Good Luck.
    MP.

  • TREND Function in Excel

    I have a large model that makes extensive use of the TREND function in excel to generate a baseline set of numbers from a Trailing Twelve month data array. Since TREND is not a supported function I tried to use the FORECAST function but the results are not as clean as the TREND results.  Is there any other way to do that (other than manually running the trend formulas for each cell)

    Amy,
    Thanks for the continued attention to my question.  Because the output of the TREND function is used to calculate other sections of the model as well as a to create a number of forecast scenarios I need it functioning inside X2008.  I will give the SDK a try if you can point me to it.  I found a link you had mentioned in another thread but it no longer works.  Also, do you by any chance know if TREND will be supported in SP1?  I am surprised, considering this software package is used for dashboards, there is not more support for the statistical functions of Excel.  Again, thanks for your help and have a great day.

  • 12 trailing months in MDX

    Hi,
    I've been trying to write a formula on a member of a SCENARIO dimension in an ASO database to calculate the last 12 trailing months of another member of SCENARIO. It's pretty easy when you have a unique dimension for both periods and years (thanks to the .Lag function), but I have two distinct dimensions - one for years and one for periods - in this database and haven't succeeded to write a correct formula yet.
    Basically what I need is TTMscenario = SUM(Last 12 months->"Actual scenario") in MDX
    Thanks a lot for your help,
    JM

    Use Tuplerange, it should work just like @Xrange in BSO.

Maybe you are looking for

  • Custom cursor using image gets resized bigger

    I have created a custom cursor using the following code: ClassLoader cl = this.getClass().getClassLoader();      Toolkit tk = Toolkit.getDefaultToolkit(); Image im = tk.getImage( cl.getResource("images/wallcursor.gif")); Cursor Custom_Cursor = tk.cre

  • File change for highest level page home page

    file change for highest level page home page When I got these files I would type server/mywork/bkb These files are in the server under the folders mywork/bkb When I type server/mywork/bkb The my index page would show up That's fine. Now, I created a

  • JTable Blank Rows When INSERT/DELETE in other panel with same ViewObject

    Hi, Jdev 10.1.2 JClient 2 panels based on same ViewObject in same AM One panel with Grid UI => JTable Other panel with Form UI When I insert or delete a record in the panel with Form UI and return to the panel with JTable blank rows are displayed. Th

  • Why does SunOne 6.1 call servlet init() method twice on startup

    Hi, SunOne6.1 sp 5 is running my servlet's init() method twice when I put load-on-startup in the web-xml file. Is this a known problem and is there a work around as no amount of synchronising seems to work. I'm running 2.3.dtd for the default_web.xml

  • Find out serial number without opening program

    I want to register my premiere elements editor 11 (bought it in the mac Appstore). Therefore I need the serial number. But since i work with yosemite, I can't load the program anymore. How can I find out the serial without loading the program?