Month calculations: DATE() vs EDATE()

In a recent topic (Challenge to get a date correctly), I mentioned using the DATE function to calculate a date that is (for example) one month later than a given one. Specifically, if cell A1 contains the given date, then I suggested using this formula for a date one month later:
=DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
Yvan Koenig suggested instead using the simpler EDATE formula, here equivalent to:
EDATE(A1,1)
There is, as it turns out, more than simplicity in favor of Yvan's approach. While one might expect the two formulas always to produce the same results, they do not! This is easily seen by constructing the following three column table with a column header:
1. In cell A2, enter the last day of the first month of this year (January 31, 2008 in the U.S. system, for example). In the cell below it, enter the last day of the second month of this year (Feburary 29, 2008, for example).
2. Next, select both cells & use the circular fill handle, drawing down to fill the column with a year or so of last-day-of month values.
3. Select cell B1 (a header cell) & enter in the formula bar & press return:
=DATE(YEAR(A),MONTH(A)+1,DAY(A))
4. Likewise, in cell C1 enter:
=EDATE(A,1)
Note that the B & C column values are sometimes the same, sometimes not. The same results occur if the "1" in both formulas is replaced with another number of months.
What seems to be happening is the 'MONTH(A)+n' expression uses the number of days in the month of the "A" cell value as the basis for the 'n months later' calculation, which is not the convention usually used for such things as billing cycles. The EDATE formula follows the normal convention, & is thus the preferred choice for almost all uses imaginable ... unless perhaps you are the one being billed.
This also applies to 'YEAR(A) + n' calculations.
So, it would seem that any calculation involving the DATE(year, month, day) form with an arithmetic operator in the year or month element should be used only with great care, if at all.
BTW, the comments about the month unit of calendar time having "no real purpose today" in http://www.cl.cam.ac.uk/~mgk25/iso-time.html may be of interest.

I'm aware of the blue warning triangle appearing in these "overflow" situations; however, even when it does not, the results may be different -- for example, with a starting date of January 31st, adding one month in my long formula produces a month argument that is in bounds but (for 2008) yields a date 2 days later than with the EDATE method.
I don't view this so much a bug as a consequence of the vague nature of the "n months later" or of the "month offset" concept. As the cited scholarly article points out, the concept of the months of the year are of somewhat obscure mystic origins, & there lengths were arbitrarily set, often for reasons more political than practical. Between the 1st & 28th day of any month, the concept is unambiguous -- it is the same numbered day in the other month, but for the 29th through 31st day of the month it is not, depending on the starting month.
From what little I have been able to discover from casual research, the EDATE results are the standard more by custom than by any well-defined rule: what we mean by the offset references the first, last, or some near-the-end-of-the-month day number, whichever seems the most suitable at the time.
I do not have Excel on my Macs, but since the functions are similar, I would be interested in learning how that application behaves with this table.

