Error using time function AGO()

Hi everyone
I am trying to make this report using OBIEE 11.1.5 with Essabas as datasource:
Account     ActualMonth     MonthPreviousYear     PreviousMonth     Actual Year
I have the time dimension (like in HFM), divided into two dimensions Years (Total -> Years) and Period (Total -> Quarters -> Months).
I use the AGO() function in the repository (BML) to get PreviousYear and PreviousMonth:
PreviousYear: AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Year"."Gen2,Year" ,1)
PreviousMonth : AGO("Essbase_1"."Data"."Measure" , " Essbase_1"."Period"."Gen4,Period" , 1)
If I use the columns PreviousMonth or PreviousYear separately they work fine. However using both in the same query, I get an error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 22036] Level in Ago function (Gen2,Year) must be a rollup of (or equivalent to) the measure level (Gen4,Period). (HY000)
Any idea how to solve this issue?
Many Thanks in advance
Mojito

Look at the following links:
http://obiee101.blogspot.com/2008/11/obiee-ago-and-todate-series.html
http://oraclebiee11g.blogspot.com/2011/01/ago-function-in-obiee-11g-answers.html
hope this helps.

Similar Messages

  • Using time() function in multithreaded application

    I am using time() function in a multithreaded application with NULL argument for getting current time.
    Some time it's observed that we get a time one minute earlier than current time (3600 seconds).
    Is there a problem in the usage of the function?
    I am using expression : currenttime = time(NULL);
    I had seen some people using following way - time(&currenttime );
    Will above two behaves differently in multithreaded environment?
    [I  am using  Sun C++ 5.5 compiler on Solaris 8]

    How do you compare actual time against the time seen by your threads? If your threads are printing the value from time(2) to stdout, it's possible that you're seeing an artifact of thread scheduling and/or output buffering.
    I really doubt that you have a concurrency problem, but anyway make sure that you include the -mt option on your compile line:
    CC -mt blahblahblah...

  • How to write a use time function in elsif

    Hai All
    I have generated an attendance form and my problem is while i am using elsif insert operation there and there is no updation.
    My need is
    this is my table structure
    EMPCODE NUMBER
    EMPNAME VARCHAR2(25)
    BARCODE VARCHAR2(25)
    INTIME VARCHAR2(25)
    OUTTIME VARCHAR2(25)
    INTRTIMEIN VARCHAR2(25)
    INTROUTTIME VARCHAR2(25)
    ATTEND_DATE
    when timing between 0145 and 0630 then update in outtime
    and 0630 to 1000 then insert in intime column
    and 1100 to 1300 then insert in intime column or
    update in outtime column and
    then 1600 to 1730 then to insert into intime column or else
    when intime is not null then update in outtime column
    I have tried and only insert id doing opver there Pls tell what wrong i have made
    declare
    t_in varchar2(25) := :bartime;
         t_out varchar2(25) := :bartime;
    -- t_date dail_att.attend_date%type;
    Begin
    go_block('TEST_SRI');
    FIRST_RECORD;
    LOOP
    if :bartime between 0145 and 0615 and t_out is null and t_in is not null then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE-1 ;
    elsif :bartime between 0630 and 1000 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
    elsif :bartime between 0630 and 1000 and t_in is null then
    update dail_att set outtime = :bartime where barcode= :barcode
    and ATTEND_DATE = :BARDATE-1 ;
    elsif:bartime between 1130 and 1330 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
    elsif :bartime between 1130 and 1330 and t_in is not null then
    insert into dail_att(barcode,intrtimein,attend_date)
    values(:barcode,:bartime,:bardate);
    elsif :bartime between 1615 and 1815 and t_in is null then
    insert into dail_att(barcode,intime,attend_date)
    values(:barcode,:bartime,:bardate);
    elsif :bartime between 1645 and 2000 and t_in is not null and t_out is null then
    update dail_att set outtime = :bartime
    where barcode= :barcode and outtime is null and ATTEND_DATE = :BARDATE-1;
    elsif :bartime between 2000 and 2200 and t_in is not null and t_out is null then
    update dail_att set outtime = :bartime
    where barcode= :barcode and outtime is null and ATTEND_DATE = :BARDATE;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' OR :BARCODE IS NULL;
    end if;
    NEXT_RECORD;
    --message('hai');
    END LOOP;
    delete from dail_att cascade;
    forms_ddl('commit');
    forms_ddl('truncate');
    exception
    when others then
    forms_ddl('rollback');
    message(sqlerrm||dbms_error_Text);
    message(sqlerrm||dbms_error_Text);
    End;      
    Regards
    Srikkanth.M

    I got it by converting by date time function
    Edited by: Srikkanth.M on Apr 10, 2010 2:19 PM

  • Error using Rank function in Answers

    Hi All,
    Am trying to generate a report in Answers which lists Top Accounts with Revenue.
    I Ranked the Revenue field and it is returning me correct values. ( Rank(account.revenue) )
    But, when I try to filter on this field and restrict the rows which shows only top 10 Accounts, it is returning the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1792, message: ORA-01792: maximum number of columns in a table or view is 1000 at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
    Can any one help me on this.
    Thanks in Advance,
    Imtiaz.

    Hi Joe,
    This is the Physical query generated when I use Rank function and the report is fine.
    select distinct D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14,
    D1.c15 as c15
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14,
    D1.c15 as c15
    from
    (select Case when D1.c1 is not null then Rank() OVER ( ORDER BY D1.c1 DESC NULLS LAST ) end as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c1 as c4,
    D1.c4 as c5,
    D1.c5 as c6,
    D1.c6 as c7,
    D1.c7 as c8,
    D1.c8 as c9,
    D1.c9 as c10,
    D1.c10 as c11,
    D1.c11 as c12,
    D1.c12 as c13,
    D1.c13 as c14,
    D1.c14 as c15,
    ROW_NUMBER() OVER (PARTITION BY D1.c1, D1.c2, D1.c3, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8, D1.c9, D1.c10, D1.c11, D1.c12, D1.c13, D1.c14 ORDER BY D1.c1 ASC, D1.c2 ASC, D1.c3 ASC, D1.c4 ASC, D1.c5 ASC, D1.c6 ASC, D1.c7 ASC, D1.c8 ASC, D1.c9 ASC, D1.c10 ASC, D1.c11 ASC, D1.c12 ASC, D1.c13 ASC, D1.c14 ASC) as c16
    from
    (select distinct T690.SUM_REVN_AMT as c1,
    T690.NAME as c2,
    T2216.NAME as c3,
    T690.X_PETROFAC_REVN as c4,
    T690.SUM_WIN_PROB as c5,
    T690.X_PERCENT_GET as c6,
    T690.SUM_WIN_PROB * T690.X_PERCENT_GET / nullif( 100, 0) as c7,
    T690.X_EC_PRIORITY as c8,
    T19028.LOGIN as c9,
    T690.X_COUNTRY as c10,
    T690.X_REGION as c11,
    T18311.NAME as c12,
    T18641.NAME as c13,
    T18238.NAME as c14
    from
    SIEBEL.S_BU T18238 left outer join (
    SIEBEL.S_USER T19028 left outer join (
    SIEBEL.S_OPTY T690 left outer join SIEBEL.S_STG T2216 On T690.CURR_STG_ID = T2216.ROW_ID) left outer join SIEBEL.S_ORG_EXT T1189 On T690.PR_DEPT_OU_ID = T1189.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18311 /* Competitor */ On T690.PR_CMPT_OU_ID = T18311.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18641 /* Partner */ On T690.PR_PRTNR_ID = T18641.ROW_ID) left outer join SIEBEL.S_POSTN T19114 On T690.PR_POSTN_ID = T19114.PAR_ROW_ID) left outer join SIEBEL.S_OPTY_BU T18280 On T690.ROW_ID = T18280.OPTY_ID) left outer join SIEBEL.S_OPTY_X T19415 On T690.ROW_ID = T19415.PAR_ROW_ID) On T19028.PAR_ROW_ID = T19114.PR_EMP_ID) On T18238.ROW_ID = T18280.BU_ID
    ) D1
    ) D1
    where ( D1.c16 = 1 )
    ) D1
    order by c1 desc
    But When I apply Filter on this Rank column then it gives me the error. THis is the Physical query for that
    select distinct Case when D1.c1 is not null then Rank() OVER ( ORDER BY D1.c1 DESC NULLS LAST ) end as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c1 as c4,
    D1.c4 as c5,
    D1.c5 as c6,
    D1.c6 as c7,
    D1.c7 as c8,
    D1.c8 as c9,
    D1.c9 as c10,
    D1.c10 as c11,
    D1.c11 as c12,
    D1.c12 as c13,
    D1.c13 as c14,
    D1.c14 as c15
    from
    (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c8 as c8,
    D1.c9 as c9,
    D1.c10 as c10,
    D1.c11 as c11,
    D1.c12 as c12,
    D1.c13 as c13,
    D1.c14 as c14
    from
    (select T690.SUM_REVN_AMT as c1,
    T690.NAME as c2,
    T2216.NAME as c3,
    T690.X_PETROFAC_REVN as c4,
    T690.SUM_WIN_PROB as c5,
    T690.X_PERCENT_GET as c6,
    T690.SUM_WIN_PROB * T690.X_PERCENT_GET / nullif( 100, 0) as c7,
    T690.X_EC_PRIORITY as c8,
    T19028.LOGIN as c9,
    T690.X_COUNTRY as c10,
    T690.X_REGION as c11,
    T18311.NAME as c12,
    T18641.NAME as c13,
    T18238.NAME as c14,
    Case when T690.SUM_REVN_AMT is not null then Rank() OVER ( ORDER BY T690.SUM_REVN_AMT DESC NULLS LAST ) end as c15
    from
    SIEBEL.S_BU T18238 left outer join (
    SIEBEL.S_USER T19028 left outer join (
    SIEBEL.S_OPTY T690 left outer join SIEBEL.S_STG T2216 On T690.CURR_STG_ID = T2216.ROW_ID) left outer join SIEBEL.S_ORG_EXT T1189 On T690.PR_DEPT_OU_ID = T1189.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18311 /* Competitor */ On T690.PR_CMPT_OU_ID = T18311.ROW_ID) left outer join SIEBEL.S_ORG_EXT T18641 /* Partner */ On T690.PR_PRTNR_ID = T18641.ROW_ID) left outer join SIEBEL.S_POSTN T19114 On T690.PR_POSTN_ID = T19114.PAR_ROW_ID) left outer join SIEBEL.S_OPTY_BU T18280 On T690.ROW_ID = T18280.OPTY_ID) left outer join SIEBEL.S_OPTY_X T19415 On T690.ROW_ID = T19415.PAR_ROW_ID) On T19028.PAR_ROW_ID = T19114.PR_EMP_ID) On T18238.ROW_ID = T18280.BU_ID
    ) D1
    where ( D1.c15 <= 10 )
    ) D1
    order by c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15
    Thanks,
    Imtiaz

  • How to use Time Function

    I have two times say
    2310, 0050 - How can I find out using java that the difference between these two is 100 minutes or 1 hour 40 minutes.
    What libraries are used to find this out ??

    I need a time function which will do it.....I will be
    surprised if Java don't have something inbuilt....Try splitting the time into two strings for the hours and minutes, using the functions DrLaszloJamf provided for you.
    minutesSinceMidnight = hours * 60 + minutes; Otherwise, the GregorianCalendar is pretty cool.

  • Error using LISTAGG function to aggregate the strings.

    HI
    I am using LISTAGG function to aggregate the strings but throws a error ORA - 19011
    The output of the aggregated function exeeds the varchar limit.
    I dont know how to change it to a LOB.
    Can you please help me.
    This is the code.
    I have used both the functions.
    RTRIM(XMLAGG(XMLELEMENT(e,FDCT.USER_NAME || ' ')).extract('//text()'), ' ')
    or
    LISTAGG(FDCT.USER_NAME, ',') WITHIN GROUP (ORDER BY FDCT.USER_NAME)
    Edited by: 787819 on Jun 22, 2011 1:46 PM

    If a function returns a VARCHAR2, then it will error (or sometimes truncate depending on function) when reaching the limit of the datatype.
    Perhaps an alternative would be to write your own user-defined aggregate function that works with a CLOB.
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10765/aggr_functions.htm#ADDCI2120
    A comma-separated string over 32767 in length sounds of dubious value to me anyway...

  • How can i measure the transmision time in gpib with visual basic with more precision if i use time() function?

    I want to take a measurement of the time that i use to make a gpib transmision in a Visual Basic program,i use the function TIME() to take the time in the begining and other time in the end,but this way only give me precision of seconds, and i want miliseconds,can i use other function,other way?
    Can answer in spanish?

    Try using GetTickCount() API function, which provides millisecond precision. If you need more precise timer, try using QueryPerformanceCounter() function.
    Makoto

  • Getting error using  getXMLString() function

    When I use the getXMLString() function I get the following error at compile time.
    Error(57,23): cannot access class org.w3c.dom.Node; file org\w3c\dom\Node.class not found
    I don't understand why I am getting this error or how to resolve the issue. Is there a work around ? Any help is appreciated. Below is the code.
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class LoginServlet extends HttpServlet
    private static final String CONTENT_TYPE = "text/html; charset=windows-1252";
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType(CONTENT_TYPE);
    String username = request.getParameter("UserName");
    String password = request.getParameter("Password");
    String domain = request.getParameter("Domain");
    System.out.println("going to try to connect");
    try
    // register the JDBC driver..
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    // Create the connection using the OCI8 driver
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@" + domain ,username,password);
    out.println("connected to database "+ domain);
    String sqlString = "select * from atu_service";
    //OracleXMLQuery qry = new OracleXMLQuery(conn, sqlString);
    OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from attrib_def ");
    // Get the XML string
    String str = qry.getXMLString(); // error occurs here.
    // Print the XML output
    out.println(str);
    // Always close the query to get rid of any resources..
    qry.close();
    out.close();
    catch(Exception e )
    e.printStackTrace();

    You need to include the Oracle XML Parse v2 class library in JDeveloper.

  • Using Timer functions in parallel with VISA functions

    I have an application using two VISA sessions operating
    in parallel controlling a LeCroy oscilloscope and a Pacific
    Power Source through GPIB.
    In a sub-VI, I setup the scope and put it in single acquistion
    mode. Then, in the top level VI, I am reading a global variable
    that detects when the scope is armed - when this flag is set, I am
    using the second VISA session to control the power to the circuit
    under test.
    I have a while loop with a small delay (100ms) to poll the
    global variable, (I also use the global value to exit the loop.)
    This technique does work, although there is a 10 second delay
    between the time the scope is armed for acquisition and the time
    the command is recieved to turn on th
    e power source.
    If I take the Wait(mS) function out of the while loop, the command is
    sent immediately following when the scope is armed, with no delay,
    and even though I don't seem to be missing the trigger, I would prefer
    just a small delay, to ensure that the scope is ready every time. Also,
    from what I've read, it's not good practice to run loops without even
    some small delay.
    Is there a better approach to this? I hope I have expained the
    problem sufficiently - any help or insight would be appreciated.
    thanks,
    Mike Selecky

    I understand the structure you're talking about, but I don't understand why they have to be in seperate loops. The flag from the scope (actually the error cluster output from the scope command function) is the data that establishes the sequentiality between the two steps. If errors are handled properly in the scope and power supply subVIs all you have to do is string the teo routines together using the error clusters and you're done.
    What you want in the subVIs is to create them such that the first time they run they initialize the VISA session and store the reference to it in an uninitialized shift register. Every time after that (or until an error is detected after the command operation) the part of the code that reads or writes the instrum
    ent uses the cached reference. To allow the code to stop cleanly, you might also want to include a front panel control that tells the subVI that the system is shutting down and to close the VISA session when it's done with it.
    Errors propegated into a subVI containing VISA calls will essentially bypass those calls as long as all the error clusters are connected together. What actually happens is that the low-level functions abort as soon as they see the error input and simply pass the error in to their error output.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Error Using DataExport function in Essbase

    Hi there,
    I'm using Hyperion Essbase version 9.3.1.
    And rite now I'm trying to export data in Essbase by the new CalcScript function DataExport directly to SQL server.
    I have 11 dimensions in my Essbase application. I did create 10 fields in SQL server for storing members information and 12 other fields for periodic data. Just, the time when I export data, all the rows returned with only 7 fields for members information and 12 data fields for periodic data.
    Can anyone help? Please help!
    Best regards,
    Antony

    Antony,
    So when you use a calc script like the below:
    SET DATAEXPORTOPTIONS
         DataExportLevel ALL ;
         DataExportDynamicCalc OFF ;
         DataExportRelationalFile ON ;
         DataExportOverwriteFile ON ;
    DATAEXPORT "File" "," "b:\exports\jan.txt" "#MI";
    Your export works just as you want? (I realize you have lots of other logic, but for the sake of argument use the above).
    And then when you take the exact same code except that the DATAEXPORT command now looks like:
    SET DATAEXPORTOPTIONS
         DataExportLevel ALL ;
         DataExportDynamicCalc OFF ;
         DataExportRelationalFile ON ;
         DataExportOverwriteFile ON ;
    DATAEXPORT "DSN" "cur_sale" "newyork" "admin" "password";
    You don't get the same results?
    I get the same results regardless. Yes, one is written to a table as defined by the DSN and the other a text file but the contents are exactly the same.
    Are you seeing different rows/columns? If so, that would either suggest your table is somehow limiting what gets written to the RDBMS (it would be nice to think that Essbase would log this as an error/fail) or there is a bug in the export. I have not come across this issue.
    Regards,
    Cameron Lackpour

  • Error using @MDShift Function

    I'm trying to create a calc script that will move the prior month's ending balance into the current month's beginning balance. After looking through the technical reference guide, I thought using the @MDshift function would be my best option. My calc script is as follows: FIX ("Test Scenario") "1016 LB Beg Balance" = @MDSHIFT("101600", 1, YTD, -1, Scenario,); ENDFIX Receiving the following error message: Error: 1200366 Error parsing formula for [1016 LB Beg Balance] (line 3): invalid arguments number in macro[@MDSHIFTMBR] What does this error message indicate? Where can I find the information needed to resolve this? A sample of my outline structure is as follows:YTD Time (Active Dynamic Time Series Member Y-T-D, Q-T-D) Quarter 1 03 02 01 Quarter 2 06 05 04Fiscal Year 2003 2004 2005Scenerio Actual Average Budget Test Scenario Any suggestions?

    Is this using Planning?I had the same, fixed it with a loop statement. Loop for the number of years you have plus one (for backcalc). First fix on BegBalance, second on the elements of the time dimension. Hope this formats ok ...Loop(4)Fix(Begbalance)"Beginning Balance" = @mdshift("Beginning Balance", 12,"Time Periods",,-1,Years, );"Ending Balance" = @mdshift("Ending Balance", 12,"Time Periods",,-1,Years, );EndfixEndLoopLoop (4)Fix(@levmbrs(Time,0))"Beginning Balance" = @PRIOR("Ending Balance");"Ending Balance" = "Beginning Balance" - "A" - "B";EndfixEndloopHope this helps.

  • Error using insertPages function - Acrobat X Standard

    Hi there!
    i hope you can help me, since Acrobat support avoids to help me because of OEM :/
    I try to add several pages in a PDF using Javascript.
    I am getting the following message:
    NotAllowedError: Security settings prevent access to this property or method. .
    Doc.insertPages:7:Field Produktionsauftrag dt:Mouse Up
    My code:
    this.insertPages
         nPage: 0,
         cPath: "/H/Produktionsauftrag_Deutsch.pdf",
         nStart: 0,
         nEnd: 13
    I already found a solution - but that solution is pain.
    if i insert the PDF with the button using insertPages to this location it works:
    [img]http://i.imgur.com/0qbE2xw.png[/img]
    BUT!
    I have many many folders and subfolders where dozens of copys can appear.
    Acrobat is not smart enough to include all of the subfolders.
    In my case it is the shared network drive I:
    in the Folder I, there are several subfolders like I: 200, 300, 400, 500 and many coming.
    If the PDF is in Folder I: it works. If it is in folder I:\200 it won't.
    So if someone is creating a new folder e.g. 700 and copy the PDF into it, the insertPages wont work, because the folder is not trusted anymore.
    Is there an option to avoid this?
    I hope you can help me
    Thank you very much in advance!

    Thank you. This is very helpful.
    But i do not understand what to do =/
    What i think:
    Create a insertPages.js in C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts
    Content of insertPages.js:
    this.insertPages(
    {nPage: 0,
    cPath: "///eukexsrv/Vorlagen_Prod_Auftr_PDF/Produktionsauftrag Deutsch.pdf",
    nStart: 0,
    nEnd: 13
    Then open the PDF file and Add a button which runs the insertPages.js
    -> HOW?
    I can't see any option to run a script from mouse up
    Also i get an error while opening acrobat:
    TypeError: this.insertPages is not a function
    7:Folder-Level:App:insertPages.js
    Edit:
    i edited my insertPages.js:
    function inpa () {
    this.insertPages(
    {nPage: 0,
    cPath: "///eukexsrv/Vorlagen_Prod_Auftr_PDF/Produktionsauftrag Deutsch.pdf",
    nStart: 0,
    nEnd: 13
    And in the button i made Mouse up -> javascript
    Code:
    inpa();
    Now i get this message:
    NotAllowedError:Security settings prevent access to this property or method.
    Doc.insertPages:8:Field Produktionsauftrag dt:Mouse Up

  • Does anyone know how to add time using TIME function?

    Hi,
    I just switched from Excel (lol) and found an error in a key calculation i use. Does anyone know how to automatically add hours to a time? i.e. i have to convert Pacific Time to other U.S. Time Zones so in the past I used this formula in Excel (=B6+TIME(3,0,0)) which is now not working in Numbers. Is there an equivalent?
    Thanks for your help!
    Alexandra

    Hello
    The Terms of Use ruling this forum states:
    -+-+-+-+-+-+-+-
    +to help you resolve issues, ask questions, get tips and advice, and more.+
    +If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages.+
    +How do I post a question? ‚+
    +_If you searched the forums and didn't find an answer to your question or issue_, click the Post New Topic link at the top of a relevant forum page to post your own question.+
    -+-+-+-+-+-+-+-
    Your question was aked and responded many times.
    Searching in existing threads would have give you the response.
    When I try to help users in English, I often look in a dictionary but it seems that for many users, reading the Help or the PDF User's Guideis too much work.
    In cell D3, the formula is simply:
    =TIME(HOUR(B)HOUR(C),MINUTE(B)+MINUTE(C),SECOND(B)SECOND(C))
    which match the Numbers's syntax which, what a surprise, is not XL's one
    Yvan KOENIG (from FRANCE mercredi 28 mai 2008 17:39:56)

  • Error using Analytic function in reports

    Hi,
    I am trying to use Oracle analytic function (lag) in a report. But am getting the below error:
    Encountered the symbol "(" when expecting one of the following:
    ,from into bulk
    This is the code in the formula column:
    function extend_lifeFormula return VARCHAR2 is
    l_extend_life VARCHAR2(80);
    l_life_in_months VARCHAR2(80);
    l_asset_id NUMBER;
    begin
    SRW.REFERENCE(:P_BOOK_NAME);
    SRW.REFERENCE(:ASSET_ID);
    SELECT asset_id,
         lag(life_in_months,1,0) over (PARTITION BY asset_id
                   ORDER BY transaction_header_id_in) Extend_Life
    INTO l_asset_id,
    l_life_in_months
    FROM fa_books
    WHERE book_type_code = 'US GAAP'
    AND asset_id = 1;
    return life_in_months;
    end;
    Has anyone experienced this error before? Does client pl/sql engine not support Analytic functions? The above query runs fine in SQL.
    Thanks,
    Ashish

    From our version of 6i Reports Builder Help, I got ...
    Oracle ORACLE PL/SQL V8.0.6.3.0 - Production
    You may check yours.

  • Error using WEEKDAY function in view filter

    I want to be able to display all events in a calendar for the following week (Saturday to Saturday). I have created a column called week_end that is a calculated column and gives the date of the Saturday after the event:
    =[Start Time]+(7-WEEKDAY([Start Time]))
    I then want to use a filter based on Today as follows:
    Show only items when week_end is greater than
    [Today]+(7-WEEKDAY([Today]))
    and less than  
    [Today]+(7-WEEKDAY([Today]))+7
    However I get the error: Filter value is not in a supported date format
    Any ideas what the problem is? I seem to be able to do things like [Today]+3, but I want the view to be from Saturday to Saturday regardless of what day I look at it.
    Thanks
    Kate

    Hi,
    According to your post, my understanding is that you wanted to display all events in a calendar for the following week (Saturday to Saturday).
    You can't use complex formula in Filters - you have to keep it simple like [Today]-30 for last 30 days.
    The solution is to turn the problem on its head and add calculated columns to work out the start of the week and the end of the week then filter when the current date is between those dates (i.e. Start <= [Today] AND End >= [Today])
    Please follow the steps as below to achieve what you want:
    Create a “WeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =[Start Time]-WEEKDAY([Start Time])
    Create a “WeekEnd” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart+7
    Create a “PerWeekStart” calculated column, select “Date and Time” as a data type returned by the formula:
    =WeekStart-7
    Modify view, show items only when the following is true:
           PreWeekStart is less than or equal to [Today]
           And
           WeekStart is greater than [Today]
         5. Open the view, it will
    display all events in a calendar for the following week.
    Generally, the week goes Sunday to Saturday. If you want to display all events in a calendar for the following week (Sunday to Saturday), you need to modify the calculated column:
    WeekStart: =[Start Time]-WEEKDAY([Start Time])+1
    WeekEnd:   =WeekStart+6
    Here are two similar threads for you to take a look at:
    http://blog.pentalogic.net/2012/09/complete-guide-to-filtering-sharepoint-lists-by-the-current-week/
    http://rehmangul.wordpress.com/2010/10/06/filter-views-based-on-a-week/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Hello, Mouse scroll stop to work in BRIDGE CC

    Hello, Mouse scroll stop to work in BRIDGE CC, and I have lots of troubles with this one like he didn't know how to open AI file or TIFF ...(fix that but not the scroll)

  • The current inspection stage is not available - (Sample Calculate)

    Hello  Gurus, When we try to calculate Sample in QA02. We are getting this error The current inspection stage is not available Message no. QD704 How can i reset the inspection stage or any other solution to this? thanks! Khan

  • Networking changes between Solaris 10 x86 10/08 (u6) and previous versions?

    Solaris Community: We have a J2SE CORBA-based application (that uses the default Sun ORB) that has run without problems on Solaris 8, 9, and 10 on both SPARC and, more recently, X86 platforms. Upgrading our client side machine (X4100 M2 Opteron platf

  • Report's solution on linux

    Hello, I'm using oas3.0.2 on Linux with java cartridges. I'm searching a reporting solution. I want to edit and print documents (like excel or word documents) built dynamically with datas from oracle8.0.5. Is there a report's solution on linux ? Than

  • SharePoint 2010 DB moved to new SQL server

    Hi All,   Quick Question.. When we move SP 2010 DB to one SQL server to New One .. What are thing need to followed to make sure Sites are working fine  V Jean