The cumulative functions of oracle support

Hello

Now draw a low-burning in OBIEE dash boards using responses. This table draws 'remaining real' and 'remaining provided' against a series of dates. I've written a SQL with cumulative functions as shown below to retrieve data points required for the chart.
SELECT
day_wid, 
((SUM(SUM(planned_labor_units)) OVER ()) - ( SUM(SUM(actual_labor_units)) OVER (ORDER BY day_wid desc ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) )) AS actual_remaining,
((SUM(SUM(planned_labor_units)) OVER ()) - ( SUM(SUM(planned_labor_units)) OVER (ORDER BY day_wid desc ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING))) AS Planned_remaining
FROM w_activity_spread_f where project_wid=141 and activity_wid=2161
GROUP BY day_wid ORDER BY day_wid;

{code}

Any help would be appreciated.

Thanks,
Satya                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

the syntax is wrong in your code.

You need something like

Evaluate (((SUM (SUM (%1)) ON (()) - (SUM (SUM (%2)) OVER (ORDER BY desc ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING %3))), "P6Core". «Fact - resource assignment ".» "" Planned units ","P6Core ". «Fact - resource assignment ".» "' Real units", "P6Core". «Fact - resource assignment ".» ("' DAY_WID")

For more syntax, see these articles.

http://obiee101.blogspot.com/2007/12/OBIEE-evaluate-function.html

http://gerardnico.com/wiki/dat/OBIEE/evaluate

-Madan

Tags: Business Intelligence

Similar Questions

  • HTTP: Error 58 (the network function is not supported by the system)

    Hi all

    I have a problem with HTTP Client in LV 2011 functions.

    As you can see in the screenshot attached, I try just:

    -Open a handle-> no errors

    -Send a web request using the GET method-> error 58

    -close the handle

    The problem is that a 58 error: "the network function is not supported by the system. However, it works fine when I type the same URL in a web browser.

    You have any idea of what could be the problem? Thank you in advance for your help!

    J.

    I have fixed the bug: there was a white at the beginning of the URL... (!!!). I deleted the empty character and now it's OK.

  • Test the connection to My Oracle Support fails

    Hello

    I am fairly new to cloud OEM control but can't seem to find the journal to solve this.  It seems that CC cannot talk about MOS of my server, even if I can wget and curl it directly from the server very well.  I am Setup-> Proxy Settings-> My Oracle Support.  I do not have a proxy between this server and the web, so I choose "Not of Proxy" and then click on the Test button.  It fails with:

    Unable to connect to My Oracle Support, using the URL "https://support.oracle.com". Check the proxy settings. Try using your web browser and has the same proxy settings, to test the URL "https://support.oracle.com". "" If you are still unable to connect, check the logs of WHO for more details about the failure.


    Can someone explain why this is happening, or give me a clue where the log would be?  I can't find all the newspapers recently under my location of $OMS_HOME.

    In addition, anyone know how CC manages the agents on different subnets?  In other words, my server will be connected to a network VLAN for Tomcat monitoring mechanism and also multihomed on a DB VLAN to monitor Oracle database instances.  If the server can communicate on these subnets OK, is there something I need to do in CC so that it recognizes these networks?

    Thank you!

    Thanks for the links of the document, which have been a great help.  It turns out that the issue was related to SSL and fixed by the workaround below:

    Cannot complete the operation network against my Oracle Support

  • Need help on how to increase the seriousness on the issue in my oracle support

    Hello

    Please, help me make the problem worse in my oracle support.

    Thank you

    Prashant Joshi

    To request a change of gravity in a Service request, please call Oracle Support hotline or update the SR demand. now, you can also change the severity of the SR directly from the option from the drop-down list provided in MOS.

  • Find the exact need in oracle support site

    Hi all

    Oracle support is very complex to find the exact needs.

    Suppose I want to download FMW 11 GR 2 version 11.1.2.0.0 forms and reports

    I'm wonder how to find and download?

    kindly help.

    Hello

    Check this link MOS!
    -Asking the physical URL send or download software Media [ID 1071023.1]

    Kind regards

  • Are the XQuery functions that are supported in the path of a function XMLTable clause?

    Hello

    Oracle 11.2, can I use XQuery functions in the path of a function XMLTable clause? I tried, but does not fit any result. Here is an example with and without the function fn:lower-case():

    SQL >
    SELECT EVENT_ID, ACTION
    OF EVENTSCHEMA.event x,.
    XMLTABLE ('/ *' from EVENTXMLTEXT)
    COLUMNS
    PATH varchar (10) ACTION ' / * / action'
    );

    EVENT_ID ACTION
    ------------- -----------
    1000 OBSERVE
    1001 OBSERVE

    SQL >
    SELECT EVENT_ID, ACTION
    OF EVENTSCHEMA.event x,.
    XMLTABLE ('/ *' from EVENTXMLTEXT)
    COLUMNS
    ACTION varchar (10) PATH "fn:lower - case(/*/action)".
    );

    EVENT_ID ACTION
    ------------- -----------
    1000
    1001


    At the end of the day, I will generate lines such as

    PATH of char (1) INFERRED ' if (fn:upper - case(/*/cah:extension/cah:inferred) = 'TRUE') then if "t" ElseIf (fn:upper - case(/*/cah:extension/cah:inferred) = 'FALSE') then 'f' not null'.
    PATH of TIMESTAMP BIZTRANSACTIONDATE "fn:adjust - dateTime-to-timezone(/*/cah:extension/cah:bizTransactionDate).

    but they also return null. If I remove the XQuery functions in them, they work.

    Do you know what could be the problem here?

    Thank you!
    -Daniela

    Works for me:

    SQL> with my_sample_table as (
      2    select xmltype('
      3    MONDAY
      4    TUESDAY
      5    WEDNESDAY
      6    TUESDAY
      7    FRIDAY
      8    SATURDAY
      9    SUNDAY
     10  ') xmldoc
     11    from dual
     12  )
     13  select x.*
     14  from my_sample_table t
     15     , xmltable(
     16        '$d/days/day'
     17        passing t.xmldoc as "d"
     18        columns day varchar2(30) path 'if (string-length(.)>6) then lower-case(.) else (.)'
     19       ) x
     20  ;
    
    DAY
    ------------------------------
    MONDAY
    tuesday
    wednesday
    tuesday
    FRIDAY
    saturday
    SUNDAY
    
    7 rows selected
     
    

    Do you know what could be the problem here?

    Please post an example of XML document.

  • Get the error when using the UTL_SMTP function in Oracle 11 g

    Hello

    I get the error when executing a trigger e-mail code in oracle 11 g:

    I have following trigger on the temporary table:

    CREATE OR REPLACE TRIGGER temp_temp_message AFTER

    INSERT OR UPDATE ON temp_message FOR EACH LINE

    declare

    Conn UTL_SMTP . CONNECTION ;

    msg VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Insert in temp_message values ()1

    );

    When I insert the record in the table there are given the following error.

    ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list

    ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14

    ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'

    But if I run the next plsql through sqlplus send mail successfully:

    declare

    Conn UTL_SMTP . CONNECTION ;

    MSG VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Thanks in advance.

    Yoann

    To resolve ORA-24247 you must:

    (1) create an acl (if it is not already created)

    (2) add the user privileges using the resources of the network

    (3) to use the ACL to a specific address

    This might be useful

    How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips

  • Confusion with the Log function

    Hi all

    I am facing a problem using the logarithmic function on oracle XE 11 g.

    We all know that log (8), 2 is 3. Now obviously 3 should be together number here not a fraction (or I know wrong?).

    However, I do this:

    SELECT LOG(2,8) FROM DUAL;
    
         -- Result is 3
    
       -- but 
         SELECT floor(LOG(2,8)) FROM DUAL;  
    
        -- Result is 2 !!!!!!!!
    
      --   However 
         SELECT FLOOR(3) FROM DUAL;
    
         -- Result 3 as expected
    

    DB Version is 11g XE.

    Thank you,

    Ru

    1 * SELECT to_char (LOG (2.8)) FROM DUAL

    SQL > /.

    TO_CHAR (LOG (2.8))

    ----------------------------------------

    2.99999999999999999999999999999999999999

    SQL >

  • Calibration error SMU-4141 niDCpower version 1.8, "calibration function is not supported by the device."

    Dear Sir.

    Nice to meet you.

    When I run the SMU-4141 "Adjust voltage Leve.vi niDCPower Cal" calibration function niDCpower version 1.8.

    It shows an error "function of calibration is not supported by the device." (false cae)

    But if I run the calibration function SMU-4141 "niDCPower Cal Adjust voltage Measurement.vi", (real deal)

    It will work.

    See attachments.

    My equipment list:

    Windows XP SP3

    LabVIEW 2011

    niDMM 3.0.5

    niDCpower 1.8

    PXI-1073 case with 2 cards.

    SLOT2: SMU-4141

    slot6: PXI-4071

    Could someone tell me the solution?

    Hi Peter,.

    The calibration process indicates that the call of the function of voltage adjust NI - DCPower Cal calibrates both the output level of the device as well as the ability to measure of the device.  It is even for the Cal of NOR-DCPower function adjust a current measurement.

    You must perform a calibration automatic on the device prior to the initial audit of the device, before the adjustment process and before the final verification process.

    I'm not sure I understand your question very well.  Please let me know if I have not responded sufficiently.

  • Failed to get information on the license ORACLE 'Support identifier'

    Untitled1.jpgUntitled.jpg



    I can not get the ORACLE "Support id" license information : CSI 20061868

    I tried to register this CSI number on the My Oracle Support (https://support.oracle.com) Web page, but it shows error: cannot add support identifier. Support identifier 20061868 is not valid or does not allow recording. To reference the snap attached (CSINUMBER.jpg and CSINUMBER1.jpg)


    How I can get the conditions terms and conditions, level of support, support period etc. between our company and Oracle on the CSI 20061868

    Cecile

    Hello

    This is not the place to ask.

    You must contact your Oracle representative or agent to see what it takes to turn that CSI.

    Kind regards

    Bashar

  • Looking for Oracle Support Doc that explains + and * conventions used in the Oracle certifications.

    Hi all

    A few months back I saw a (link to an oracle doc) post in the forums of essbase explaining the conventions used by oracle and what they mean when they say that a platform supports the "Software.1. * ' as opposed to '+ Software.1'. I tried Googling for the doc and after an hour of search and do not find that he decided to publish it. I'm sure that the link to this doc has been published by TimG or GlennS_3 or JohnGoodwin. (Sorry for the tags). If anyone knows what talk and relate to this doc, I would appreciate if you can share it and I promise you to save this time. ... Help, please...

    Thank you
    Ted.

    Hi Ted, yes - it's here: https://blogs.oracle.com/proactivesupportEPM/entry/how_to_read_product_versions

    I highly recommend you subscribe to the RSS feed of the blog proactive Support.

  • In how the Oracle Support extend?

    Hello

    I have a problem to determine to what extent I am covered by the support of oracle in a particular case. I intend to use the DMBS_LDAP package to connect to a server to authenticate CASES.

    1. am I covered by the Oracle Support in this scenario?

    2. If I am covered, to what extent? / What cover is provided?

    Thank you

    II.

    Oracle certifies (or not certify) third-party products. MetaLink (My Oracle Support) is a matrix of certification for your Oracle database server software configuration (for example Oracle version x is certified operating system y). Oracle does not attempt to certify the virtually infinite number of software products that your database could interact with.

    Justin

  • Why we need to create the package instead of procedure or function in Oracle

    Hello

    Recently, I attended an interview, they asked,
    why we must create the package instead of procedure or function in oracle. Is a specific advantage, if we create together.
    I'm not sure. can u tell me please someone.

    Thank you and best regards,
    Sanjeev.

    Hello

    A part of the oracle documentation.

    What is a PL/SQL Package?
    A package is a schema object which includes subroutines, variables, and logically related PL/SQL types. Packages have two parts: a specification (spec) and a body. Sometimes, the body is unnecessary. The specification is the interface to the package. It declares the types, variables, constants, exceptions, cursors, and subprograms that can be referenced from outside the package. The body defines queries for the sliders and the code for the subprogrammes.

    Benefits of the PL/SQL Packages
    Packages have a long history in software engineering, offering important characteristics for a reliable, maintainable, and reusable code, often in team for large systems development efforts.

    Modularity

    Packages allow you to logically encapsulate Associates types, elements, and subroutines in a module named PL/SQL. Each package is easy to understand, and the interfaces between packages are simple, clear and well defined. This facilitates the development of applications.

    Easier application design

    When you design an application, all you need initially is the interface information in the package specification. You can code and compile a spec without his body. Stored subprograms that reference the package can then be compiled as well. You should not set the package body entirely until you are ready to complete the application.

    Information masking

    With packages, you can specify which types, elements, and subprogrammes are (and accessible) public or private (hidden and inaccessible). For example, if a package contains four subprogrammes, three can be public and one private. The package hides the implementation of the subprogramme private so that only the package (not your application) is affected if the application changes. This simplifies maintenance and improvement. Also, by hiding the implementation details of the users, you protect the integrity of the packaging.

    Feature added

    Sliders and packed public variables persist for the lifetime of a session. They can be shared by all the subprogrammes that are running in the environment. They allow you to manage data in any of the transactions without storing in the database.

    Best performance

    When you call a subprogram packaged for the first time, the whole package is loaded into memory. Subsequent calls to related subprograms in package require no disk i/o.

    Packets stop cascading dependencies and avoid an unnecessary recompilation. For example, if you change the body of a packaged function, Oracle does not recompile other routines that call the function; These routines only depend on parameters and return value that are declared in the specification, so they are recompiled only if the specification changes.

  • using the R function on the Oracle database

    for the use of R, I can only use Oracle data mining algorithms, or I can use the R function as social network in the Oracle database?

    Could you please be more specific about the R functions/packages you are interested in. The ODM and ore are part of the unique option of OAA.

  • Cannot complete the operation of network against My Oracle Support

    The weirdest thing that happens to me, new installation of 12 c, with the correctly filled out proxy settings, with proxy test works successfully, with the CCR download at MOS, I am not able to connect to console 'EM MOS, reception:

    Cannot complete the operation of network against My Oracle Support. Please check the network connectivity to the Oracle Support Site.

    eMoms.log is filled:

    + 2012-07-18 11:30:13, 537 [EMUI_11_30_13_/console/mos/signin] ERROR handlers. SigninHandler logp.251 - SigninHandler0: impossible to establish a proxy connection: 407 Proxy authentication required.
    oracle.sysman.emmos.common.exception.EMMOSException: 0: could not establish a proxy connection: 407 Proxy authentication required

    Seems half of 'EM is aware of proxy setting and the other half is not.
    I open SR but the named person will be able to help me because apparently, he doesn't understand a thing I want to talk. I hope that I will find someone who is willing to help out here.

    Can you use the same domain in proxy page you found in the trace: "Infrastructure to browse" & give it a try.

Maybe you are looking for

  • Restart Firefox 23 causing system?

    Started about 2 weeks ago. Windows 8 System. Normal use is boot, go to the office, review e-mails and normally select one or more links in them to open FF. As I read a page most of the time the system WILL restart. Sometimes it will happen once I hav

  • Firefox crashes constantly randomly out of safe mode

    Firefox is unusable because it crashes constantly on my WinXP system. Firefox version = 7.0.1. Issue started happening a few versions ago. Accidents happen in safe mode as well and with all extensions and addon is disabled.

  • Resume the failed Satellite Pro 4600

    Hello I get a message "Press any key to resume failure continues" every time I powere to the top of my Satellite Pro 4600. It then remains on a white screen and I am unable to do anything. Someone at - it suggestions on how to solve this problem? Tha

  • Are there benefits thanks to apple to reach Advisor top-level posts

    I work for a retailer of Verizon and the benefits to get knowledge and experience helping people solve problems, I see even a potential for maybe even get some business out of it. But this is what apple offers to put in the time and helping at this r

  • A better way to make a continuous read/write on a NOR-6008

    Hello I use a USB of NOR-6008 module and have a loop of the software configuration where I acquire analog signals, digital signals, then, then put a digital high or low and repeat. I use digital multiplex outside the material so that I can use 6 of t