Similar Messages

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

  • Fiscal Month/Year Date Calculations

    Hi Gurus,
    I am trying to create a fiscal year and fiscal month offset using filter advanced SQL in answers. The “Offset” should allow to define a period of time + or – from a given starting point in order to report on a period of time. For example the Current Month Offset - When the variable is defined and set-up in the “Time” drop down menu in Answers. You would select Current Month Offset and in the create/edit filter dialog the Current Month Offset column contains a value of 0 for the most recent loaded month of data, a value of -1 for the month prior to that and so on. By selecting the “Operator”, “is between” and “Value” -5 and “Value” 0 you would filter to display the last 6 months.
    I created the offset with calendar year using the Advanced filter and worked fine for if i need to change the year to what ever value
    (((YEAR(CURDATE())-YEAR(Time.Date)) * 12) + (MONTH(CURDATE())-MONTH(Time.Date))) * -1 = -1
    The issue comes when i create for Fiscal year and Fiscal month using filter advanced SQL it throws an error
    (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1
    for fiscal year it throws an error below
    Error getting drill information: SELECT Time."Fiscal Year" saw_0, Time."Fiscal Year" saw_1 FROM "AAFES Procurement - Purchase Orders" WHERE Time."Fiscal Year" = (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <CURDATE>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT Time."Fiscal Year" saw_0, Time."Fiscal Year" saw_1 FROM "AAFES Procurement - Purchase Orders" WHERE Time."Fiscal Year" = (((FISCAL YEAR(CURDATE())-FISCALYEAR(Time.Date)) * 12) + (FISCAL MONTH(CURDATE())-FISCAL MONTH(Time.Date))) * -1 = -1')}
    Thanks
    Simmz

    Hi,
    Kindly refer the below link it may help you.
    http://obieeelegant.blogspot.com/2011/06/obiee-date-expressions-reference.html
    Thanks
    Deva

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • Process/Production Order WIP Reverse on Month starting date with postiing d

    Hi Experts,
    Is it possible to reverse the WIP of Production/Process Order at month starting date eg. 01/07/09. Posting date & Document date should be: 01/070/09.
    In my current project production is batch management system. Some of the batches start at month ending days (Eg. 29/06/09) for we calculated WIP at dated: 30/06/09.
    My Client wants to reverse that WIP next day, month starting hours Eg. 01/07/09 but while reversing the WIP system is posting the WIP reversing doc. posting date is 31/07/09.
    Same batch which started production on 29/06/06 is closed at 03/07/09 as well as goods received same date. FG Stock A/c updated in accounting books.
    At the same day If I print my trail balance system showing the Stock value double (WIP stock as well as FG stock)
    First Month
    Eg. Process Order WIP at 30/06/09                              : 50000/-INR
    Second Month
          WIP Reversal Posting date:31/07/09 by system     : 50000/-INR
          FG Stock received at 03/07/09                               : 50000/-INR
    If I Print Trail Balance on 03/07/09 system shows        : 1, 00, 000/-INR (based on Posting date)
    Which is wrong..
    Please tell me the way for Change the Posting date of WIP reverse document. OSS guys are replying as consulting issue. 
    I am waiting for your valuable reply.
    Thanks & regards
    Bhagiradha

    In KO88, CO88 Select Menu bar Extras-> Posting date
    Enter Posting and execute
    Thanks for Rajesh (SAP Labs)
    Thnaks & Regards
    Bhagiradh

  • With SPD adding 1 month to date not working?

    I have a calculated column [1stDayofMth] =DATE(YEAR([Start Date]),MONTH([Start Date]),1) which appears to be working fine.
    My SPD WF uses the [1stDayofMth] column and does a few calculations to find the next 2 months 1st days
    [Month 1 Resume Date] = [1stDayofMth] + "1 Months" 
    [Month 2 Resume Date] = [1stDayofMth] + "2 Months"
    These dates are used to pause the workflow. The problem when I log the results to history these calculations are not the 1st day of the next month on some list items?
    eg (text from workflow history)
    1stDayofMth="11/1/2014 12:00:00 AM"
    Month 1 Resume Date="11/30/2014 11:00:00 PM"  |  Month 2 Resume Date="12/31/2014 11:00:00 PM"  |  Month 3 Resume Date="1/4/2015 11:00:00 PM"
    The [1stDayofMth] column is set to "Date Only" and is showing as only the date, my logging was set to show the String and I can see the time is included as well. Is this the cause?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    As a band-aid I inserted a 2nd add for 2 hours to the date which will move it from the 30th at 11:00pm to the 1st at 1:00am. 
    I haven't done a lot of digging but it looks like the issue of adding 1 month to the 1stDayofMonth is only occurring on months with 30 days?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • Calculate Month-to-Date in Obiee11g

    Hi,
    I'm using OBIEE11g, im facing a problem-
    Problem : Month-to-date  results of this month vs. Month-to-date results of previous month
    example: if Im in 12th February the calculation is *1st February to 12 February* also *1st January to 12 January*
    -Zia

    Hi
    I have an immediate requirement from my client as following.
    I have prompts : Year, Month,Quarter and Date between
    When the user selects an year --> then the headcount is calculated as following either Annulized/Monthlyor quarterly
    HC= Sum(headcount of each day in that selected year) / No of days in the year
    Similarly for Month,Quarter and date between.
    If this is computed then I can apply the same logic for FTE calculation.
    Any inputs or help greatly appreciated.
    thanks in advance
    hk

  • 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

  • Syntax to export 18 months of data at any given time using variables?

    I have written a calculation script for exporting data from an application using DATAEXPORT. I want to get 18 months of data in my exported text files at any point of time. So, I want to specify the range using variables for Period and Year but I am kind of stuck on how should I be writing it in my script.
    Please let me know the correct syntax using variables or if you could share some link that would help me know that would be a help.
    Can I use @XRANGE Function???
    Thanks !

    Srinivas --> Thanks for clarifying that. After I read your post I did go through the @XRANGE again and noticed that they had use cross dimensional operators so it put me in a confusion. But you cleared it by being more specific this time. Thanks a lot !
    If I follow what Robb suggested then like you mentioned when 3 years will be involved its going to be difficult I guess. Not sure at this point which way would be the best to get this work.
    I agree with CL - 18 months rolling forecast can be annoying seriously.
    Can one of you please suggest me a permanent and most efficient solution for this out of all the ideas that would not require manual work and can be automated completely?
    Thank you all for your inputs. I really appreciate it.
    Edited by: 892254 on Nov 3, 2011 6:30 AM

  • 12 months AGO date

    i have a ccan_dt(connection cancellation date) for every agent
    i am trying to calculate the amount the agents spend before 12 months of connection cancellation date ie ccan_dt
    agent ccandt
    a 14/8/2009
    b 12/7/2003
    c 08/10/2000
    d 7/8/1999
    select sum(spend),agent from spendmas where spenddt between d1 and d2 group by agent
    in the above d2 is the ccan_dt of each agent and d1 is 12 before date of d2
    can any one suggest the efficinet way of acheving this.
    i did this by creating a temp table to hold the dates and then calculated the spend.
    but how can i achevie this with out creating a temp table.
    is there any regular expression which can get 12 months ago date as in OBIEE.
    please advice..

    user633377 wrote:
    select sum(spend),agent from spendmas where spenddt between d1 and d2 group by agent
    in the above d2 is the ccan_dt of each agent and d1 is 12 before date of d2
    can any one suggest the efficinet way of acheving this.
    i did this by creating a temp table to hold the dates and then calculated the spend.
    but how can i achevie this with out creating a temp table.
    is there any regular expression which can get 12 months ago date as in OBIEE.
    please advice..Didn't quiet understand the need for a temp table.
    However you can get a date from 12 months before by using ADD_MONTHS Function.
    Something like:
    SQL> SELECT SYSDATE FROM Dual
      2  /
    SYSDATE
    20-AUG-09
    1 row selected.
    SQL> SELECT ADD_MONTHS(sysdate, -12) FROM Dual
      2  /
    ADD_MONTH
    20-AUG-08
    1 row selected.
    SQL>So your query might be changed to
      SELECT   SUM (spend), agent
        FROM   spendmas
       WHERE   spenddt BETWEEN d2 AND ADD_MONTHS (d2, -12)
    GROUP BY   agentAssumed d2 is cancellation date
    Hope this helps.
    Regards,
    Jo

  • Previous month last date in sql

    hi
    i am using function
    select dateadd(day,1 - DATEPART(day,dateadd(month,24-36,GETDATE())),dateadd(month, 24- 36, getdate()))
    this will giveme 2014-03-01,
    now what changes  i need to make this function which will give me previous month last date.
    2014-02-28

    Hi coool_sweet,
    The answers in above posts are excellent. In case you may need any tip for date calculation, here is a good link for your reference.
    Date and Time Data Types and Functions - SQL Server (2000, 2005, 2008, 2008 R2, 2012)
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Report carry forwarding the current month 2weeks data to next month

    Hi experts,
    Issue statement:
    XXXXX Procurement reports in MSTR (MRP Adhoc report) is showing weeks out of order, the last 2 weeks of a current month are carried over to the first two weeks of the next month (ie, working week 33-ww34 from August are repeated as the first 2 weeks of September, therefore September will have 7 weeks, ww33 to ww39), this happens month over month, this issue is probably making the EOH calculation to be wrong and most likely any other calculations. Materilas need this report to place PO's based on inventory levels and so far the data is not trustable and wrong. Need this to be fixed asap. Thanks a lot.
    we running the process chain the Job set to clear every 2 weeks data, could you plz let me know why it geting current month 2weeks data to next month.

    thanks

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

  • 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

  • Mid-Month Calculations

    I am bringing a fixed asset system online in SAP and during the legacy conversion it was realized that the test system is not calculating the depreciation using a mid month convention.  That being said looking at the configuration the company code was setup in 2005 and is in production and is productive (since 2005).  So it appears that this setting is global and SAP will not allow me to change these settings to allow mid month calculations.  Is this correct? anyone ran across the same issue.

    Hi
    please read the note 2993 and 39416!
    Best Regards,
    Blaz

Maybe you are looking for

  • Formating videos for ipod- video but no sound!!!!!

    ok i relize that a million questions have been asked about formating videos but i will make it million and one. i have some vides that i made with windows movie maker and i also have some from DVD's. i read in another question to download video ipod

  • Dropdown list is cut off in reporting service (SharePoint Integration Mode)

    We have a report running in SharePoint integration mode and we have a set of parameters. But the last parameter (near the bottom of the browser) with drop down list cannot be displayed completely. Kevin Li

  • I am trying to make a 6.1 AC3

    I am trying to make a 6.1 AC3. I have all the tracks (.Aiff) to make it but I don't know what setting to use in compressor 2.3. I see that compressor has the ability to use a center surround channel. Does any body know any settings I can use?

  • Connect 2 monitors to Macbook Unibody?

    How can I connect 2 monitors to my macbook, so the macbook sees it as 2 SEPARATE monitors so I can triscreen (use 3 screens at once)?

  • IOS8 and Exchange Calendar

    Since the iOS8 update, I have had the following issue: I use Exchange for my calendar at work.  When I override a single occurrance of a reoccurring meeting (via outlook on my PC), my phone changes back to the Original time, not accepting the change,