Rolling Month Sum required

Hi ,
I like to achieve a functionality using the RSUM or Timeseries function but any of this would not help .
I have a report to show the sales for last 12 months in such a way that each month of that 12 months will show the sum up all sales for past 11 months + that month .
My requirement is that standing on Month - Apr2009 I like to see the sales value sum from May2008 to Apr2009 ,whereas standing on May 2009 I would like to see the sum of sales for each month from June 2008 to May2009 (where each month sales is not rolling sum rather individual month total sales).While I am using TODATE function in OBIEE 10.1.3.4 version it is showing the sum from Jan 2009 to Apr2009 (like Month to date) but my intension is to show the aggregated value in single dervied column using any of the analytic function to calculate the past 11 months aggregated value + that months sales to be represent in a single metrics.
The difficulty of achieving this by using MSUM is that it works on number of row to be displayed in report .Since I have a filter on date range from current date to currentdate-365 to show the relevant month in this range and to calculate the sum on basis of that.So using MSUM(Sales,12) for first month is not aggregating with past 11 months sales rather only showing that month sales data which is wrong .
Any response to achieve this functionality would be helpful for us .
Thanks in advance,
D

create an alias of the fact table in the physical layer
join factalias to timedim in physical layer using complex join as
TIMESTAMPADD( SQL_TSI_MONTH , -(12), Time.date) < fact.date and Time.date >= fact.date
bring this aliasfact table table to logical layer in the same subject area, join to time dim (and othe dims) using a complex join.
create necessary measures , such as 12monthsales
move new table to presentation layer
use this new 12monthsales columns in report
so when you use time, it wont cut you off at the first month, but will go 12 month back for each month.
hope this helps

