Problem in taking the average of a column and grouping by date

Hi all,
I created a logical column using a formula in "Administration". The formula is like;
Duration%=(Duration*100)/(X-Y).
Then, in "answers", I created a report using Duration% column and another column which is its average. I want to see the average of Duration% values grouped by date.
The numbers in the report are incorrect. What can be the reason for this? Does using logical column which is derived with a formula cause a problem when we take its average?
Thanks in advance for your help..

use avg(Duration% by <"Date Table"."Date Level"> in the answers column.
substitute "Date Table" with your actual time dimension table name, and "Date Level" with your actual date column that you want to group by.

Similar Messages

  • The average energy impact column disappeared--how do I get it back?

    In activity monitor, as the title says. The Average Energy Impact column disappeared. It isn't something you can "right" click and add. The only thing I can think I did was pick "all processes" in view.

    Right-click on any of the other Headings (tone curve, detail, etc.) And put a checkmark in basic as well as any other sections that you want displayed.

  • My ipod nano 5th gen  wont play movies or videos on my ipod but plays them on itunes when i click on it the screen flashes black i have tried taking the movie off my ipod and putting it back on but it still won't work what should i do?

    My ipod nano 5th gen. won't play movies or tv shows but it plays them on itunes.  When I click  on it the screen flashes black. I have tried taking the videos off my ipod and then putting them back on but it still won't work. what should i do?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • I want to know the difference between Days column and Day1 Column

    Hi All,
    I used this query:
    SELECT to_char(return_date_time,'dd/mon/yyyy hh24:mi:ss') Test,
    DECODE ('I', 'I', DECODE (1, NULL, NULL, 0, NULL, SYSDATE + 1)) Days,
    DECODE ('I', 'I', SYSDATE + 1) Day1
    FROM fm_curr_locn
    WHERE patient_id = 'DU00002765'
    output: 
    Test
    Days
    Day1
    26/oct/2013 00:00:00
    26-OCT-13
    10/26/2013 3:06:59 PM
    I want to know the difference between Days column and Day1 column and why the days column didnt show the time
    Please anyone help.....
    Regards
    Shagar M

    Pleiadian wrote:
    It is the decode statement that is doing this.
    The format of decode is:
    decode(expression, search1, result1, search2, result2, searchn, resultn, default)
    All result fields must be of the same datatype and will be of the datatype of the first result (result1 in this example)
    In your example (the decode for the field Days) the first result is a NULL. I suspect (gurus? anyone?) that Oracle will use the varchar2 overload of the decode statement, and the date field will be converted to varchar2 using your NLS_DATE_FORMAT settings.
    In the second decode statment (Day1) the first result is of datatype date, so the result of the decode statement will be a date field (and will be parsed as such by your sql development tool)
    I agree, as NULL is the first result returned the datatype is undetermined, so Oracle is picking VARCHAR2 over others, and causing an implicit datatype conversion on the resultant date value, whereas the other which is returned as a date will use the local settings of the client tool being used.
    I can replicate the 'issue' in Toad, and it's rectified if we cast the first returned value of the decode statement...
    SELECT DECODE ('I', 'I', DECODE (1, NULL, CAST(NULL AS DATE), 0, NULL, SYSDATE + 1)) Days,
           DECODE ('I', 'I', SYSDATE + 1) Day1
    FROM dual

  • How do u get help from apple support with iChat? I was able to chat with support last week to solve my problem but now the same issue is back and I don't see the option to chat now?

    qHow do u get help from apple support with iChat? I was able to chat with support last week to solve my problem but now the same issue is back and I don't see the option to chat now?

    For what it is worth I have noticed a similar issue from the iPad3 while at work and home. At work we have two Apple TV 3rd Generation installed and tied to our A/V system. I believe the issue has to do with a timeout on the broadcast saying "here I am" and allowing devices to connect.
    For example:
    At work we have several Wi-Fi SSID being broadcast from Cisco APs. The only one we can use with the Apple TV is the one that uses a WEP since the others are either setup to be hidden, require web page authentication, or have a login requirement from employees. Essentially, what I believe the issue is that the Apple TV periodically broadcasts a message to other iOS devices that support Mirroring. When the Apple TV does not get a response from a device it goes into a dormant mode and requires either a command from the remote control or a reboot. This has been tested with both the power management enabled and not enabled with the same results.
    As for when I come home, the Apple TV3 has not seen the device in some time and therefore is not broadcasting it's location information. A simple click of the circle or menu keys on the remote will give it the command to start broadcasting again and allow the iPad3 to see the Apple TV. When trying to Home Share the computer can not play (iTunes 11, Win8RTM) until the Apple TV is awoken then it will show up for mirroing.
    This may or may not assist you but, it hopefully explains how the issue may be happening.

  • I connected my iPod Touch to a stereo system phono input using a cable with stereo jacks (red and white) on one end and that plugs into the iPod's headphone jack.  The problem is that the sound is extremely muffled and bass-heavy, with little treble.

    I connected my iPod Touch to a stereo system phono input using a cable with stereo jacks (red and white) on one end and that plugs into the iPod's headphone jack.  The problem is that the sound is extremely muffled and bass-heavy, with little treble.  I have to turn the bass control on the stereo receiver to pratically zero in order for the sound coming through the stereo to be acceptable.  Is there a setting on either the iPod or the stereo that I need to change in order to fix this?

    The phono input is for a phonograph.  The iPod does headphne output is not that same as a phongraph output.  Does th stero have an AUX input?  That should be compatible.

  • Please, I am in a very big problem I designed the project by Adobe director And you test the software on the computers on Windows and works with high quality When I tested the project on Apple Macintosh operating system, Li appeared a number of problems

    Please, I am in a very big problem
    I designed the project by Adobe director
    And you test the software on the computers on Windows and works with high quality
    When I tested the project on Apple Macintosh operating system, Li appeared a number of problems and you dissolve a large part of them
    But I have a problem too big
    The project works on some devices and others show me messages mistakes and why chasm different operating system version
    Apple's Macintosh and these messages
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    others
    shokwave player error
    pleas what can i do

    Welcome to the Support Communities.
    m.raslan wrote:
    I tested the project on Apple Macintosh operating system
    Click on the  menu at top left of your screen, choose About This Mac and, in the panel that appears, note the Version no. in the form 10.n.n. Then update your product list so we can see what version of OS X you're running on the Mac — see this tutorial:
    Update your product list
    m.raslan wrote:
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    This Apple doc may help:
    OS X: About Gatekeeper
    m.raslan wrote:
    shokwave player error
    Is Shockwave Player installed?...
    http://www.adobe.com/shockwave/welcome/
    ...If not, get it here:
    http://get.adobe.com/shockwave/

  • My apple tv gives a msg " there was a problem connecting to the network " check your settings and try again (5) - sometimes it comes with the number 3905 - i have tried all the suggestions from reset, restart, to switching and unplugging everything -

    I was trying to download a movie and then it said there was a problem connecting to the network , check your settings and try again (5) . I tried all the various suggestions already in the discussions including restore, restart, unplugging everything etc - still doesnt work. Any other new ideas? I bought my apple tv just a few days ago and am really annoyed its already run into problems

    Reboot router, make sure it's up to date. If on wifi try ethernet. Make sure DNS is set to automatic (settings - general - network).

  • I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    Are you using the Office for Mac 2011 version, as you need to do?  The Office for Mac 2004 is Not at all compatible with Mountain Lion, and the 2008 version has been noted to have some problems running with ML.
    Hope this helps

  • Javascript to Calculate the Average of a column

    I have a column of fields in my PDF that I am trying to calculate the average for.
    My problem is that there are 7 fields, but all 7 may not be filled in so I think I need some kind of "if" statement that would only count the number of fields that have values.  Then somehow work that into the rest of my calculation...
    This is what I have so far...
    (function () {
        // Get all of the field values, as numbers
        var v1 = +getField("column.0").value;
        var v2 = +getField("column.1").value;
        var v3 = +getField("column.2").value;
        var v4 = +getField("column.3").value;
        var v5 = +getField("column.4").value;
        var v6 = +getField("column.5").value;
        var v7 = +getField("column.6").value;
        var v8 = +getField("column.7").value;
        // Calculate the result and set this field value
        event.value = (v1 + v2 + v3 + v4 + v5 + v6 + v7) / the number of fields that were filled in;
    I'm pretty new to javascript. Any help would be greatly appreciated! THANKS

    First, I woul write this function withou field references to make it more universial, and then I would make it a document level funcion so it could be used more than once in a PDF and easily brought into another PDF.
    function Avg() {
    // computer average of non-empty passed field names
    var sum = 0; // sum of fields
    var count = 0; // counter for non-blank fields
    for(i = 0; i < arguments.length; i++) {
    var iField = arguments[i]; // get the i element from passed arguments
    var fField = this.getField(arguments[i]).value;
    if(!(isNaN(fField)) ) {
    // field is a number
    if(fField.toString() != '') {
    // field is not null or blank
    sum += Number(fField); // add to sum
    count++; // increment count
    } // end not blank
    } // end number
    } // end loop through arguments
    if(count != 0) {
    // compute average if there is one or more items to average
    return sum / count; // return average
    } else {
    return '';
    } // end no average computed
    } // end Avg function
    Your custom calculation script then becomes:
    event.value = Avg('column.0', 'column.1', 'column.2', 'column.3', 'column.4', 'column.5', 'column.6', 'column.7');

  • Problem in calculating the Average Daily Requirement

    Hello all,
    I didn't understand how the system calculates the average daily requirement in Dynamic Safety Stock process. The following process flow in given in SAP notes to find how the system calculates the average daily requirement:
    1. The system uses the defined parameters to determine the number of days used for calculating the average daily requirements. If the period is defined as a week, the period length as standard days (5 days) and the number of periods as 2, the system divides the total of the requirements by 10 days.
    2. The system then calculates the total of the requirements for this period.
    The system takes into account all requirements in the current period, even requirements that lie in the past but are still in the current period. For example, if the planning run is carried out in the middle of the month, then those requirements that were planned at the beginning of the month are also included in the calculation of the average daily requirements.
    3. The average daily requirement is calculated using the formula:
    Requirements in the specified number of periods / Number of days within the total period length
    I have run MRP on 02/23/2009 and the following results are generated in stock requirement list of the component part:
    Date     Dependent Requirement     MMSA Schedule Lines Quantity
    3/3/2009     10     31
    3/11/2009     20     20
    3/31/2009     30     30
    4/14/2009     40     49
    4/22/2009     50     50
    4/29/2009     60     60
    5/11/2009     70     55
    5/21/2009     80     80

    Hi,
    In addition to my previous reply,
    If you did following setting -
    Range of coverage in first period -
    min - blank
    tgt - 7
    max - blank
    number of periods - blank
    The system will calculate the safety stock for 7 days for each period; i.e., 7*3=21 and it will generate plnd orders as
    week1 = 51
    week2 = 14+21 = 35
    week3 = 10+21 = 31
    week4 = 30+21 = 51
    If you want to restrict your calculation till 2 periods then make following settings -
    Range of coverage in first period -
    min - blank
    tgt - 7
    max - blank
    number of periods - 2
    Range of coverage in second period -
    Make all blank
    Range of coverage in the rest of the horizon -
    min - blank
    tgt - 3
    max - blank
    It means for first two weeks the safety stock will be 21 (equivalent to 7 days) and for rest of the horizon it will be 3*3 = 9 (equivalent to 3 days)
    The Plnd orders will be -
    week 1 = 51
    week 2 = 35
    week 3 = 14+9 = 23
    week 4 = 30+9 = 39
    and so on.
    Regards,
    Amol

  • Is it possible to get the total value for column and assign to other field

    hi,
    Is it possible to get the total value of particular column and assign that value to another field?
    How to do this?
    Thanks in advance,
    SAN

    Afridi,
    My extended controller class code:
    package xxhr.oracle.apps.per.selfservice.appraisals.webui;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.per.selfservice.appraisals.webui.OverviewPageCO;
    import oracle.jbo.Row;
    public class XXOverviewPageCO extends OverviewPageCO {
    public XXOverviewPageCO() {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("XXCalcAvgButton")!=null){
    throw new OAException("welcome",OAException.INFORMATION);
    //getSum(pageContext, webBean);
    private String getSum(OAPageContext pageContext, OAWebBean webBean) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject ratvo = (OAViewObject)am.findViewObject("CompetenceElementsVO");
    OAViewObject valuevo = (OAViewObject)am.findViewObject("PerRatingLevelsVO");
    Integer Sum = new Integer("0");
    int numofRows = ratvo.getRowCount();
    for (int x = 0; x < numofRows; x++) {
    Object Rating =
    ratvo.getRowAtRangeIndex(x).getAttribute("ProficiencyLevelId");
    if(Rating!=null) {
    int numofRowsforvalue = valuevo.getRowCount();
    for(int i=0;i<numofRowsforvalue;i++){
    if(valuevo.getRowAtRangeIndex(i).getAttribute("RatingLevelId").equals(Rating)){
    Object StepValue=valuevo.getRowAtRangeIndex(i).getAttribute("StepValue");
    Sum = new Integer(StepValue.toString()) + Sum;
    OAMessageStyledTextBean displayCompAvg=(OAMessageStyledTextBean)webBean.findChildRecursive("XXCompAvgText");
    displayCompAvg.setValue(pageContext,Sum);
    return null;
    But it is not affecting in the page.
    Can you please tell me what is the problem.

  • Want the Average of sales for months up to date, with empty months included

    How do I create an MDX that gives me the average of , f.ex., Sales
    Note that some months may not have sales, but the month should still be counted.
    The result I want to get out is a listing of Years with average of Sales for each year. Where current year only calculates up to current month.
    Lets say that todays month is 2014-05 and we have the following figures for this year.
    Month Sales
    2014-01 10
    2014-02 20
    2014-03 Null
    2014-04 15
    2014-05 10
    The calculation should be Sum(Sales) divided by 5 months: 55/5 = 11
    If I use:
    Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
    , [Date].[Calendar].[Month])
    , [Measures].[Internet Sales]
    It will exclude 2014-03, which is wrong!
    If I use CoalesceEmpty() to fill in the Nulls:
    Avg( Descendants([Date].[Calendar].[Month].CurrentMemeber
    , [Date].[Calendar].[Month])
    , CoalesceEmpty([Measures].[Internet Sales],0)
    It will fill in 0 for all months 2014 (up to 2014-12), which is also wrong!
    It feels like a really simple calculation, but I can't make it work.
    Thanks

    I finally had to fix it by checking the number of months to get it right.
    This solved my problem and gave me the correct averages on year and month level.
    Create Member CurrentCube.[Measures].[COMPLAINT COUNT AVG CALC] As Null
    ,Format_String = ";;;\N\/\A",VISIBLE = 1;
        // For Year level - Show average of year = Sum/NumOfMonth. If this year then up to this month else divide by 12
        SCOPE([COMP CREATION DATE].[YEAR].[YEAR], [Measures].[COMPLAINT COUNT AVG CALC]);
            This = IIF([COMP CREATION DATE].[IS THIS YEAR].&[Y],
                            DIVIDE(SUM([COMPLAINT Count]),  Format(now(), "MM")),
                            DIVIDE(SUM([COMPLAINT Count]),  12)
            Format_String(This)="# ### ##0";
            NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
        END SCOPE;
        // For month level - Show average of month = Sum/NumOfDaysInMonth
        SCOPE( [COMP CREATION DATE].[Year-Month-Date].[YEAR MONTHNO], [Measures].[COMPLAINT COUNT AVG CALC]);
            This = IIF(not isempty([Measures].[COMPLAINT Count]),
                    Avg(
                        Descendants(
                         [COMP CREATION DATE].[Year-Month-Date].CurrentMember,
                         [COMP CREATION DATE].[Year-Month-Date].[DATE ID]
                        CoalesceEmpty([Measures].[COMPLAINT Count],0)
                        ,Null
            Format_String(This)="# ### ##0";
            NON_EMPTY_BEHAVIOR(This) = { [Measures].[COMPLAINT Count] };
        END SCOPE;
    mStenport

  • Hi, so I keep having problems logging onto the iTunes store in iTunes and I get this error message: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."

    Hi,
    So I keep having problems logging onto the iTunes store in iTunes where an error message pops up saying: "iTunes could not connect to the iTunes Store. An unknown error occurred (0x80090318) Make sure your network connection is active and try again."
    How do I fix this?

    Hey thatssoivi,
    If you are having an issue with being unable to connect to the iTunes store, I would suggest that you troubleshoot using the steps in this article - 
    iTunes for Windows: iTunes Store connection troubleshooting - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • Facing the problem in loading the applet in mozilla, Firefox and netscape

    Dear sir,
    Well I am facing the problem regarding loading of applet in firefox,mozilla and netscape. Its working fine in IE6 I have the samplecode which asks for jdk1.4 whenever the applet gets loaded in IE6 and also it works fine for every browser but he is asking jre for every time whenever the page gets loaded even if the jre is installed. I need a code such that it should ask only if the jre is not installed. One more thing is it so that for mozilla or netscape the jre installation files are different.
    pls give the solution.
    Well I am also facing the problem like when I load login page of my applicatoin in netscape or firefox
    I provided the buton on login page on which the hyperlink is present, the hyperlink is of servlet path when I click on the same it shows me the blank page instead he should forward the page to the next jsp webpage where I am showing the applet. But it works fine in IE versions and opera but not in the others.
    Awating for your reply.
    Rgs
    sumeet.

    Issue resolved with the help of ABAP.
    Regards
    Bijudas

Maybe you are looking for

  • Can't Install OS 9.1 or OS 9.2.1

    Having had problems with XPostFacto when operating on, OS X 10.3 I binned XPostFaco then initialized the hard disc from my OS 9.1 installer disc, (I could boot from it then.) I then reset the NVRAM to remove any more of XPostFacto's influence. Then b

  • Videos Freezes but the sound still continues.

    Hi all, I don't know what my problem is, I've uninstalled and reinstalled many times, I"ve deleted all history and cookies, it affects all browsers. I need help. My problem is that the screen would freeze but the sound and the indicator on the bottom

  • How to start from scratch, School mac?

    Hello everyone, So I have had a student laptop Macbook 2011 and now it is mine to keep, I was wondering if anyone could explain how to wipe the hard drive, reinstall snow leopard and start over Tnx

  • Flash Acceleration in win2003 R2

    Hi All, i tried to install the multimedia-redirection on a windows 2003 R2 sp2 server. The acceleration of h.264 and vc-1 is working fine with media player 10, but when i open youtube or other flash content with IE8 then it seems to go the normal Pat

  • Broadcast Monitor

    Ok, I'm afraid I didn't understand much in the other posts about broadcast monitors. But perhaps someone can lay out a simple, easy to understand suggestion for me. I want to be able to preview my titles (from FCP AND photoshop CS3, Motion, & Livetyp