Regarding Calculation

Hi,
I have a requirement of calculating value through a formula. This formula is in the form of fraction.
The numerator is in decimal which should be divided by number of days (calculated by timestampdiff function).
Now when I use the complete formula, it shows no error in the fx. But, it gives an error of _[nQSError: 46047] Datetime value 10/01/2011 12:00:00 AM from 10/01/2011 12:00:00 AM does not match the specified format. (HY000)_ when the report runs on dashboard.
Is this because of the way of calculating dates difference? I also tried casting the date difference as Int and then dividing, but same error is being thrown.
Is there any other way of finding the date difference in Obiee?
Kindly help.
Regards
Ankita

Hi Ankita,
Try once to change the Date column's datatype to DATE in Physical layer [Save and check Consistency ]and do your calculation.
Thanks,
Balaa...

Similar Messages

  • Regarding Calculation in Oracle Incentive module of Oracle Application R12

    Hi,
    We are facing a problem during 'CALCULATION'in ORACLE INCENTIVE OCMPENTSATION MODULE version R12 (12.0.5) .
    It takes long time to execute in a system and also doesn't show the Status as 'COMPLETE' in case of complete.
    This issue occurs in perticular development instance and We have observed that the CALCULATION take place very short to complete the process in different dev instances.
    We do 'CALCULATION' through Responsibility : - Compensation Manager--> Calcualte compensation
    We need your valuble inputs and suggestions
    Thanks and Regards,
    Deepak

    Deepak,
    The issue depends on many factors. One volume u are testing between instances, the way the plan is set up. if the plan is not set up right way or you have huge volumes, you may see these kind of issue.
    You may want to analyze reuqirements and plan configuration. This may give somes ideas on how to fix this.
    Regards
    Srini

  • Regarding calculation--very strange

    Hi,
    I am trying to process a Sales order.I am facing an issue with respect to the fuel surcharge calculation. there are two variables using which i am calculating the third one. the following are the variable declarations.
    v_kbetr type konp-kbetr,
    v_kwerti like komv-kwert,
    v_kwertnet like komv-kwert.
    the formula is :
    v_kwerti = ( v_kwertnet / 100 ) * ( v_kbetr / 10 ) .
    v_kwertnet gets in a value of 20925.00 and v_kbetr gets in a value of 50.00. so as per the aboce calculation i should get a value of 1046.25 but i am getting 104625.00. i tried changing the declaration of the third variable as the other two also. moreover the same program is working fine with the same variables,values and formula in our testing server. can anyone suggest something reg this?
    thanks & regards,
    bala.

    Dear Balavenkatesh,
                 when you are writing your code in routines the value kwert behaves in a different manner. I also faced the same problem while I was inserting data into routines in my past Implementations I faced the same.
    the way I have done is calculate the complete value and pass it to temporary variable.
      t_variable  = ( v_kwertnet / 100 ) * ( v_kbetr / 10 ) .
      v_kwerti   =  t_variable / 100.
      this is the way I used and its working properly now. dont try it in debuging and get confused you should get desired result now.
      Hope this should help.Do reward points if it really helps you.
       go a head.
    Cheers,
    Suresh.
    Message was edited by: Suresh Deshpande
    Message was edited by: Suresh Deshpande

  • Regarding Calculated key figure on Formula variable.

    Hi Gurus
    I have a requirement. My business scinerio in E-recruiting is to find out no of days between requistion creation date and offer made date in each month of year.
    For example we have around 120 requistion created in calyender year .
    10 requistion in jan , 10 in feb , 10 in march , 10 april , ...........10 december.
    my client wants out put as
    jan       no of days between offer made date to requistion creation date.
    feb             ,,
    march        ,,
    april           ,,
    may           ,,
    june           ,,
    july            ,,
    december    ,,
    i have requistion , req creation date ,  offer made date , cal period , cal year , no of requistion in my data model.
    i am unable to this report.
    i have made structure in rows
    jan = no of requistion based on calperiod = 1,
    dec = no of requistion based on calperiod =12.
    in Columns
    i created a calculated keyfigure based on formula variable with replacement path of req created date and offer date.
    i am not getting the data. my guess is i went some where wrong. please give some advice where i am going wrong . plz help me on this
    thanks
    roopa

    Hi
    Thanks for your reply.
    Both req creation date and offered date are in the free characteristics of query.
    main problem for me is how to get no of days between offered date - req creation date in jan month.
    can you give me exact formula how to write it down in query builder
    <b> hi Banu ( Queen of reporting ) can you through ligth n this issue</b>
    Thanks
    Roopa
    Message was edited by:
            roopa chow
    Message was edited by:
            roopa chow
    null

  • Question regarding Calculated Key Figures in BEx and their impact on SQL

    Hello,
    I am new to BO SAP integration. I have a question regarding using CKF in BEx.
    I created universe off of a BEx query with no CKF. I then created a Webi report with come dimensions and measures. I captured the SQL generated using trace (ST05).
    In the same BEx, I then create a CKF. Then refreshed the universe and created a new Webi report using the same dimensions and the CKF. The SQL generated had many more select statements.
    My question is what is the effect of CKF on the generated SQL and is there a performance issues using CKF in BEx as opposed to creating variables in Webi report?
    Thanks,
    Nikhil

    Hi,
    if your CKF will have always same unit and you have one KF in you inforpovider with this unit, you can try to do this trick
    create a new hidden CKF as new CKF = KF / KF (with this equale new CKF = 1 unit)
    change your old CKF as old CKF = old CKF * new CKF
    let me know if it works.

  • Regarding calculated item in pivot view in obiee11g

    Hi All,
    i am using two pivot view in my report.
    i am using calculated item for first pivot view. but it is also applying in second pivot view.
    i want it to apply only at view level but it is applying at report level.
    please help me to find the solution.
    Edited by: 914101 on May 8, 2012 11:05 PM

    Hi,
    Create two pivot reports and then apply calculated item for one pivot and leave for other pivot.Hope this helpful,still if you are not getting please elaborate your quite descriptive.

  • Query regarding calculation in OBIEE

    I have below columns in the report
    Cust ID Customer Segment Total sales %of sales
    121 A 300
    123 B 400
    124 C 600
    126 D 500
    %of sales to be calculated as total sales/sum of sales for a,b,C category
    Hoe to calculate it?
    Note in denominator I want summ of only A,b,c category (D not included)
    Thanks!

    Hi
    In report column formula use the filter option you can get the results according to your requirement.
    Thanks
    Don

  • Regarding calculations in sapscript!very urgent

    friends...
    i have designed a form z_pm_common..which i have copied from standard.pm_common. i have made some changes to the layout.
    now at the header i have a field :
    DURATION OF JOB  :&AFVGD-ARBEI& &AFVGD-ARBEH&
    AFVGD-ARBEI IS WORK DURATION.I.E 6.3
    AFVGD-ARBEH IS UNIT. IN HOURS.
    THE WORK ENTERED IN IW33 ARE 1.0 , 2.0 , 6.3 AND UNIT IS H(hours)
    WHEN IAM USING  &AFVGD-ARBEI& &AFVGD-ARBEH&
    IAM GETTING ONLY THE LAST WORK I.E ( 6.3 H ).
    WHT I WANT TO DO IS CALCULATE 1.0 + 2.0 + 6.3 = 9.3. AND I WANT THE UNIT TO BE IN MINUTES. I.E THE O/P SHOULD BE LIKE 09:03 M(MINUTES).
    NOW HOW DO I MAKE THIS POSSIBLE ALSO HOW DO I PERFORM SUBROUTINE IN THIS CASE..PLZ TELL ME THE COMPLETE STEPS WITH CODING.
    I GUESS  IT WOULD BE PERFORM Z_PM_COMMON IN PROGRAM ZPMINCLUDE USING &WHAT&  CHANGING &WHAT?&
    THEN IN SUBROUTINE IT WOULD BE
    FORM Z_PM_COMMON WORKCONV_UNIT
        TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
         NOW WHT DO I DO....
    PLEASE SEND ME THE COMPLETE CODE....WHICH WORKS.......I WOULD BE GREATFULLL.
    I'LL GIVE U FULL POINTS IF I GET THE RIGHT SOLUTION..PLEASE HURRY.
    REGARDS
    ESSAM ([email protected])

    Hi,
    I got this from a link,
    Eg:
    Instead of: 
    /: BOX XPOS '11.21' MM  YPOS '5.31' MM  HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
    You can write:
    /: POSITION XORIGIN '11.21' YORIGIN '5.31' MM
    /: SIZE HEIGHT '2' MM WIDTH '76' MM
    /: BOX  FRAME 10 TW INTENSITY 10
    This can be usefull if you gave several boxes that share the same parameters.
    HOPE IT HELPS U.
    Thanks&Regards,
    Ruthra

  • Regarding calculation of string length.

    Hi All,
    can anybody tell me how to calculate length of a string which is having blank lines at the end of the string.
    DATA: v_text(132) TYPE c.
    EX: v_text = 'THIS IS TEST DATA                    '.
    How to find above strings length including blank spaces.
    Answer should be 37, It should not be 17 (or) 132.
    Please let me know if anybody have solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    Hi Rayeez,
    37 ? Perhaps 18?
    Anyway I don't think it's possible, if your variables is more long than text how can it understand how many blank chars should be considered?
    In your example:
    - V_TEXT is long 132 CHAR,
    - the text is long 18 CHAR: 17 char and last blank char
    but when it moves the text to V_TEXT, it loses the information about last blank char, now for the system it's as if it was a text of 17 chars and blank space of 115 chars.
    I should know how many blank chars are before moving the text into variable.
    Max
    Message was edited by: max bianchi

  • Regarding Calculation script

    Hi All,
    I am trying to move the numbers from all MIS Org Hierarchy lowest level members to one of the lowest level members of MIS (e.g. all MIS numbers into MIS_1900 member). I am using the following calculation script.
    FIX(&CurMth, @DESCENDANTS("MIS Organization",0), @DESCENDANTS("GL Organization",0),@DESCENDANTS("Products",0), @DESCENDANTS("Balance Sheet",0))
         Amt("MIS_1900" = @CURRMBR("MIS Organization");)
    ENDFIX;
    This doesn't seem to be working.
    But when i try the above FIX, and transfer from MIS_3000 to MIS_1900 using the below script, it works.
    FIX(&CurMth, @DESCENDANTS("MIS Organization",0), @DESCENDANTS("GL Organization",0),@DESCENDANTS("Products",0), @DESCENDANTS("Balance Sheet",0))
         Amt("MIS_1900" = MIS_3000;)
    ENDFIX;
    Can anyone suggest me what am i doing wrong and how can i achieve transfer amount for all MIS into MIS_1900?
    Thanks a ton for your time.
    Edited by: DKH on Oct 7, 2010 3:15 AM

    I think what is missing in most of the solutions is that with every account you are replacing the value in "MIS_1900"
    Try something like
    FIX(&CurMth, @Relative("MIS_Organization",0),@Levmbrs("Products",0), @Levmbrs("Balance Sheet",0),Amt)
    IDescend("MIS Organizaion);
    "MIS_1900"(
    "MIS_1900"->Actual = "MIS_1900"->Actual + Actual ;
    ENDFIX;
    A couple of things.
    1. I used levmbrs instead of @descendants since it will bring back a smaller set of data
    2. If you will run this multiple times, you need a fix of the intersection of MIS_1900 to set it to missing before this fix otherwise you will just keep adding to it
    3. The Actual is there as a single member from a dimension that would hold the data, you will need to modify this to meet your outline
    4. You could add a statement after this to clear the data from the original member, but it would make the code non repearable. You would have to relaod ti rerun

  • Regarding calculation script optimization

    Hi,
    I have a gone through the calculation optimization in dbag.
    I have a calc script that needs to be optimized.
    So are there any particular ways that can be followed to optimize an calc script inoder to reduce the time taken to run.
    Thanks,
    Ram

    Hi,
    1. When you say , it needs optimized. Is it taking more time , or whats the issue.
    2. In addition to the standard recommendations in DBAG, you need to look your calculation script and which line of your script is taking time ( with the help of logs).
    3. NOt every standard recommendation would work , thats why consultants come handy.
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • Regarding calculating days

    Hi Abapers.
    how should i do for the query like :
    If the number of days exceeds the number in the parameter (new field mentioned above), then the program should check if the delivery/line(s) are packed.

    Hi,
    Try this:
    parameters: n_days type i.
    data: w_date type d.
    w_data = sy-datum - n_days.
    seelct ... from ... where date > w_data.
    Best regards,
    Leandro Mengue

  • Regarding calculation of uom(unit of measurment)

    i want to display uom(unit of measure) field in dis format: -
    UOM IS KG -> SO QTY
    TO  -> (SALES ODER QTY * 1000)
    G -> (SALES ODR QTY / 1000)
    I making d report of sales order and i have to display it according to it...plzzz help me its urgent...

    can u provide d dummy code for it,i am using fields for it: -
    DATA : BEGIN OF ITSO OCCURS 0,
           VBELN LIKE VBAK-VBELN,
           POSNR LIKE VBAP-POSNR,
           SPART LIKE VBAK-SPART,
           ERDAT LIKE VBAK-ERDAT,
           MATNR LIKE VBAP-MATNR,
           MAKTX LIKE MAKT-MAKTX,
           EDATU LIKE VBEP-EDATU,
           KWMENG LIKE VBAP-KWMENG,
           KBMENG LIKE VBAP-KBMENG,
           MEINS LIKE VBAP-MEINS,
           WERKS LIKE VBAP-WERKS,
           BRGEW LIKE MARA-BRGEW,
           NTGEW LIKE MARA-NTGEW,
           END OF ITSO.

  • Regarding calculation of Amount against Asset No.

    Hi,
    I am having an issue in the BEx output. Right now I am getting the amount for an asset against posting date.
    Like:
    Asset         Date          Amount
    140000004     5/31/2005         6,060.00 INR
                  6/30/2005         40.00 INR
                  9/30/2005         -5,300.00 INR
    Now I want the output to be cumulative value of amount(Upon which I have to apply the aging logic)
    Asset         Date          Amount
    140000004     5/31/2005         Rs 800 (6,060.00+40.00-  5,300.00)
    The date can be omited from output, but the amount should be the cumilated value against that asset.
    Regards

    Hide the real key figures and create a formula ( to cumulate)...what is the real issue here?

  • Regarding calculation time

    hi guriji,
    i am working on Capacity Utilization program. For this we are using KAKO table.this table contains start time and finish time . Based on start and finish time i want to calculate no. of working hour.so plz tell me how i calculate the no. of hours.
    Thanks

    Hi,
    YOu can use following logic
    e_tdiff is type FAHZTD.. T1 . initial time... T2 is Final time... TIMEDIFF is type T.
    Calculate hours difference
      TIMEDIFF = T2 - T1.
      ASSIGN TIMEDIFF+0(2) TO < HH >.
      ASSIGN TIMEDIFF+2(2) TO < MM >.
      ASSIGN TIMEDIFF+4(2) TO < SS >.
      E_TDIFF = (  < HH > * 10000 ) + (  < MM > * 100 ) + < SS >.
    Nag
    Edited by: Naga Mohan Kummara on Dec 8, 2009 11:01 AM

Maybe you are looking for