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

Similar Messages

  • 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

  • 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

  • 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.

  • Having to reorder twice and waiting a month to fin...

    I ordered BT Broadband with BT about a month and a half ago (the first order)! I asked for a new line(not the exsisting line) i placed the online order and set everything up happy days or so i thought!!! new internet very soon. A few days later my brother had an email through saying his broadband had been ask to be terminated by BT(on the exsisting line) I specifically said i wanted a new line installed.
    So anyway i phoned BT automated **bleep** line that needs replacing with real people from the UK and create jobs in the UK rather then India or do away with the automated system completely. RANT over. I was then told i had to cancel the order, get my brother to cancel the termination of his broadband, Job done. I complained a bit (not to aggressively) about the cancellation of the order and that i asked for a new line installation and i was then put through to a UK BT sales person to set up a new order!
    I set the order up was given some story i could get free BT vision for a year as i was messed around, then told i wasn't allowed it (was this to sweeten me up i now ask myself).
    The nice speaking English woman then said i could have the same contract BT Broadband Option1 twelve month contract so on. But that i couldn't pay for the line rental saver straight away and that i had to do this when the connection was set-up(fair enough i thought) They took my email address over the phone but never gave me a btinternet.com address.
    I received an email from BT stating i had to confirm my email address but when i entered my details i always got an error please try again later. I then logged into MyBT page and discovered i had to wait 3 weeks until i received my BT homehub and the engineer to come round and install the line. thought ok this is a long time to wait but so be  it.
    7th of november arrived great new internet to be installed today i woke early thinking there was gonna be a problem today, helped dad rig up some new cables around the house!! waited for the engineer waited  and waited no router delivery either well mid afternoon i phone BT up again and after the 3rd call got through to some one.
    Now to my shock and horror i was told that my order had failed for some reason which wasn't explained and that neither the engineer nor my router would turn up. Then to even more shock i was told that i would have to have this order cancelled and then reorder it after 24hrs. B y this time i was a little angry(no steam coming out my ears as to yet) I then asked why the order had to be cancelled and the pretty sounding Indian women gave no answer and repeated that there was a problem with the order. I then angrily said that the problem was your end and that i was lead to believe that my order was supposed to be set-up that day! Which the woman then stayed quiet and didn't respond no answer after about 30 seconds i repeat my question with i am sorry sir. an then no response i stayed on the phone with her ignoring me for at least a minute and said what can be done about this. you should be able to sort it out. repsonse was that i had to reorder then have to wait again for 3 weeks.
    I then asked to be put through to a manager 5 minutes later of music and i was through i explained what had happened and he said he would make some inquiries. 5 minutes later he came back(more Music) and said i had to phone back tomorrow and that it was something  like it was the engineers fault this happened and that i would probably have to reorder.
    If it was the engineers fault why would i have to reorder couldn't they just send him out a few days later. No very annoyed me and shocked have to reorder again and wait for how long i do not know! perhaps the order will fail again.
    I  have had to take a day out of work and need this new connection for my work!
    Can anyone shed some light on why this happened and whether there is a fast track service to get me up and running!
    SOME FEED BACK WOULD BE GREATLY APPRECIATED

    If you would like to contact one of the UK based BT Care Team who moderate this forum, they should be able to help you.
    They can be contacted using this link BT Care Team
    They normally respond by phone or e-mail, within three working days, however you should get an immediate confirmation, with a tracking number.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • IPhoto "Last 12 months" only shows 1 month from March-April

    On August 24th I imported some film into my iPhoto. Well I finally have a chance to go edit it and it is not there. After searching for it on iPhoto and my computer and an external hard drive- all just in case- I discovered that my iPhoto will only open up photos/video from 3/20/13-4/27/13. It says that that is what I uploaded in the last 12 months...I have uploaded a lot more than that and used it to create videos and export photos from my iPhone.
    I can't find my videos anywhere and it is for a project due on Monday.
    Can anyone help?

    Wondering: what happens to photos in the Last 12 Months folder, which have not been sorted into other albums, after 12 months..? -
    Nothing happens to them. The last twelve months album is just a window, showing you a current selection of your photos.  You can access all photos in your library either from the Photos view or from the "events" view. Each photo is a member of one of the events.
    You can define your own "last xxx month" albums with a different date range by defining a smart album from the File menu.
    Format the date according to the date format in your region settings.

  • Using an expression in SSRS to display rolling 12 month and year to date volumes

    I need some help in writing an expression in SSRS. I have a table that contains date columns and rows that contain different types of data groups. (e.g. total number of items received during the month, total dollars for the month, etc.) I want to add two
    new columns to the end of the report that will display a rolling twelve month total for each of the different rows of data. Plus a column that would show year to date totals for the same rows.
    I was thinking I could accomplish this by adding expressions for each row in the new 'rolling twelve month' and 'YTD' columns in my report however, I'm not sure how to structure the expressions to achieve this.
    Here is an example of how my report currently looks. (I added a pipe delimeter in case the formatting changes once this is submitted.)
                             Jan-2014 | Feb-2014 | Mar-2014 | Apr-2014 | Rolling 12 mth | YTD
    Items received     100 | 35 | 45 | 12 | 192 | 192
    Dollars                $50.00 | $25.00 | $120.00 | $15.00 | $210.00 | $210.00
    Any guidance you can provide would be appreciated.
    Thank you  

    This example shows how to get what you need. It'll take modifying your query to add two cased columns onto the end.
    DECLARE @forumTable TABLE (periodYear INT, periodMonth INT, periodMonthName VARCHAR(12), periodDollars MONEY, periodItems INT)
    DECLARE @i INT = 0
    SET NOCOUNT ON
    WHILE @i < 24
    BEGIN
    INSERT INTO @forumTable (periodYear, periodMonth, periodMonthName, periodDollars, periodItems)
    VALUES (YEAR(DATEADD(MONTH,-@i,GETDATE())), Month(DATEADD(MONTH,-@i,GETDATE())), DATENAME(MONTH,DATEADD(MONTH,-@i,GETDATE())), 1000-@i, 100-@i)
    SET @i = @i+1
    END
    SET NOCOUNT OFF
    SELECT *,
    CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodItems ELSE 0 END AS ytdItems,
    CASE WHEN CONVERT(VARCHAR,periodYear) + '-' + CONVERT(VARCHAR,periodMonth) + '-01' > DATEADD(MONTH,-12,GETDATE()) THEN periodDollars ELSE 0 END AS ytdDollars
    FROM @forumTable

  • Subject: How to get a rolling window  query of last 12 months?

    Subject: How to get a rolling window of last 12 months?
    I am developing a report on 0TCT_C21. I want to compare process chain execution time for every month for last twelve months to see a trending report.
    How can I determine this information dynamically, i.e., when report is run, let us say in Dec 2009, it will show me 12 columns: Jan to Dec 2009, but if report was run in Dec 2010, it will show   12 columns results from Jan to Dec 2010.
    Any information will be greatly appreciated.

    Hi,
    Keep offset value-1, -2, -3, ... -11 for 0Calmonth.

Maybe you are looking for