Formula for completion date

Need to create a formula for this..
If a project completes on A and the date lies between B & C then "display late by 10 days"
if a project completes on D and the date lies between E & F then "display late by 20 days"   and so on , there are 100's of projects and hundreds of completion dates.
what would be the best approach for this?
Any suggestions appreciated

You really need a Project target or due date and then calculate days late
@Late
If completiondate > targetdate then
datediff("d", targetdate, completiondate) else 0
You can then do banding on this
@overdue
If @late = 0 then 'Not Due' else
If @late in 1 to 9 then 'Less than 10 days overdue'
else
etc.
Hope that helps
Ian

Similar Messages

  • Need a formula for a date in one table to show on a calendar on a "summary" sheet

    Hello,
    I have created a simple table for my daughter to keep track of her monthly bill's due dates which are in one row of the table. I'd like to create a "summary" sheet which consists of a calendar that shows those dates at one look, it would also show which bill that is due.
    I am just beginning to learn about formulas and have created some simple ones, but this is beyond my talents!
    I would TRULY appreciate anyone's help!
    I tried to search for this subject first, so apologies if this has been answered already.

    Here is what I came up with:
    A couple things to remember:
    1. I ended up using a VERY large IF function; you can see the multi-colored line of text at the top of the above screenshot (I hope it comes thru alright)
    2. You will need to change what date is referenced in the first part of the function. In the first line of the calendar you need to reference cell A2 (as in the screenshot), but in others you will need to use the cell that contains the proper date.
    3. This does not work if you have more than one bill due on the same date. I will try and work that out.
    4. iCal would be MUCH easier. Not only can you set these due dates as recurring events, but iCal can keep things color coded, send you reminders, etc.

  • Formula for comparing dates and display data

    I have 3 objects on my query: Date, Product name and Quantity sold
    I have a table on my reports showing the top 3 products by quantity sold, and I want to add the quantity sold today on the same table.
    I am looking for a formula that compares de dates provided by the query with current date and only displays on the cell the quantity for the current day.
    Any ideas are welcome!

    As per my understanding, you want to display the today's sale of the product while the ranking is aaplied on the total quantity
    sold.
    You can create a new variable with either of the following two definitions:
    Today's Date = CurrentDate()
    Today's Sale = Sum([Quantity Sold]) where ([Date]=[Today's Date])
    or
    Today's Sale = If(([Date]=[Today's Date]) Then Sum([Quantity Sold])
    Note: The two date formats should be same.
    For getting the top three products you can use the hidden column(font, border and background white) and apply the ranking on
    the total sale coming from the DB.
    Regards,
    Rohit

  • Formula for selection criteria

    Hello all.
    I have a questions regarding creating a selection formula and parameters.
    See attached picture. I have a table that houses all the data I need for my report .
    I want to create a report with the following selection parameters
    Monthly
    yearly
    quarterly.
    if the user selects monthly I want the report to return  the most recent 12 months
    if the user select yearly I want the report to return the last 5 years
    and if the user selects quarterly I want the report to return the last completed 10 quarters.
    Any idea how I can accomplish that?
    thanks in advance for your help.

    This is actually not that difficult.  Assuming that the parameter is named {?Time Period} you'll create a formula for start date.  I'm also assuming that you want to show up to the current date, not the end of the most recent complete time period and that you want to start on the first day of the period, not the day that corresponds to the current day and that quarters start on the first days of Jan, Apr, Jul, and Oct.  So, it will look something like this:
    {@StartDate}
    DateVar tmpDate;
    DateVar startDate;
    if {?Time Period} = 'Monthly' then
         tmpDate := DateAdd('m', -12, CurrentDate);
         startDate := Date(Year(tmpDate), Month(tmpDate), 1);
    else if {?Time Period} = 'Yearly' then
         tmpDate := DateAdd('y', -5, CurrentDate);
         startDate := Date(Year(tmpDate), 1, 1);
    else if {?Time Period} = 'Quarterly' then
      tmpDate := DateAdd('q', -10, CurrentDate);
      if Month(tmpDate) in [2, 5, 8, 11] then //the second month of the quarter
        tmpDate := DateAdd('m', -1, tmpDate);
      else if Month(tmpDate) in [3, 6, 9, 12] then //the third month of the quarter
        tmpDate: = DateAdd('m', -2, tmpDate);
      startDate := Date(Year(tmpDate), Month(tmpDate), 1);
    startDate
    You'll then go to the Select Expert and manually edit the selection formula to read something like this:
    {MyTable.DateField} >= {@StartDate} and
    {MyTable.DateField} <= CurrentDate
    -Dell

  • Help - formula for date automatically displayed as per given frequency period

    Details of report received date and delayed no of days  in submission
    S/No
    Details of Report
    Frequency
    Date as per Frequency (Target Date)
    Received up to as on
    lapse of days
    Fin per Day
    Fine Amount
    24.07.2014
    (Rs.)
    1
    Cash book
    Daily
    24.07.2014
    30.06.2014
    24
    10
    240
    2
    DSR
    Previous Day
    23.07.2014
    31.05.2014
    53
    10
    530
    3
    Day book hard copy
    Thursday & Monday
    Formula Required latest date for Thursday or Monday and date with in cell E4
    10
    0
    4
    Asset stock
    Fortnight
    Formula Required latest date for 15 th day  or last date of month and date with in  cell E4
    10
    0
    5
    Labour approval 
    1st Day of Month
    Formula Required 1st day date of month with in cell E4
    10
    0
    6
    Qty as per drawing
    Every Quarter
    Formula Required last day date of quarter of the year with in cell E4
    10
    0
    Note: I want simply enter the date in  E4 and the formula calculated the date in column D 

    do you want to calculate the date format directly? see the sample:
     =DATEVALUE(TEXT(date,"d/m/yy"))
    KR

  • Formula variable to find week name for a date

    hi,
    i want to get the week name for a date value and i want to do this in query designer.can anybody tell me whther ican create any formula variable for this and if yes how can i do it???

    y dont use text varaible processing by customer exit

  • Create a formula variable using replacement path for current date

    Hi All,
    I created a formula variable using replacement path for current date.
    But when i used this variable am getting an error message saying .
    " This Variable cannot be used in this query".
    Could you please let me know the reason?
    Thanks,
    Zehra

    Hi All,
    Thanks for all your help...
    I just found a solution via the below link
    in Bex Formula variabel, Current calander day(sap exit) missing.
    Here he is trying to use the existing formula variable.
    My doubt here is, Even i could not find this varaible in BEX formula variable, But could see this in BI Content path as mentioned in the above link.  DO i have to transport this varaible , or i simply can activate it in production?
    I just could find this in BI Content but not in MetaData Repository.
    Thanks,
    Zehra

  • Fox formula for actual/plan data  - Planning function

    Hello,
    I am working on the following scenarios for developing a  planning functions for a monthly forecast.
    It is rolling montly forcast where user starts the planning in Jan and he has to show the actaul value for the month of Jan and blank values for the remaining 11 months of the year and then the user post his new forecast values for the remain 11 of the year(to replace initial balnk values) so that the data will be saved to real time cube with version v108
    In Feb, Jan & Feb months has to show the act values and remaining 10 months has to show last month forecast data. The the user may revise the forecast for the 10 months and then we have to write the data to the real time cube with version v208
    In Mar, Jan, Feb and Mar has to show the actual values and the reamining 9 months has to show the last month forecast and then users may revise the forecast data and then i have to write back to the cube with version v308.
    I want to automate this process for all the months and all years without manual intervention. So, i decideed to write a fox formula for this scenario with following draft code.
    I will get the fy period & year as a variable values and then take the system date into the variable
    for each fy period
    if the fy perio <= sys date.
      {version, infoprovider,value type,amount} = {0,act cube, 10, 0amount)
    else
    {version, infoprovider,value type,amount} = {result,plan cube, 20, 0amount)
    endif.
    result will be calculated on the separe routine and populated here
    case (fy per)
    when 01.
    concatenate v1 with fy+2(2) into y
    result = v1+y
    when 02.
    concatenate v2 with fy+2(2) into y
    result = v2+y
    when 03.
    concatenate v3 with fy+2(2) into y
    result = v3+y
    when 04.
    concatenate v4 with fy+2(2) into y
    result = v4+y
    when 05.
    concatenate v5 with fy+2(2) into y
    result = v5+y
    when 06.
    concatenate v6 with fy+2(2) into y
    result = v6+y
    when 07.
    concatenate v7 with fy+2(2) into y
    result = v7+y
    etc...for all months
    So, can you please let me know the best way to implement this (either by fox formuls or exits)...your inputs are really appreciated
    Thanks,
    Srini
    Edited by: srini on Mar 28, 2008 12:05 PM

    Hi Srini,
    If I 've understood u r problem clearly ,You have to write two Fox Functions and you can call exit variable in both to check the system date.
    I think first you should create exit varriable which would return the system date,use the same variable in data slice to lock the data till current period.
    After that create one fox restricted with any one version where you can copy the data for planning .for example:-
    1)First Fox:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v108)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER <= TIM_REF_FISCPER.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(000) ,tim_fiscper}.
    else.
      {0amount,version(001) ,tim_fiscper} = {0amount,version(v108) ,tim_fiscper}.
         endfor.
    Its just n example use the granularity according to the requirement.
    2)Second fox would save the changed plan data:-
    DATA TIM_FISCPER TYPE 0FISCPER.
    TIM_REF_FISCPER = VARV(ZEXIT_FPER).
    Get the last month
    version using modlue or any another logic .(v208)
    FOREACH TIM_FISCPER.
        IF TIM_FISCPER > TIM_REF_FISCPER.
      {0amount,version(v208) ,tim_fiscper} = {0amount,version(001) ,tim_fiscper}.
         endfor.
    Here ZEXIT_FPER is an exit variable created using cmod and populated with system date.
    Hope it will helpful for u.
    Rgds,
    Indu

  • Completion date for manually created maintenance notification

    Hi All,
    When closing maintenance notification created manually by t-code- IW21,there is no field to enter completion date & time. System is proposing the current  date as completion  date by default. However , as I have flagged u201Ccompletion datau201D  in maintenance plan category for notification ,system is asking/proposing completion date/time during NOCO of preventive maintenance.
    Where I can do settings in configuration so that system  will ask/propose to enter completion date/time during NOCO of manually created notification by t-code IW21?
    rgds
    rajib

    In notification type views you have option to set Reference date & time- if you set it to A- Malfunction start date & time will
    be proposed, if  you set it to B- Notification receipt date & time will be proposed, if you set it to C- Malfunction end time will
    be proposed, & in case of D - current date & time of completion of notification will be proposed while completing notification.
    Better set it to B & make the field malfunction start date & time mandatory  so that your history will be with reference to malfunction start. Or you can set it to A, C or D as per your requirement
    Shakti
    Edited by: SHAKTI BEHERA on Aug 14, 2010 10:09 AM

  • Completion date for notification, IW22

    when i tried to set the completion date for a notification through IW22 am not able to view the completion date and completion time inputs in the popup screen, only reference date and reference time is showing
    can this be due any status set to that notification

    since am a technical person am not that much aware of the entire process.since i dont have internet in our office i cant send u the screen shots also
    the process i try to do is
    1.when i go to iw22 try to set the complete status by clickin on the flag for some cases it is showin the completion date and for some case it is not, we are asked to check for it
    can you jst explain the process of the maintenance plan like as you said there might be the process of auto generating notification liket that

  • XL reporter  - What is the formula for Comparing difference between 2 dates

    Hi,
    I would like to create an Ageing report in XL reporter for SAP business one. 
    Columns include 30 days, 60 days 90 days etc.
    What should be the formula for Column Selection for eg: 30 days?
    The logic is total the value if Today Date - Posting Date <=30.
    Appreciate any help.

    Hi Jim,
    I have started XL reporter within SAP Business One.
    On XL reporter menu, I go Help--> Help.
    The standard Help screen opened.
    I have typed in Period, Syntax Period, Date, DateAdd, but I don't seem to find the example you mentioned.
    Could you please advise me what I have missed?

  • Complete data for tcode DB02

    let me know the name of table that stores the complete data for tcode DB02

    Hello Arun,
    Please check tables DBCHK and TBATG.
    Thank you,
    Shyam

  • Formula for dates back 7 days failing because of end of month?

    HI I have a CR that has been working fine till now. it runs every Sunday late in the day and looks back past 7 days. it has formula for dates from and to.
    tonumber(totext(CurrentDate,'yyyyMMdd'))-6
    and tonumber(totext(CurrentDate,'yyyyMMdd'))
    yet this past Sunday, it is not giving all previous 7 days. could it be related in any to the end of month? i cant think this is it. but perhaps.the date col is type = NUMBER and in YYYYMMDD.
    WHen I ran this report manually by selecting on the dates needed it returns more data.

    Hi Paul,
    The issue is when you convert a date to number a subtract 6 from it, it doesn't go 6 days back; it just subtracts 6 days from that converted number.
    So, today, represented as a number would be 20140804 however, when you subtract 6 from this number you get : 20140798 which of couse is Not a date.
    Your code (if the dates are stored as number in the database) should be :
    tonumber(totext(CurrentDate-6,'yyyyMMdd'))
    -Abhilash

  • Completion Date for SLA

    Hi All,
    Iam working on SLA. I have configured the SLA to my knowledge.
    The problem now it the comopletion date is not getting calculated for the tickets that is created.
    Where exactly is the configuration that i have to for the compeltion date and time calculation.
    It will be useful if any documentation is available for SLA configuration other than additional information.
    Kindly forward any documents related to SLA or where can do the configuration for the completion date calculation.
    Regards,
    Subhashini.

    Hi,
    I am mentioning the points reg SLA or individual steps needed to use and monitor SLAs:
    · If necessary, define a new availability schema and reaction schema (Menu: Master data
      Product   Edit availability and reaction schema (transaction: COMMPR01 u2013 Edit
    Products).
    · Product "Supportu201C may contain default values for availability schema and reaction
    schema (however, this is not mandatory.)
    · Contract determination for the transaction type of the Support Desk notification (SLFN)
    must be allowed. (SAP-Customizing CRM   Transactions   Basic settings   Define
    transaction type)
    · Depending on the item type for the product Support (SOL4), assign the action profile
    SERVICE_ORDER_ITEM_SLA (SAP Customizing CRM   Transactions   Basic
    settings   Define item type).
    · Use the Action Monitor (CRMC_ACTION_JOB) to create variant (SMSD0001 is shipped
    with the Support Desk).
    · Create a background job (transaction SM36) using program RSPPFPROCESS and
    variant SMSD0001, and schedule it.
    · Create a contract and release it using transaction CRMD_ORDER.
    · Create and process Support notifications (the contract must be determined correctly).
    · If the times in the Support Desk notification are exceeded, actions in the action profile
    will be triggered by the background job, and appropriate users will be notified by e-mail.
    Also check my replies in this thread,
    hope it wil clarifies ur doubt
    Regards
    Prakhar

  • Early Start and Early Finish Dates for Completed Activities?

    I am using P6 release 7 and having a problem with Early Start and Early Finish Dates for completed activities. For example, for an activity "A" the actual start date is 10-Oct-2013 and actual finish date is 19-Oct-2013, and activity is 100% completed but somehow P6 showing me the Early Start Date 02-Nov-2013 and Early Finish Date 02-Nov-2013. To me early start and early finish dates should not really be a matter for completed activities but I like to know why and how P6 calculates early start and finish dates for completed activities. Please let me know if somebody has an answer.
    Thanks
    Bilal Qamar

    Does this activity have a resource assigned? If so, check if the resource is closed (expended) otherwise it may continue to reflect future possible progress based on unused resources.

Maybe you are looking for

  • Problem with BlueSquare57.gif

    The GIF example file seems to have a couple of problems.<br /><br />1. The spec states that the GIF Application Identifier is 'XMP Data'. The string in the file is 'XMP data' - note lower case d.  So which is it?<br /><br />2. My DOM parser doesn't l

  • How do I create a channel that is made up of specific data from other channels?

    How do I index a specific element of a channel?  Specifically, if I have a channel of data that is 100 elements in length.  Can I create a new channel that is the sum of the 2nd, 10th, and 19th elements of my original channel? Thanks, Matt

  • PHP MysQL Background Application

    Has anyone used PHP / MySQL / ADDT to develop a background application that is clocked based?  Essentially, I'm just looking to fire off a stored procedure every "n" minutes.  Is there a way to write / configure an app to do this?

  • Bluetooth Wireless Music Speakers

    Hi, Just Planing on Buying A Bluetooth Wireless Music Speaker Like MD-3 \ MD-6 \ MD-4 \MD-7W \MD-5W Etc. I have quite a few phones i would like to use with it, but i prefer to use it with my N95. Could anyone Refer me A Good Music Speaker? And How do

  • Encoding in plain text messages

    Hi, recently I updated Groupwise from 7.0.3 HP3 to Groupwise 8.0.2 HP2, all is working ok except some messages that are generated by other software in another server. Some servers send emails automatically to the service desk's people, they receive t