Sytanx for 12 months rolling data

Hi,
What is the syntax for generating the last 12months rolling data?
I
tried with this syntax but does not seem to work.  When crossed verified with the dates, its showing all the dates.
Datediff("m",Date({CHG_Change.Considered Res Time}),CurrentDate)<=11
Regards
Cauvery.

It depends what you want , do you want 12 months from current date or 12 months from the start of the month of the current date.
12 months from current date
{CHG_Change.Considered Res Time} > dateadd("m", -12, currentdate)
it will automatically calculate midnight for start date
12 months from 1st of month
{CHG_Change.Considered Res Time} > date(year(dateadd("m", -12, currentdate)), month(dateadd("m", -12, currentdate)
), 1)
Ian

Similar Messages

  • 12 months Rolling data

    Hai friends,
    Urgent requirement. Plz help me out.
    I have time characteristics Fiscal year(0fiscalyear) and Posting Period (0fiscper3). Based on these I will create 2 user input variables one for fiscal year and another for posting period. Now Based on input , I have to get 12 months rolling data. Key figure is sales.
    suppose user enter fiscal year as 2008 and posting period as 02. I have to get sales data for 01/2008,12/2007,11/2007...................02/2007.
    I have to write user exit. Plz help me with ABAP code. Am weak in ABAP coding. Help will be rewarded.
    Full points assured if the answer is helpful.
    thanks in advance
    Edited by: siddharth on Feb 7, 2008 5:33 AM

    Hai pradhiba,
    Thanks for your response. But there is no data for 0fiscper(fiscal year/period) in my cube. That is the problem. SO i have to write exit. Plz help me out. Its an urgent requirement. I have to do it today and submit to client.

  • Can I sign up for a month of data with Verizon without auto renewal and how long can I go without using my sim card before it is deactivated?

    When I checked out Verizon's data plans online, the only option I saw that did not involve automatic renewals was the option to pay $5 for a day of 300 MB. The other options (e.g., $20/month for 1GB) all appeared to involve automatic renewals every month unless I go in and cancel the plan. However, during a chat, a Verizon representative told me that auto renewal of the prepaid plans is an option that can be avoided, it just isn't listed in the online information. Has anyone found a way to only sign up for one month of data without having to cancel the next payment?
    Also, when I looked online at a site that compared data plans, it stated that one needed to use the Verizon network every 4 months or else the sim card would be permanently deactivated. But in a couple of online discussions, the limit was listed as being 3 months. Verizon told me 6 months. Does anyone know which is currently correct?
    Finally, I have heard that if the sim card does become deactivated, Verizon tends to insist on making one buy a new one with a regular data plan and not the prepaid options.Has anyone had any experience with this?

    GeekBoy.from.Illinois thank you for replying. I tried the Verizon support forum, but before I can ask a question there I need to register, and the first step in registering is entering my mobile phone number. Since I don't have a Verizon phone, I can't register and, therefore, can't ask any questions. I did look through previous questions and answers, but it only confirmed that Verizon employees do not give out consistently correct information. I guess I will try talking or chatting with two of three more of them and hope that whatever the majority answers are will be the correct ones.

  • Dyamic execution of report for every month and data through mail.

    Dear Friends,
    We are using ECC6.00 With EHP4. My requirement is to send the list of pending notifications with the list details as appearing in transaction QM10. Every month i am supposed to change the from date and to date for example 01.07.2010 to 31.07.2010 for the month July.
    How can i make system calculate the from and to date for every month and send mail.
    I can schedule the  job using SM36 but how to make system calculate the from and to date dynamically for every month. i.e., for august system should calculate date 01.08.2010 to 30.08.2010 automatically as the next month is reached.
    Experts help required.
    Regards,
    M.M

    1. You need to create a variant.
    2. In this blank out the date and give all the required values which will filter for the Pending nofitications like notificaiton type, status, etc.
    3. Then click save.
    4. When you click save it will give you an option to save as variant.
    5. Now in the Variant Attributes screen give the variant name/meanting
    6. In the below you will get a "objects for selection screen)
    7. In the same you will get the filed name calle d" notification date"/
    8. Here Move the curson to the righ side you will find the selection variable, change to D-Dyanamic date calcuation  and after that right side you will see one more column for the name of variable(input using only f4)
    9. Here press f4,
    10. then  ypou get a pop up for selection varaible. there first Put "I: for current date and also 'I" for hte Current date +/- ??? days
    in this give 30 days.
    11. You can also use other function her.e
    Now once the variant is created then you have to schedule a job for this program + variant in the sm36 and in the distribution list
    you need to mention the email
    check and let me know for the feedback
    reg
    dsk

  • Best excel layout for multi months of data and multiple metrics?

    Are there ways around a pivot table?
    Xcelsius Enterprise - SP3  BOXI31 SP3
    Requirement;
    Chart (combo - line and bar)
    Monthly data (refresh)
    13 rolling months
    4 "levels" of filtering
    16 metrics
    Do I have to use a pivot table to align the 13 months across the top of the sprdsht,  trying to utilize QaaWS, however,  we still would have to create the pivot table after refresh.  Looks like Rich Client might work to push universe data to excel?
    Edited by: Michael on Jul 13, 2010 4:51 PM

    Simple solution:
    Make a filter box (dropdown) and set it so that there are 4 of them.
    Write out all your data alike: Option1 Option2 Option3 Option4 Metric Score
    Put the filter box on the entire area of your data (all 6 columns), it will automatically make the 4 filters populated with the possibilities in the dataset.
    Copy the resultrows of the filtering to another area, put the chart on that one (and use index or so to pick the metric you want to see).
    Edited by: Roeland Nieuwenhuis on Jul 14, 2010 1:32 PM

  • How do I pay for another month of data when the month ends?

    Is there a customer service rep I can talk to?  This has been nothing but a runaround so far.  I want to pay this company money so that I can continue to use their service.  Why do they make that so hard?

    If you want to go the prepaid route, the easiest way is to sign into  the Verizon web page using the phone number of your device.  Add a credit card number to your Verizon account.  Using a land line, call 1 800 922 0204 = Customer service.  After you give the phone # of your device and your PIN #, you get the option of adding money to your escrow account.  You can add between $15 and $195. It is a fully automated system. 
    Then, when your device runs out of time or GB, you just try to open any web page with your laptop/tablet using the MiFi or jet-pack through a WiFi connection.    Instead of getting the web page you want, you will get the "pay up" portal with 3 choices.  Pick the plan you want and pick "pay with account".  You still have to disconnect and power down the device.  After restarting the device, all should work OK.
    After about 15 minutes, sign into your web page.  You will see your escrow balance goes down by the amount of your plan and your jet-pack has GB ready to use.  At least, that is how it should work.    
    Have fun,
    Dave

  • Rolling 12MTD ( 12 months to date)

    my requirement is i have to display total , Pass and Fail records from rolling 12 months to to_date for every region.
    Can i create one logical column in BMM layer for 12 months to date as time dimension . (i don't know how to create with AGO and Todate combination) .
    (FYI: already i have time dimensions like year > quarter > month> date. )
    Please help me to solve this issue.
    Thanks in advance for your help.

    Hi,
    The 3 measures should be aggregated as Sum in the logical layer. Create a dynamic repository variable in the RPD for "PREV_YEAR_AGO" with logic like select add_months(TO_DATE(SYSDATE, 'DD/MM/YY'), -12) from dual. After these are set up and saved, create an Answers report. Set the Day Date as a filter and have the Operator as "is greater than", click "Add" > "Variable" > "Repository" and then type "PREV_YEAR_AGO" (or whatever you called your repository variable). The report should show the sum of the measures for the past 12 months only.
    Hope that helps,
    J

  • Discrepancy between OD entered in Months and Dates

    Hi all,
    We are facing a problem while entering the OD in Months.
    Example :
    When we enter the duration as 8m (for 8 Months) the dates shown are :
    12-Feb-10 to 10-Aug-10. The dates which we want are 12-Feb-10 to 12-Oct-10.
    The calendar selected is a 7 day week calendar and hours setting are 8 hours / day
    Also the Time Units user preferences are set to 8 hours / day.
    For the moment, we adjust the dates by selecting them irrespective of the OD.
    Kindly advise suitably.
    With Warm Regards,
    Uhde India Planning

    first of all, you should consider conversion of input data and scheduling (F9) as two different things.
    P6 versions prior to v7 use the admin prefs for time units (default values are 8h/d, 40h/w, 172h/m, 2000h/y) to convert between input unit of time for durations and the user pref display unit of time for durations.
    if you so choose (but I would recommend against it), you can allow different users to use different conversion sets (checkbox under admin/ admin prefs) and define custom user conversion sets (under edit/ user prefs).
    also check viewing options (under user prefs) for time sub-units, decimal points for duration fields and date-time (not just date) for date fields.
    the value you input in a duration field (such as OD of let's say "2m") is converted into h based on the aplicable h/m setting (=> 2*172=344h), and then back into whatever the user has set as display unit for durations (let's assume days => 344/8=43d displayed in the OD field).
    when scheduling (F9), the activity planned (early) finish date (& time) is calculated as planned (early) start date (& time) + original duration working hour count
    regardless of what the OD field displays in days (!). the database level name of the OD field is just that "target_duration_hr_cnt"
    scheduling is done by taking into account applicable activity/resource calendar first (depending on activity type), and then h/d for different days, d/m for different months, etc (as defined for the calendar in use). in other words, considering daily working period, lunch breaks, weekends, holidays, custom calendar exceptions.
    there are numerous other settings for scheduling (check out scheduling options). levelling (Shift+F9) is basically scheduling that comes with its own set of options and takes things to the next level by considering resource avaliability, float, maximum overallocation, network, constraints or custom project & activity levelling priority, etc.
    long story short :)
    the expected PF = PS + OD - 1 holds for Planned Start of Jan 1 + Original Duration of 3d = Planned Finish of Jan 3 but not for OD of 3m.
    whenever possible, you should try to build your schedule using:
    - relatively short activities (order of days or even hours =>durations input in days or even hours). the fewer conversions needed when inputing, the better.
    - consistent h/d, d/w within a given month. the fewer calendar exceptions the better.
    - correlation between the admin duration conversion set (8,40,172,2000) and activity/resource calendars (8h/d, 5d/w used for activity scheduling) and default calendar (used for duration and dates roll-up onto grouping bands)
    while scheduling is the same, P6v7 has improved the conversion mechanism in the way that the set of conversion rates to be used for conversion inbetween units of time (h,d,w,m,y) for duration fields (OD,RD,etc) is now available at the calendar level.
    this way, all (task-dependent) activities using the same (activity) calendar will convert inbetween the above mentioned duration units using the same ratios, set at the calendar level. the admin setting is somewhat obsolete.
    conversions are more consistent with calendar definitions, but that still doesn't mean that lunch breaks, weekends, holidays or custom calendar exceptions, as defined for the applicable calendar, will be considered when converting an input of "2m" into "43d" as displayed in the Original Duration field.
    if calendar conversion set says 1m=172h and 1d=8h, 2m=43d from Jan till Dec or the end of time for that matter :)
    the fact is that "2m" changes within the year, "2d" can vary within a month, week, etc
    it is safe to say that 1h stays the same and is usually either working or non-working, throughout the schedule of your multi-annual project
    that is unless you really really need sub-units of 0.25h or 3h 3mn, start / finish dates & time, coffe breaks from 10:30 to 11:00 and such :)
    Edited by: Tibi on Mar 9, 2010 4:20 PM
    Edited by: Tibi on Mar 9, 2010 4:21 PM

  • Month to date Actual vs Forecast

    Hi Experts,
    we have Reporting Requirement like
    we have monthly sales forecast product vise and sales actuals daywise, now we need to design the Report which shows Actual vs forecast Month to date.
    to design a report for actuals month to date we can get straightfarword, when comming to forecast we have a monthly target so when we showing the actual vs forecast month to date, i need to derive the forecast value as of date(1st of month to current date) from monthly forecast.
    for example my month forecast is 180EA,
    lets assume we are in 10th day of the month
                               10th MAy
    Actual                 50  EA              -
    (month to date - 1st May to 10th May)           
    Forecast             60  -
    calculation month target * 10/30
    how can we achive this Requirement.
    Thanks & Regards
    Chandra

    Hi Experts
    Thanks for for quick response,
    Here i need to show the Report month to date  like if we are 10th may(say month target is 270 EA )
                     1st  2nd  3rd  4th  5th  6th  7th  8th 9th 10th
    Actual       10   18    25   30    45  55   65   70   80   85
    Forecast   9     18    27  36    45   54   63   72   81   90
    Here actual, fore cast values needs to aggregate with previous dates value.
    like   3rd may actual = 1st may actual + 2nd may actual + 3rd may actual
          3rd may Forecast = 1st may Forecast + 2nd may Forecast+ 3rd may Forecast
      4th may actual = 1st may actual + 2nd may actual + 3rd may actual + 4th may actual
    4th may Forecast = 1st may Forecast + 2nd may Forecast+ 3rd may Forecast + 4th may Forecast
    can any one suggets me  how can we achive this requirement.
    Thanks & Regards
    Chandra

  • J1INQEFILE is not generating for the month of March 2011

    Hi,
    J1INQEFILE is not generating for the month of March 2011, we have executed Qefile from 01/01/2011 to 31/03/2011 then file is generating but March 2011 data is not available.
    Problem is challans were updated in the month of April 2011 for March 2011 documents, When we executed J1INMIS report with Bank Challan status, documents are coming in the report.
    As per our understanding Challan numbers and Bank Challan update should be done in the month of March 2011 but challans and Bank challans were updated in the April 2011.
    Please suggest.
    Thanks,
    Ratnam

    Hi Vara,
    Please check following thing in the system.
    1) When the Challan is created ( March month or April 2011)
    2) When the Bank challn updated for the challans
    3) If the Challan created in the April and generating returns for the month of March 2011.
    4) Check in J1INMIS report for the month posting date 01.03.2011 to 31.03.2011, if the external Challan number is appearing or not for the documents.
    5) If the Challan created in the April ask user to revere through J1INREV, and make Challan in the month of march 2011.
    Problem will solve.
    Thanks,
    Ratnam.

  • Grouping by month within date range

    Hi,
    I have a date range which I like to group by months, but not from the 1st to last date of the calendar month but by given start date.  For example the table below represents the date range with some values in a table.  So the
    first month range in the group should be from 06/06/2013 to 08/07/2013.  The 06/07/2013 is absent because it's Saturday.  In fact the data is populated with working days only.  
    Table below shows what I really would like to get:
    There is a simple calculation for each month anniversary date, if the value from the start date, 06/06/2013, here 12 is less than the next month anniversary date, 08/07/2013, which is 9, then it should ignore it.  And only show the value from the month
    who's anniversary date value is less than the first date value, 12.  So the example above shows value 14 for the second month's anniversary date, 06/08/2013.  If the value has been found in any month the show, and ignore the rest. 
    I am just interested if there are any and report which number of month and the value. 
    I can implement this in procedural way, such as in VBA, but because the above looped many times it will take hours to run the process.  I have tried in SQL Server, but first problem I came up with is that I can't group by month from the given start
    date.
     Is this possible to do in T-SQL ?

    I'm not sure I entirely understand your question.  So I'll break the answer into two parts.
    First, as I understand it, you are looking for a way to group data by months, but not all dates in June, 2013 as one group, all dates in July, 2013 as the next group, etc.  Instead you want all dates from June 6, 2013 to July 5, 2013 as the first month,
    all dates from July 6, 2013 to August 5 as the second month etc.  The way to do that is use
    DATEDIFF(month, '20130606', <your date column>) + CASE WHEN DAY(<your date column>) < 6 THEN -1 ELSE 0 END
    So you can assign the month number you want to every row when you select from your table by
    SELECT DATE, VALUE, DATEDIFF(month, '20130606', DATE) + CASE WHEN DAY(DATE) < 6 THEN -1 ELSE 0 END AS MonthNumber
    FROM <your table name>
    Now as I understand it (but am not sure), you want the first value in each "month" (as you are defining "month" which is greater than the value contained in your start date and if no value in a particular month is greater than that value,
    you don't want any row for that month.  For that you could do something like
    Declare @StartDate date;
    Declare @StartValue int;
    Set @StartDate = '20130606';
    Select @StartValue = Value From <your table name>
    Where Date = @StartDate;
    ;With cteMonthNumber As
    (SELECT DATE, VALUE, DATEDIFF(month, @StartDate, DATE) + CASE WHEN DAY(DATE) < DAY(@StartDate) THEN -1 ELSE 0 END AS MonthNumber
    FROM <your table name>
    WHERE DATE > @Date AND VALUE > @Value),
    cteOrdered As
    (Select DATE, VALUE, MonthNumber,
    ROW_NUMBER() OVER (PARTITION BY MonthNumber ORDER BY DATE) As rn
    From cteMonthNumber)
    Select MonthNumber, Value As KickOutValue
    From cteOrdered
    Where rn = 1;
    Tom
    P.S.  Notice that I wrote my date literal as YYYYMMDD.  This is a good idea in SQL Server since '20130806" will always be interpreted as August 6.  But depending on the settings on your server and/or client '06/08/2013' might be dd/mm/yyyy
    and so be August 6, but it might be interpreted as mm/dd/yyyy and be June 8.
    It is also a good idea to express date literals in this forum as yyyymmdd.  There are a lot of us on the forum from the United States and we think 06/08/2013 is June 6 and a lot of us from other places who think 06/08/2013 is Aug 8.  If you give
    your dates as yyyymmdd we don't have to try to figure out what format you are using.

  • How to calculate a rolling 12 months to date calculation?

    Hi there
    We have a business requirement to calculate a rolling 12 month to date value. That is, for any month, sum up the last 12 months of data. E.g. for June 2011, its May 2010 -> June 2011. We have the standard Year and Period dimension, and the member which holds this calculation is in another dimension called TimeView. TimeView just holds dynamic calculations for Month To Date(MTH), Year To Date (YTD) etc.
    The problem I am having is because we have the standard Year and Period dimensions so I need to do a cross dimensional sum. All the solutions I am trying either give me an insufficient dynamic calc cache (increase lock block setting) or something similar. Our lock block setting is quite high and it doesnt seem to make a difference when I increase it.
    Anyway, I have tried a few solutions:
    Short one:
    @SUMRANGE("MTH",@MDSHIFT(@CURRMBRRANGE(Period,LEV,0,1,),-1,"Year",)) + @SUMRANGE("MTH",@CURRMBRRANGE(Period,LEV,0,,0));
    Long one:
    IF(@ISUDA(ACCOUNT,"Flow"))
         IF(@ISMBR(Jan))
              YTD->Jan + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Jan,-1,"Year",);
         ELSEIF(@ISMBR(Feb))
              YTD->Feb + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Feb,-1,"Year",);
         ELSEIF(@ISMBR(Mar))
              YTD->Mar + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Mar,-1,"Year",);
         ELSEIF(@ISMBR(Apr))
              YTD->Apr + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Apr,-1,"Year",);
         ELSEIF(@ISMBR(May))
              YTD->May + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->May,-1,"Year",);
         ELSEIF(@ISMBR(Jun))
              YTD->Jun + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Jun,-1,"Year",);
         ELSEIF(@ISMBR(Jul))
              YTD->Jul + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Jul,-1,"Year",);
         ELSEIF(@ISMBR(Aug))
              YTD->Aug + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Aug,-1,"Year",);
         ELSEIF(@ISMBR(Sep))
              YTD->Sep + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Sep,-1,"Year",);
         ELSEIF(@ISMBR(Oct))
              YTD->Oct + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Oct,-1,"Year",);
         ELSEIF(@ISMBR(Nov))
              YTD->Nov + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Nov,-1,"Year",);
         ELSEIF(@ISMBR(Dec))
              YTD->Dec
         ELSEIF(@ISMBR(Q1))
              YTD->Mar + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Mar,-1,"Year",);
         ELSEIF(@ISMBR(Q2))
              YTD->Jun + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Jun,-1,"Year",);
         ELSEIF(@ISMBR(Q3))
              YTD->Sep + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Sep,-1,"Year",);
         ELSEIF(@ISMBR(Q4))
              YTD->Dec
         ELSEIF(@ISMBR(H1))
              YTD->Jun + @MDSHIFT(YTD->Dec,-1,"Year",) - @MDSHIFT(YTD->Jun,-1,"Year",);
         ELSEIF(@ISMBR(H2))
              YTD->Dec
         ELSEIF(@ISMBR("YearTotal"))
              YTD->Dec
         ENDIF
    ELSEIF(@ISUDA(ACCOUNT,"First"))
         MTH->Jan;
    ELSE
    MTH;
    ENDIF
    I am sure this may be a common requirement across companies - does anyone know a solution to this?
    Much appreciated!

    Closing this thread, just needed to increase cache levels.

  • Rolling date filter to include four full months

    Hello all,
    I have a request to create a report that will be a rolling date. They want it to be four months including all in the current month we are in. Can anyone help with the SQL statement that I need to use?
    In the On Demand Reporting book they have (using "In Between"):
    CURRENT_DATE
    CASE WHEN DAY (CURRENT_DATE) = 1
    THEN CAST (TIMESTAMPADD (SQL_TSI_MONTH, 3, CURRENT_DATE) AS DATE)
    WHEN DAY (CURRENT_DATE) <> 1
    THEN TIMESTAMPADD (SQL_TSI_MONTH, 4, TIMESTAMPADD (SQL_TSI_DAY, -DAY(CURRENT_DATE), CURRENT_DATE)) END
    But what I need is for it to not just pull todays date plus three months out, I also need to include everything from the current month we are in.
    THANKS IN ADVANCE!!

    Hey,
    This will do the trick:
    [Your Date] >= TIMESTAMPADD(SQL_TSI_MONTH, 0, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)-1), CURRENT_DATE)) AND [Your Date] <= TIMESTAMPADD(SQL_TSI_MONTH, 4, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)), CURRENT_DATE))
    It includes everything from the 1st of the current month to the last day of the 4th month.
    Thanks
    Oli @ Innoveer

  • I have 10 gb data..the next month rolled over...

    Now I have 20gb of data since it rolled over the next more an extra 10 gigs a month . I have only 10gbs of data on my plan.Will it rolloveer another 10 gbs month next month so I'll have about 30 gbs as rollever date?if so, in total, if thats true ill have used 4gb out of 26 gb of date for next month.

    I know many people think that using your base data first makes rollover useless but it sure comes in handy when you need it. In this current bill cycle my family has for the first time used all of our base data and we are now using what rolled over from last month. So far I have avoided over $100 in overage charges. I realize I won't have any rollover data next month but I don't mind.

  • I had previously installed the trial adobe cc illustrator which expired months ago, can i re install on a month by month rolling contract so I can just use it for a month??

    I had previously installed the trial adobe cc illustrator which expired months ago, can i re install on a month by month rolling contract so I can just use it for a month?? please help

    Hi munzafeedback,
    I have checked your order registered under your email ID posted here, it has a muse single App CC purchased on September 23rd 2013,
    You have not yet activated it, the billing date is 23rd of each month(you will be charged on this date irrespective of the fcat that you are using it or not).
    Incase you do not want to use it now, please get it cancelled as it is within 30 days of purchase.
    If you plan to cancel it after 3o days of purchase, the subscription will attract cancellation fee .
    Please go through the cancelation detail at :
    http://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting- creative-cloud.html
    Regards
    Rajshree

Maybe you are looking for