Cal day Average..

Dear Gurus,
Iam having a problem with the cal day average my scenario is as follows:
Iam executing a report based on the Cal day where for ex:01.01.2010 - 10.02.2010 iam gettin the data which contains aggregated data for the above selection criteria thats ok with me, But i need to add another column where i can get the Cal day average since in the selection criteria i have selcted for 40 days i want the total aggreated value/40 as my average per day.
Can anyone help me in finding a solution.
Regards
Amar.

Hi,
To find day difference using function module refer below thread,
what is the function module to difference between two date
   Using customer exit, find the days variance (var1) between ex.,01.01.2010 - 10.02.2010.
Use this var1 for calculating average value. I mean total aggregated  value / var1.

Similar Messages

  • How to Find difference of cal day Period

    Hi Friends,
    How to get difference of cal day in period.
    example is 01/01/2008 - 31/01/2008 = Number of dates
    This query is in inventory to calulate average of issues and receipts in the particulat period.
    Please help me any one.
    Thanks and regards,

    HI,
    Create two replacement typr formula variables for this two characterictics dates , keep in mind while creating the repl path variable assign currency/unit as date.
    Then just calculate the difference using a formula .. U can use DATE function (in the data function) in the formula though it should work without DATE function.
    Hope it helps,
    Assign pts if helpful..

  • ST03N Tcode not showing last 3 days average response time

    Hi,
    In my Production system not showing last 3 days average response time.In our production 1 (CI+DB) and 3 dialog instances are there. In all servers sapcollector working fine but in all servers not showing last 3 days values.Please advise solution.
    Thanks,
    Srinivas.

    The following are the prerequisites needed to get the workload monitor(st03) working.
    1)      The system time zone of the SAP and the Operating system has to be same. This can be done by customizing time zones of the SAP using the Tcode STZAC.
    2)     All the standard background jobs has to be scheduled to run. This can be done by scheduling the standard background jobs using the Tcode SM36.
    3)     The following parameters has to be added to the instance profile.
    Parameter                                                  Value(default)                                                  Description
    i.     stat/as_collect                                                          = 2                                          Application statistic: detailed records.
    ii.     stat/as_level                                                              = 1                                          Records for application statistic are active.
    iii.     stat/max_files                                                           = 48                                        Max. no. of stat files to be kept.
    iv.     stat/as_max_files                                                    = 48                                        Max. no. of appl. stat files to be kept.
    This can be done by editing the profiles using the Tcode RZ10.

  • Report requirements based on cal day and calmonth

    Hello friends,
    I have to create a report in which it should show me the daily quantity produced and the average quantity of the given month.
    In report it should show me the daily produced quantity for the given month and the average of the month.
    as this is a web template requirement i need the report as shown below.
    For ex :  Cal month     01/01/2007 02/01/2007 .......31/01/2007    
      quantity                           100        110                 80
      Average                             -
             100
    When i tried to create a report it shows me the daily average but i need only the total average.
    Can some one help me as this is my daily issue i need to solve it before deadline please!!!
    Points will be assigned
    Thanks
    Srini

    Hello friends,
    I have to create a report in which it should show me the daily quantity produced and the average quantity of the given month.
    In report it should show me the daily produced quantity for the given month and the average of the month.
    as this is a web template requirement i need the report as shown below.
    For ex :  Cal month     01/01/2007 02/01/2007 .......31/01/2007    
      quantity                           100        110                 80
      Average                             -
             100
    When i tried to create a report it shows me the daily average but i need only the total average.
    Can some one help me as this is my daily issue i need to solve it before deadline please!!!
    Points will be assigned
    Thanks
    Srini

  • I cal day and end hours in week view

    I just installed Tiger and am having trouble getting the hours that I want (7 a.m. to 8 p.m.) to only show in my week view. I followed the iCal help and set it up under preferences, yet is shows the day starting and ending at midnight. Help?

    Mark, welcome to the discussions. This feature of iCal is misleading - and not particularly useful. No matter what you set in the preferences there will still be 24 hours in the day, and all will be visible (though you can control how many are simultaneously displayed. Your 7am to 8pm setting controls which part of the display iCal lightly shade, and which part it leaves unshaded.

  • How to find Past 14 days average of time(hh:mm:ss) format in obiee

    My table has columns Loaddate, Runtime, 14day_Avg. It looks like :
    Loaddate Runtime 14day_Avg
    8/02/2012 8/02/2012 11:19:50 AM ?
    10/02/2012 10/02/2012 01:29:40 AM ?
    20/02/2012 20/02/2012 07:10:58 AM ?
    For this 14 day avg of third row( 20/02/2012) should be avg((01:29:40+ 07:10:58)/14)
    The result i.e. 14day_Avg column should display like 07:09:02(hh:mm:ss)
    This I have to do in the answers page of OBIEE to create a report.
    Kindly give some ideas.
    Edited by: 915235 on Nov 15, 2012 9:54 PM

    Your question is not clear..
    Provide CREATE tABLE and INSERT statements and expected output. Your DB version also.
    What is the data type of the column RUNTIME?
    And what does your calculation " avg((01:29:40+ 07:10:58)/14)" mean - what is the result of this?
    Please read FAQ: {message:id=9360002}

  • Cal Day input help not calendar but list of entries in infoprovider?

    Good Day,
    is there any setting in BEX or on the infoobject defintion that changes the behaviour of the input help?
    We got the requirement that for a loaddate field (referencing 0CALDAY) not the calendar as input help should be displayed (when user clicks input help or presses F4 in the query filter) but a list of load dates that are in the info provider.
    All replies are appreciated and points assigned.
    Best regards,
    Axel

    Hello Axel,
    As long as the InfoObject is of Type Date or Reference a Date InfoObject, you will get a calendar popup when you try selecting the value in the Selection screen.
    If your requirement is to have a list format, then you could try creating a new InfoObject of Type DATS.
    Another approach would be to create a new InfoObject of Type CHAR 10. Write a routine in the transformation to populate this. You need to store it as YYYY.MM.DD, if you want it to appear in Chronological order in the Selection Screen.
    Hope this helps you out.
    Regards
    Zubin Kurian

  • How and where I can build the logic to calculate between cal days?

    Hi
    I have the cube having data like below. When I run the report based on calendar day as input, I would like to get output data how many Line Items based on my selection (status, Trans status) from between calendar day to calendar day+150 days.
    0Calday     Sold-to-Party           Status                 Trans No     Trans Status      Line Items
    03.10.2008     2000028074     50     216270          28                       1
    05.11.2008     2000024917     40     216281          15                       1
    06.10.2008     2000006277     33     216292          28                       1
    15.12.2008     2000019927     33     216303          10                       1
    If I provided calendar day as input at query how and where I can build the logic u201Cbetween calendar days to calendar day+150 daysu201D?
    For example, If I run a report as caleder input  03.10.2008 with selections status = 40,33, Trans statu =15,10, with above data, I can get the output below.
    05.11.2008     2000024917     40     216281          15                       1
    15.12.2008     2000019927     33     216303          10                       1
    Please help me to build the above logic?
    Thanks,
    Mannev

    Hello,
    There are some informtion in SDN that can be useful regarding customer exit for variables in BEX, for example:
    need clarification on BEX variable usage in customer exit.
    you can also try to use the variable offset:
    variable offset in Bex
    Best Regards,
    Ricardo

  • How to config EM performance page to display 30 days Average Active Session

    Does EM supports displaying 30 days ASH data in the performance page without clicking the calendar tool?
    Now EM only can show 7 days view.

    AWR collects performance related statistics and derives performance metrics from them to track a potential problem. Unlike Statspack, snapshots are collected automatically every hour by a new background process called MMON and its slave processes. To save space, the collected data is automatically purged after 7 days. Both the snapshot frequency and retention time can be modified by the user. To see the present settings, you could use:
    select snap_interval, retention
    from dba_hist_wr_control;
    SNAP_INTERVAL RETENTION
    +00000 01:00:00.0 +00007 00:00:00.0
    To change the settings--say, for snapshot intervals of 20 minutes and a retention period of two days
    begin
    dbms_workload_repository.modify_snapshot_settings (
    interval => 20,
    retention => 2*24*60
    end;
    Hope this helps,
    Regards,
    http://www.oracleracexpert.com
    Overview of Transparent Application Failover in Oracle RAC
    http://www.oracleracexpert.com/2010/04/overview-of-transparent-application.html
    In function 'lcdprm':: Warning after patch in RAC
    http://www.oracleracexpert.com/2010/04/in-function-lcdprm-warning-gets.html

  • Isuue with Variable of Cal day

    Hi All,
    I am facing a problem in the qurey.
    I had created a query a week before in that v r having a
    variable of type char and its madatory.  Now in the query automatically variable of type SAP Exit is encounter with out
    my knowledge n i am to see the variable also. How *** i over *** this issue as when i check in the query that variable is placed no where.
    pls let me know what i hav to do.
    Regards

    Hello,
                Check if you have used any restricted keyfigures in your query and probably in that restricted keyfigure there might be variable restriction or else if you have any selections defined in the query check that .

  • Cal day to no of weeks

    Hi gurus,
    I have a requirement, i need to caliculate the number of weeks as determined by the date period entered in the selection screen in the query.
    Can any clarify me.
    Thanks in advance.

    Please search forums before posting
    search this threads
    Re: printing calender
    and for info on usage of <b>Day_get_week</b> refer this thread:
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/help-on-function-day_get_week-1067350

  • Time Stamp,Cal. Day & Num. Pointer

    Hi Experts,
    I want know when I create a Generic delta, how and why I will need to select either time stamp,Cal.Day or Numeric Pointer?
    and what are the safety interval upper and lower limits? when you have to select one or the other?

    Hi,
    when you run the delta ,you need to mention that what is the lat update and where you need to consider it as a next delta.
    suppose if you select calday and soppose you run the init at say 05.12.2006,
    then the records which are created after this date and till the present date will be considered as one delta.
    If you mention it as timestampthen it willconsider both date and timeas a marker to run the delta
    If you mention calday then you can run delta only oncethat too at the lasthour in a day otherwise you will miss the records,  whereas if you mention timestamp then you can run deltas mutiple times in a day.
    if you set  numeric pointer your delta will pick the records greater than the numbers where you set the pointer , and this will be only applied when you have a field with numerics.
    We will set safety uppre limit to run the present delta and also the previous delta once again , inorder not to miss any records on a safer side.
    same is the case with lower limit.
    haritha

  • Report requirements with Average value , forecasting value & Prod Quant.

    Dear Friends,
    I need a help in Reporting.
    The reqirement is like this:
    1. I need to display the daily production quantity.
    2. Also the Average value of the Production quantity for a month.
    3. And the Forecasting value for the first day of next three months.
    4. Restricted Cal month on filters with variables and calday in columns and  
        keyfigure in Rows.
    I have tried to calculate the Average but as the  report is based on cal day it gives me the average value for all cal days. But i need it for the entire month.
    Plz help me in solving this report with your golden ideas!!!
    Thanks in Advance and Points will be assigned!!!
    Thanks
    Sri

    Hi,
    Thanks for your early response.
    Actually i am unable to use tcode: KKBC_ORD rather able to use KKBC only.
    Using KKBC (Target/actual/production variance) and activating collective order from setting option only able to see the details for a particular leading production order only relating toa  particular period .
    My requirement is to display all the production orders settled in a particular period along with (Material code /order number/ Qty/Actual value and variance value).
    Note: If any leading order exists then that should be collective order i.e.(value and Qty should come against the leading order number).
    If there is any standard tcode exists please let me know else provide the tables and logic to bui;d up such a report.
    Regards,
    Ramakanta

  • Select working days from interval selection

    Hi
    I have a requirement to create a report that shows Backorder Value Status for each working day. In our cube we mapped 0CALDAY to sy-datum which keeps the Backorder Data for each load. Data would look like this:
    Cal Day   BO$
    01/01/08 $200
    01/02/08 $500
    01/03/08 $100
    The report should show the BO value for each day (not a problem) and calculate an average (not a problem either).
    The problem is that customer would like to select the range of calendar days (let's say 01/01/08 - 01/03/08) and would like the report to eliminate all non-working days and bring back only BO value for working days:
    Cal Day  BO$
    01/02/08 $500
    01/03/08 $100
    I've tried to create Exit Variable -but I read that if variable has selected "ready to input" box in the variable option (which allows the customer to select the range) - it will not look at the code. In the Debbuger the code worked fine - but the report still pulled all calendar days.
    Anyone have any other idea how to handle this?
    Thank you
    Justyna

    Hi Justyna,
    I'll just hint you some simple processes, which you can try other than exits.
    1)If you are reporting only for a particular month data in the reporting use User entry/Default value variable with multiple values entry and select only working days of that month.
    2) If you want to use the report year wise then just restrict the 0CALDAY and exclude all the non working days (holidays) for one year.So that Holidays are restricted from the report.
    3) Last thing is in the process chain itself while defining the variant select the factory calender and exclude all the holidays.
    Assign some points if this is useful.
    Warm Regards,
    I.R.K.

  • Acrobat Pro 6 Average Daily Production and Math.round problem

    Acrobat Pro 6 Average Daily Production and Math.round problem
    (Production.0) (154) (whole units) . (Production.1) (90) (fractional) / (divided by) 31 (days) results in (Average.0) (4)(whole units) . (Average.1) (10) (fractional) using :Math.round.� Noticed that 154 (whole units) . 85 through 99 (fractional) also show 4.10. (without Math.round : 5.00)
    Method:
    �Production.0� (whole units) . �Production .1� (fractional) / Days = (Average Daily Production) (�Average.0� (whole units) . (Average.1) (fractional)
    � Production.0 (value not calculated)�, � Production 1 (calculated) (event.value = util.printx("0099", (event.value)).substr(-2,2); � �Average.0 (value not calculate)�, and �Average.1 has following calculation:
    var punits = this.getField("Production.0");
    var pfrac = this.getField("Production.1");
    var average = 0.0;
    average = (punits.value + pfrac.value / 100) / this.getField("Days").value;
    this.getField("Average.0").value = average - average % 1;
    this.getField("Average.1").value = util.printx("0099", Math.round((average % 1 * 100))).substr(-2,2);
    �Math.round� appears to be a problem. Also, could you explain the purpose of �0099� . Anyway, why would 154.85 through 154.90 divided by 31 give 4,10. Also, their must be a better way, to find the average daily production. All you have to do is divided the production (whole. fractional) by the days, and display the average daily production as (whole. fractional). Any suggestions??

    There are a many loose ends in your question.
    First, I have never seen before a variable type called 'var'. Is it a java primitive or a class?
    Next, I cannot seem to find any class that has the printx method.
    When it comes to substr(-2,2), I get confused. First, I thought that it was a method of the String class, but I only got as far as substring(beginIndex, endIndex).
    If you really must break the production and average into pieces, try this:
    float average = (punits + pfrac/100) / days;
    int avg_units = (int)average;
    int avg_frac = (int)( (average - avg_units) * 100 );My guess is that util.printx("0099", x) formats x having two optional digits and two mandatory digits, showing 0-99 as 00-99, but allows to show numbers with three and four digits.
    154.85/31 = 4,9951612903225806451612903225806
    154.99/31= 4,9996774193548387096774193548387
    If you round the fraction of theese numbers multiplied by 100 ( = 99.51.. and 99.968...) you get 100, and this will be the output of printx. My guess for "4.10" is that substr(-2,2) returns the two first characters of the string, because the start index should not be zero. (According to java docs, substring throws an exception on a negative index, so what kind of class are you really using ??????)

Maybe you are looking for

  • Dont know how to link the relationships in these tables?

    I have one table called holiday_details and another called date_holiday. I am trying to link the two together. The column i am trying to link in the holdiay_details is holiday_code. This is the primary key in this table and a foreign key i want to li

  • IOS 8.1 and iPhone 6 Plus Apps reboot

    I have two problems with iOS 8.1 and my iPhone 6+. Occasionally, apps are crashing and iOS 8 reboots.  One that does it most often is 1password when I use TouchID to open it. The other issue is with Safari.  When I download a file within Safari what

  • Making documents saved with pages 07 work with the new pages app

    I have pages 07 that I have used for years on my iMac.  I recently got a MacBook Air, and had to put on the new pages app.  Now the new pages won't open my documents from pages 07.  I am told that I need pages 09.  Where do I get Pages 09?

  • Client copy & condition records: Printing from QA system to production

    Hi, We have the following problem: When production system is copied to quality assurance system (full system copy / client copy), also the condition records are copied. This means that when e.g. a sales order is printed in QA system, this printout go

  • Use html ad banner in as3 AIR

    I am wanting to use an HTML ad banner in my AS3 Air for Android project, here is the html code: <a href="http://tracking.raftika.com/aff_c?offer_id=1106&aff_id=1708&file_id=12132&file_id=12166" target="_blank"><img src="https://media.go2speed.org/bra