Similar Messages

  • Rolling month for webi report using Univ based on BEX Query

    Dear Experts,
    I'm new to OLAP universes.
    We have a requirements of having last 12 months rolling  for given measure(Key figure) in webi report using Univ based on Bex Query.
    We require a calmonth (time dimension) object  (restricted for last 12 months) where user can drag and drop on column section of cross-tab table.  User should drag more than one Key figure ( for ex. sales rev and & qty sold) for each month
    Could you please provide me the solution to do this?
    Thanks
    Akshara

    Hi Henry,
    Thank  you for your response.
    BEx query has not been created yet. we need to create accordingly and require your help in creating the same.
    Regarding reporting requirements,  User wants to have adhoc reporting  with rolling months ( 12 months or 6 months) functionality. Users want to link any KF to this rolling months dimension.
    If we can't have this, what is the alternative that we can propose to user.
    Thanks
    Akshara.

  • Rolling Month in Billing Plan in Sales Order

    I Require rolling month billing dates in Sales Orders . Kindly help on the same the followng format is required.
    Contract Start Date : 05.01.2010
    Contract End Date : 31.03.2010
    Settlement From   Settlement to    Billing Date
    05.01.2010            04.02.2010     04.02.2010
    05.02.2010            04.03.2010     04.03.2010
    05.03.2010            31.03.2010     31.03.2010.
    If there are any user exits where i can make these changes or if there are any configurations that i  can change then suggest.
    Thanx in Advance.
    Dilip

    You have to enable the PERIODIC BILLING as the billing plan for your case.
    You can refer to the OSS note 831158 which gives lot of other OSS notes for you to configure the scenario.

  • Rolling month at repot level

    Is it possible to adding rolling 12 month at the report level? Does a formula need to be added or is there is an example I can see. I saw an example where the rolling months can be entered by the user but in this case th the # of monts need to be 12.
    Thank you

    suser,
    In the report add the below filter condition
    u can replace 6 with 12 incase of 12 months
    if u want to use max date available in database instead of current_Date ,create a rep variable which ll give u max(report_Date) use that in formula
    timestampdiff(slq...... , -12, valueof(rep_Var) and valueof(rep_var)
    http://img4.imageshack.us/img4/8607/filtersh.jpg

  • Rolling months in HFR ---- Really Urgent

    Hi All,
    We are using HRF to generate Reports connecting to and Essbase Database 11.1.2 Versions,
    in HFR we need 12 rolling months as per user request,
    User will select one Period and he need previous 11 months information...
    I tried to Period -1 to Period -11 function period is changing fine but problem is with Year Dim.. how Year will change
    Here user may select DEC of current Year and he need information of previous 11 months which falls in previous year...
    How the Year will change this is Big Challenge we are facing ......
    It would be grate help..... we have to present to client by today EOD........
    Regards
    Vijay
    Edited by: SVK on Sep 6, 2010 2:02 PM

    one way to do this is to use point of view with the range function, using conditional suppression:
    so that you have:
    - prior year with month (from POV to Dec) hiding POV
    - current year with month (from Jan to POV)
    (assuming you run a Jan to Dec year in your month outline/financial calendar)

  • Dynamically rolling months forward in Analyzer with HFM data source

    I'm building a dashboard in Analyzer 7.0. I want the reports to dynamically update each month so a user does not have to go in and change the month on each report. Normally I would use a sub variable (i.e. cur_month) however, the datasource is not Essbase, it's HFM.Anyone else using HFM as a data source and found a feesible way to roll months forward in Analyzer after the close? I looked at Personal variables, but that still leaves me with the same problem of someone having to go in and update each users personal variables.Suggestions are appreciated as well.Thanks,Gary CrisciSenior ConsultantPinnacle Group, [email protected]

    I came up with a working solution. Analyzer allows you to retreive member lists from HFM. I created a member list called 'Current Month' and assigned a single member to it. I then pull the report using the member list and get the current month view. Now the admin only has to update the meber list once a month when the close is finished and all reports will "Dynamically" roll forward.Regards,

  • Team calendar - rolling month

    Hi all
    Just wondering if anyone has found a way to have the team calendar show a rolling month i.e. rather than a static month (1 - 31), show 15 days prior to todays date and 15 days after todays date.
    Our managers get annoyed towards the end of the month as they have to continuously change between the current and next month in order to see if people are at work (we run a fortnightly payroll, not monthly).
    Any feedback would be appreciated.
    PS

    Nachy,
    All of these have start dates in 2009, whereas, we can't see data for previous months in 2010. I believe the relationship I mentioned in the initial post is responsible, even though there are enteries before it that are ignored.
    We just discovered this and we are live. (i.e. this is production environment) Your prompt replies will be highly appreciated.
    Regards,
    Motaz

  • Rolling months - Time series function

    Hi,
    I am new to OBIEE and this forum, and wondering someone could guide me through this requirement.
    I have a requirement that User needs to see inventory for rolling past 13 months, and should display inventory numbers(snapshot) for the first day of the month.
    Date     Inventory $
    1-Jan-12     46652
    1-Feb-12     25145
    1-Mar-12     78542
    1-Apr-12     45215
    1-May-12     24156
    1-Jun-12     98541
    1-Jul-12     21478
    1-Aug-12     25144
    1-Sep-12     26545
    1-Oct-12     48855
    1-Nov-12     45698
    1-Dec-12     12546
    1-Jan-13     26586
    How can I get past rolling 13 months in OBIEE? I have a variable created for "Rolling 13 months" and "First Day of month", but I guess they are not working when combined. Please advise.
    Thanks,
    P

    If I understand correctly, I'd put a filter on the Date column using the Timestampadd function available in OBIEE. Something like:
    "Table"."Date">= Timestampadd(SQL_TSI_MONTH, -13, MONTH("Table"."Date")
    Let me know if this is not what you were looking for.
    Please award points if helpful/correct.

  • Rolling Months

    I created 12 rolling session variables to use to get 12 month rolling sums for my report. After creating the variables i made this filter to get sums for my GL balances (12 months ending).
    FILTER ("Facts - GL Balance"."Balance Amount") USING ("Time"."Fiscal Period End Date" BETWEEN VALUEOF(NQ_SESSION.PERIOD_START_11AGO) and VALUEOF(NQ_SESSION.PERIOD_END_00))
    this filter works only for 12 periods from the current date (NQ_SESSION.PERIOD_END_00) - how can I expand my range to include all the fiscal periods from 2002 to 2011, right now the report only gives me 12 periods from 10/31/2011 to 11/30/2010... for some reason my filter is limiting me, how can i circumvent this.... any help wld be apprceiated!!!!

    Thank you Deepak, you guided me correctly it is working for my 12/31 end of month dates bcoz it is rolling summed months from january. All other dates when selected from droplist are a sum from jan and not 12 months ago, i did all teh steps how can i now make the data correct- thanks
    Edited by: 846431 on Nov 2, 2011 9:21 AM

  • Rolling months display

    Hi All,
    My requirement is such that the charts and cross tabs should display rolling 13 months from the selected month in the dropdown.
    My dropdown code at startup is:
    DROPDOWN_1.setItems(DS_1.getMemberList("0CALMONTH",MemberPresentation.Text,MemberDisplay.Key,13));
    DROPDOWN_1.setSelectedValue(DS_1.getVariableValueExt("ZE_CALMON"));
    On select code of dropdown is:
    DS_1.setFilter("0CALMONTH",DROPDOWN_1.getSelectedValue());
    But am not getting the rolling 13 months on selecting a calendar month in dropdown. Charts show data only for that particular date selected.
    Please can you let me know what should be the solution.
    Thanks & Regards
    Swasti

    Hi Fazith,
    The solution for Dropdown is not working for Dimension Filter as the method setSelectedValue is not present for filters.
    I tried the code:
    APPLICATION.setVariableValue("ZE_CALMON",DS_ALL_MAIN.getFilterText("0CALMONTH")) in the On Apply event for the filter. But am getting the error "The application does not exist" when a value is selected in filter.
    Am assuming that the query is not able to resolve at the first instance? Any idea on where it is going wrong or how it can be resolved?
    Many Thanks in advance
    Swasti

  • Roll-UP help required.

    HI All,
    I want to roll up values @ Acct name level. If the account name is same for two different accounts then I want two entries for the same account name as mentioned in third table below. This indicated us that this is an data issue. CAn it be achived ? Please help.
    TABLE DATA:               
    ACCT NUM     ACCT NAME      COUNTS_Website     Counts_Mobile
    ABC          Infosys          10          5
    BCD          Microsoft     6          4
    CDE          IBM          3          8
    DEF          Intel          7          3
    EFG          Intel          5          3
    Total                     31          23
    ACCT NAME      COUNTS_Website     Counts_Mobile     
    Infosys          10          5     
    Microsoft     6          4     
    IBM          3          8     
    Intel          12          6     
    Total           31          23     
    ACCT NAME      COUNTS_Website     Counts_Mobile     
    Infosys          10          5     
    Microsoft     6          4     
    IBM          3          8     
    Intel          7          3     
    Intel          5          3     
    Total           31          23     

    The solution proposed by frank gives you the data you have said you are looking for....
    SQL> WITH table_data
      2       AS (SELECT 'ABC' acct_num,
      3                  'Infosys' acct_name,
      4                  10 counts_website,
      5                  5 counts_mobile
      6             FROM DUAL
      7           UNION ALL
      8           SELECT 'BCD' acct_num,
      9                  'Microsoft' acct_name,
    10                  6 counts_website,
    11                  4 counts_mobile
    12             FROM DUAL
    13           UNION ALL
    14           SELECT 'CDE' acct_num,
    15                  'IBM' acct_name,
    16                  3 counts_website,
    17                  8 counts_mobile
    18             FROM DUAL
    19           UNION ALL
    20           SELECT 'DEF' acct_num,
    21                  'Intel' acct_name,
    22                  7 counts_website,
    23                  3 counts_mobile
    24             FROM DUAL
    25           UNION ALL
    26           SELECT 'EFG' acct_num,
    27                  'Intel' acct_name,
    28                  5 counts_website,
    29                  3 counts_mobile
    30             FROM DUAL)
    31    SELECT acct_name, SUM (counts_website), SUM (counts_mobile)
    32      FROM table_data
    33  GROUP BY GROUPING SETS ( (acct_num, acct_name), ())
    34  /
    ACCT_NAME SUM(COUNTS_WEBSITE) SUM(COUNTS_MOBILE)
    Infosys                    10                  5
    Microsoft                   6                  4
    IBM                         3                  8
    Intel                       7                  3
    Intel                       5                  3
                               31                 23David
    Edited by: Bravid on Aug 31, 2011 2:33 PM

  • Need template with daily entries, & monthly sums & year-to-date sums

    I'm trying to find a budget template for Numbers -- adapted from the checkbook template, maybe? --
    where one can enter daily transactions (with category) in 12 different monthly tables, show each month's category sums in tables next to the daily ones,
    and also have a table for Year-to-Date category sums, probably at the top of the whole thing.
    In other words, each individual transaction would have to be added to its monthly category table, AND to the Year-to-Date category table.
    Has anyone done this?  Can it be done in Numbers?
    Thanks.

    Hi Jackie,
    That makes more sense than my original reading. The function you are looking for is "SUMIFS."
    Here's an example, with the transactions recorded in the "Data" table, and the January sums reported in the "Summary" table.
    "Data" contains no formulas.
    On "Summary":
    A1 contains the start date, Jan 1, 2012.
    The rest of column A contains the category names, which must exactly match the names used in the Data table.
    B2 contains the formula, which is filled down the rest of column B:
    Summary::B2: =SUMIFS(Data::$C,Data::$B,"="&A,Data::A,">="&$A$1,Data::$A,"<="&EOMONTH($A$1,0) )
    For an amount to be included in the SUM, three conditions must be met:
    -- The transaction category must match the category in that row of Summary.
    -- The transaction date must be on or after the date in A1 of Summary
    -- The transaction date must be on or before the last day of the month in A1 of Summary.
    Regards,
    Barry

  • Rolling averages/sums for counts

    I am a new user (business objects 12 relaease 2)
    I would like to build a report in web intelligence displaying the average count of the number of records per day, where the average is calculated for a rolling window of days.
    For example a rolling daily average count of records using a 3 day window would be caluculated by:
    Summing the counts of records for the last three days and dividing by 3
    I would like to include this rolling average in a table for a specified of time period, say the last 30 days. My table would have two rows the top row would be the date and would hgave 30 entries, inbe for each of  the previous 30 days, The scond row would have the 3 day rolling average for each of the 30 days. This table format will also allow me to graph the table
    An additional problem arises becasue there are some dates that have no data. I need to include those dates, but Web Intelligence won't display them. Is there a way of displaying dates with no values in the table?

    John Berezowski,
    In response to your question: "An additional problem arises becasue there are some dates that have no data. I need to include those dates, but Web Intelligence won't display them. Is there a way of displaying dates with no values in the table?"
    The solution is to build a "backend table" in your data base that has all of the applicable dates accounted for.  Then modify your universe by linking this new table to your pre-existing table and process as a left outer join (providing that this new table is on the "left" side, otherwise a full outer join will suffice due to the manner that you've built your table).
    A technique you can apply to the other columns used in your original table would be the use of the "coalesce" function to avoid nulls and transform unjoined values to spaces (or zero or some other value for integers). 
    thanks,
    John

  • Rolling Months - Month By Month based on month of variable ending date

    Post Author: jeffr
    CA Forum: Formula
    Hi,
    We want to do a rolling 3 month report, based on the ending month where the ending date is entered as a run time parameter, for example run-time parameter - {?Ending Date} entered is 15 June 2007
    First month - should have all of June 2007
    Previous month shoud have all of May 2007
    Earlier month should have all of April 2007
    We tried Month() = Month({?Ending Date}) for current month and
    Month () = Month (DateAdd("m",-1,({?Ending Date}))), and
    Month () = Month (DateAdd("m",-2,({?Ending Date}))) 
    but they didnt work successfully
    Could someone please let us know the best way to do it with Crystal X?
    Thanks

    Post Author: Charliy
    CA Forum: Formula
    You need to get six dates set up as formulas 
    BOM3 = date(year({?parameter}),month(),1)   First day of Month3 = June 1
    EOM3 - do a dateadd of one month to your parameter, then follow above example to make it the first day of next month and subtract one day
    BOM2 first day of EOM2
    EOM2=- BOM3-1
    BOM1  first day of EOM1
    EOM! = BOM2 -1

  • 5 months rolling monthly report by fetching data from cache & Database

    Scenario: One monthly report would be created each month end which contains one summary tab and other details tabs. Summary tabs will contain the data of all the months summary data (current month and previous months)
    Problem:
    Current month data have to come directly from database and previous months data come form cache and whole thing will be cached this time so that when we run next month report the data till this month will also come from cache.
    Any one please help me ASAP.

    What's wrong with F_GET_COMPANY_CODE ?  Below is similar code - try running this and seeing what you get:
    report zlocal_jc_t001w.
    tables:
      t001k,     "Valuation area
      t001w.     "Plants/Branches
    parameters:
      p_bukrs          like t001k-bukrs default '1000'.
    select-options:
      s_werks          for t001w-werks.
    start-of-selection.
      perform get_data.
    *&      Form  get_data
    form get_data.
      data:
        begin of gt_t001k occurs 10,
          bukrs             like t001k-bukrs,
          bwkey             like t001k-bwkey,
          werks             like t001w-werks,
        end of gt_t001k.
      select
        t001k~bukrs
        t001k~bwkey
        t001w~werks
        into corresponding fields of table gt_t001k
        from t001k as t001k
        inner join t001w as t001w on t001w~bwkey = t001k~bwkey
        where t001k~bukrs = p_bukrs
        and   t001w~werks in s_werks.
      loop at gt_t001k.
        write: /
          gt_t001k-bukrs,
          gt_t001k-bwkey,
          gt_t001k-werks.
      endloop.
    endform.                    "get_data
    As for links to locally defined database tables, that will depend on what the keys defined in SE11 are e.g. there will be a primary key plus relationships to other tables (for example "WERKS LIKE YSDA_EXP_PRTLOG-YY_PLANT" indicates YY_PLANT relates to T001W).
    Jonathan

Maybe you are looking for