BOXI3.0: Formula for subtract/deduct one day or more from date field

Greetings. Its Alias.
I have one question. Actually I already post this question but at designer forum.
I am using SQL.
Example I have Order Date field and from this field I want to subtract the date by minus one day or two days or three days, etc.
I got the solution for designer (example):
DATEADD (dd , -3, EPJ_IPMS.dbo.DO_DATA.DO_DATE_D)
But at webi level it does not work.
I also do not understand why at designer and webi level may have different SQL select statement.
Can someone help me please.
Best regards,
Alias

Hi there Prashant.
In my case here is I am using Microsoft SQL Server Enterprise Manager and the data is save inside it.
The Designer and Webi are using same SQL database.
I also created an Object at Designer and the result is good.
But say if I don't want to create the object at Designer and let user create their own variables at webi.
Meaning to educate user to put the variable and formula themselves.
This is where the SQL statement a I mentioned earlier cannot be used at webi.
Best Regards,
Alias

Similar Messages

  • Check if a license exists for at least one day in each month

    How to check if a license exists for at least one day in each month for a given period ? Example : If we have a review period from Jan 25 2009 to Aug 15 2009. How to check if there is license for at lease one day in every month.

    Hi,
    Welcome to the forum!
    (1) construct a table or result set that has one row per month in the review period. [This thread|http://forums.oracle.com/forums/thread.jspa?messageID=3651350?] has a similar problem.
    (2) outer-join your actual data to that result set
    (3) use the aggreagate COUNT (x) function (where x is some column from your table) to see if there were any matches in each month. GROUP BY months.
    For a more specific answser, ask a more specific question.
    Post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data.
    It never hurts to say what version of Oracle you're using.
    Edited by: Frank Kulash on Jul 28, 2009 1:54 PM
    Maybe something like:
    WITH  all_months  AS
         SELECT     ADD_MONTHS ( TRUNC ( &period_begin_date
                                , 'MM'
                      , LEVEL - 1
                      )         AS month_date
         FROM    dual
         CONNECT BY  LEVEL <= 1 + CEIL ( MONTHS_BETWEEN ( &period_end_date
                                                          , &period_begin_date
    SELECT       m.month_date
    ,       CASE  COUNT (l.license_date)
                WHEN  0  THEN  'Nothing this month'
                          ELSE  'Some licenses issued'
           END     AS summary_txt
    FROM            all_months     m
    LEFT OUTER JOIN     license_table     l     ON  m.month_date     = TRUNC (l.license_date, 'MM')
                                     AND l.license_date     BETWEEN  &period_begin_date
                                                AND      &period_end_date
    GROUP BY  m.month_date
    ORDER BY  m.month_date
    ;Untested

  • How to set SPD workflow to send email one day before the Due Date? ?

    I need to add a step in workflow for a item tracking list: send reminder email one day before the due date.
    I thought there is an Action in SPD: wait for [Due Date] to equal [Today]minus one day
    But there is no way to do that.
    I figured may be I need to create a calculated field [cal-date] that set to: =[today] plus one day.
    Then in workflow -
    wait till [Due Date] is equal to [cal-date], and send an email
    What is the formula for the above calculated field [Today] plus one day?

    Hi,
    You can add an approval action( such as Start Approval Process) -> click "Approval" -> go to “Change the behavior of a single task” . Then you will
    see the "When Task expires" stage.
    You can have a look at the blog:
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx 
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers
    if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Eric Tao
    TechNet Community Support

  • Add one day to the current date

    Hi all,
    A stupid question...
    How can I add one day to the current date in a select. I want something similar to add one month to current date, but with days:
    something like:
    select TO_CHAR (ADD_MONTHS (SYSDATE, -1), 'DD-MM-YYYY')
    from dual
    Thanks

    select sysdate+1 "add one day" from dual;

  • When I trade my cracked iPod in for a new one, will the information from my iPod be transferred to the new one?

    When I Trade My Cracked iPod for a New One, Will the Information From the Cracked iPod Be Transferred to the New One?

    That is done through iTunes.  If everything on your cracked iPod is in your iTunes library, you just need to sync the new iPod the same way.
    If there is content on the cracked iPod that is not in your iTunes library, that content will be lost, unless you transfer its content to your computer before the "trade in."  Content that you purchased from the iTunes Store can be re-downloaded at no cost, using the Purchased screen in the iTunes Store.

  • What one should expect more from the unit

    In fact after I had bought my DR8, I browsed the forum to see the most typical failures encountered by the users. I checked all the problem modes on my new DR8 to see it doing with no problem. What I could conclude from what I've read is that the problems' origin lies in the firmware flashing version and process. That made me real curios, why somebody who just have bought the unit would go and flash it? What one should expect more from the unit, except the risk to ruin it as it seems the most of the results are here...
    Plse do not confuse me with an MSI marketing agent  
    I'm just happy to have fully functional nice drive as it says in the product spec  

    What you say is more or less what an update in general is supposed to do.
    What makes me real curious is - when a product does what the product spec says, why one should risk and flash/update/whatever... to get more for the money? I don't think so.  
    Reading the forum problem posts I conclude the most of the problems are caused by that kind of "innovative" seeking of updates...

  • HT1688 I used a MC $50 Giftcard for the iTunes one day. It was supposed to update the games, and other apps on my phone. Only, it wouldn't go through, the credit card was declined. Still, I was charged 4 times. How do I get this back??

    To Whom It May Concern:
    I bought a Mastercard Giftcard for $50 the other day. It was only because the games needed updating before I could play them again, and my card on file had expired.
    I kept getting a message stating the the card was declined. Also, it kept telling me to try to put in another card, or different form of payment.
    I tried several times to get the MC to go through, and it didn't. It was not even showing that the card info even updated!
    When I went to check the amount of the giftcard, there were 4 pending charges of $10.89 on it.
    How do I get this money back? Please let me know as soon as possible.
    Sincerely,
    Queenie from Texas

    I did but that was from a month before, I want pics I took after that backup time. It deleted without my consent like this is not cool. I had recent pics from my trip.

  • Add one day to java.sql.date

    I ask user to enter a date: yyyy-mm-dd, then I want to add one day to that date, I don't know how to do it?
    java.sql.Date time2 = java.sql.Date.valueOf( args[0] );
    Many Thanks.

    since a date object is really nothing more than a long you can always add one day's worth of milliseconds to it....
    long milliInADay = 1000 * 60 * 60 * 24;
    Date d = ......
    d.setTime(d.getTime() + milliInADay);although there may be some issues with this i'm unaware of, but seems pretty straightforward to me.

  • Date converting to less one day while transferring from client to server

    Hi,
    I have very typical problem. My application is in java, we are using oralce 9ias. The problem when the server is running in german locale and client is running in english. We the date value is passed from client to server it is converting to one day less.
    i.e.
    If i want to search with records jan 02,2005,
    on server side if we print the value it is getting as jan 01,2005.
    Can anybody help me in solving the above problem.
    Its bit very urgent.
    Thanks in advance
    regards
    Kalyan

    well, i have had nightmares with this problem. here are the reason and soln:
    reason:
    in ur DB, u r using a field "Date" which does not include time information. Hence, any date will be taken at 00:00:00. If such a date is opened in some other timezone, which is ahead of the server timezone, the date differs by one. This is becoz java always considers the millisecond info encapsulated in the date, calendar.
    soln:
    Step 1:
    u must be able to get the "timeZoneOffset" from a calendar object. This timeZoneOffset will give the number of minutes/seconds/hours... by which the system is offset from GMT.
    Thus if u create a calendar in India, the timeZoneOffset will be 330. If you create the calendar in UK, it will be 0.
    To achieve this, we have made an object-UTCDate. This class encapsulates a Calendar. It has a function called "getTimeZoneOffset".
    Step 2:
    Once u get the timeZoneOffset, here is what u need to do in ur code. (assume that the timeZoneOffset is in minutes. the variable names will be self-explanatory)
    at the client side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromServer * 60 * 1000 ) - (timeZoneOffsetOfClient * 60 * 60 )
    use timeInMillis to make a new Date Object and use this date object.
    at the server side code:
    long timeInMillis = calendar.getTime().getTime() + (timeZoneOffsetOfTheCalendarReceivedFromClient * 60 * 1000 ) - (timeZoneOffsetOfServer * 60 * 60 )
    hope this helps.
    regards

  • FILL ONE  TABULAR FORM COLUMN FROM A FIELD IN ANOTHER REGION.

    Hi,
    I'm, using Oracle APEX 4.2. In one of my pages i have two regions. One of them has a text field and a button, and the another region with a tabular form.
    http://apex.oracle.com/pls/apex/f?p=41771:2:14057730603424:::::
    I want to enter some data into the text field and when I press the Button named Estado, just the rows checked change the value of the column Estado.
    PLEASE HELP!
    Thanks.
    Eve

    Dear Eve,
    I have made a PL/SQL process called updatePAGObyEstado executed when the button pressed, with the following code
    BEGIN
       for i in 1..apex_application.g_f01.count loop
         update PAGO
         set PAGO_ESTADO = :P2_VALOR
         where PAGO_ID = apex_application.g_f01(i);
       end loop;
       COMMIT;
    END;Please, if this solves your problem, mark it as Correct.
    Best Regards
    Mahmoud

  • Expired Certificate for less than one day

    My reward certificate expired last night. I thought I had one more day. Can you help?

    Greetings blueskies2k, and welcome to the Best Buy forum!
    As bobberuchi alluded to, a certificate will expire after 60 days and cannot be reissued once having officially expired.  I would suggest changing your certificate preference from $5 (default) to $20, which should allow you to hang onto points for a longer period of time before a certificate is issued.  You may also want to try logging into your account more often.
    I would like to go over your My Best Buy account with you in greater detail to ensure it is up-to-date and to see if there are any other program related questions I can help answer, so I will be sending you a private message.  To check your private messages, you will want to login to the forum and click on the yellow envelope icon located at the top of the page.
    My Best Buy - FAQ
    I hope that you have a great day, and thank you for being a My Best Buy member.

  • Formula for subtracting time from a datetime field

    I have a field that is formatted as a datetime field. I just need to know how to subtract 3.5 hours from this time. How do I write a formula in crystal reports kindly help me.
    Thanks in advance
    Ramakrishna Reddy

    This should do the trick...
    DateAdd("n", -210, {TableName.DateField})
    HTH,
    Jason

  • TS3376 I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year one day it said no devices registered and stopped working why???

    I had my iphone set up to be tracked as registered with iCloud and it had been using it for a year today it said no devices registered and stopped working even though i tracked the selected iphone 4 device an hour earlier why did it do this???

    So basically the phone I was tracking was working an hour earlier it had no signal at times when it did pick up a signal it located it easily but an hour later the message came up no devices registered when my friend returned home I Checked the device I was tracking to make sure find my iphone was on but it was off and my friend didnt turn it off so my question is why did it turn itself off???
    Confused?

  • How can I get an alert for a birthday 4 days in advance from my Calendar?

    How can I get an alert four days in advance for a birthday from my Calendar?
    Thanks.

    Maybe there ?

  • Formula to calculate number of days between today's date & given date BEx

    Hello,
    I have a date available as an attribute of dimension characteristic. How do I get current date (sy-datum) to calculate the # of days (or difference) between query execution date and given date.
    Is there a system field to get current or today's date .
    I am thinking to have this as calculated KF in BEx.
    Any suggestions or tips
    Thanks

    Hi,
    Create a variable on the attribute(date attribute) of characterstic. Use this variable to create a formula variable , in which you fin out the difference between current date and varaible.
    There  is a good document on using the attributes in the calculation in service.sap.com/bi
    In infoindex--> calculation with attributes.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for