Invalid month format

This code when I run in toad is giving "ORA-01843: not a valid month"
What should be the correct month format.
SELECT
WHSE_DBA.MV_PROD_ALL_INSP_OBJ.IDENTIFIER,
WHSE_DBA.MV_PROD_ALL_INSP_OBJ.OBJ_TYPE,
WHSE_DBA.MV_PROD_ALL_INSP_OBJ.LOCATION,
FROM
WHSE_DBA.MV_PROD_ALL_INSP_OBJ
WHERE
WHSE_DBA.MV_PROD_ALL_INSP_OBJ.OBJ_TYPE LIKE 'PROC%'
AND WHSE_DBA.MV_PROD_ALL_INSP_STAT_HIST.REQUESTED_DATE BETWEEN '16-04-2008 00:00:00' AND '03-06-2008 00:00:00'

It's an initialization parameter which also can be set by an environment variable.
From SQL*Plus:
SQL> show parameter NLSAlso on the client side check if this environment variable is set.
Or...just use the TO_DATE() function:
...etc... BETWEEN TO_DATE('16-04-2008 00:00:00','DD-MM-YYYY HH24:MI:SS') AND ...etc...

Similar Messages

  • Flat file to Oracle Database - Invalid Month

    Hi All
    I am New to XI and trying to create a simple interface between Legacy system (flat file) and Oracle database.
    I have some date fields in the Oracle table.
    When i run the interface it says "invalid month" with some SQL exception number.
    I am using (mm/dd/yyyy) format for the date.
    Is there any conversion i need to do. I am using XML SQL format for Oracle database.
    Any help is appreciated.
    Thanks
    Nagakishore

    Hello,
    Oracle is very picky with the way date is stored. Assume that you have a field datefield that you need to save. In mapping add an attribute hasqQuote and set it to "NO". When mapping the value to the node use to_date as shown below.
    <DateField hasQuot="No">
       TO_DATE("2004-07-20", "yyyy-mm-dd hh:mi:ss")</DateField>
    cheers,
    Naveen

  • Invalid month error sometimes in SQL Developer

    Hi
    sometimes I get 'Invalid Month error' in SQL developer when I execute the following query
    select TRUNC(TO_DATE('01-JUN-2013','DD-MON-YYYY')) from dual;
    But when I dosconnect session and reconnect, It works fine
    Any suggestions on how to avoid this issue ?
    Thanks

    872202 wrote:
    Hi
    sometimes I get 'Invalid Month error' in SQL developer when I execute the following query
    select TRUNC(TO_DATE('01-JUN-2013','DD-MON-YYYY')) from dual;
    But when I dosconnect session and reconnect, It works fine
    Any suggestions on how to avoid this issue ?
    ThanksThere's absolutely no reason that that should result in that error.
    The SQL is sent to the database and it's perfectly valid SQL, taking a string, and converting it to a date with the correct date format mask, and then truncating the date (which, by default is to the day, which in this case is pointless as it's already truncated), returning a DATE datatype, which SQL Developer will then render using it's date display format.

  • Strange invalid month error.

    Hi all,
    I have a function which receives a date and then returns a text string saying what day of the week it is, ie Monday Tuesday etc etc
    For example sakes I'll say the function is called dayoftheweek and we use the function like 'select somedate, dayoftheweek(somedate) from dual'
    Now, the bit within the function that works out the day is as below
    SELECT TO_CHAR(TO_DATE(p_date, 'DD/MM/RRRR') ,'DAY') from dual (p_date is the internal function variable for the date passed in.)
    Now, if I do this
    select dayoftheweek('25-MAY-09') from dual -- this works.
    But...
    select dayoftheweek('25/05/09') from dual -- this does not work, I get an ora 01843 invalid month error.
    So, I assumed it was something to do with the logic that worked out the day of the week.
    However, the below works.
    SELECT TO_CHAR(TO_DATE('25/05/09', 'DD/MM/RRRR') ,'DAY') from dual
    Does anyone know why when passing a date to the function in format 'select dayoftheweek('25/05/09') from dual' does not work but if I use this format within the function logic as above it does work?
    Cheers,
    rg

    Hello,
    Oracle does not know your date format:
    select dayoftheweek('25/05/09')I.e, it does not know that the date you are passing in is in the form of 'DD/MM/MM'. You must tell it (since it isn't your default format):
    select dayoftheweek(to_date('25/05/09', 'DD/MM/YY'))If all you wanted, however, was the day of the week from a date, then:
    TO_CHAR(to_date('25/05/09', 'DD/MM/YY'), 'DAY')Will give you that.
    And by the way, this:
    SELECT TO_CHAR(TO_DATE('25/05/09', 'DD/MM/RRRR') ,'DAY') from dualIs correct by chance, even though you're getting no error you may get the wrong result, because you're telling oracle you're passing in 4 digits for the year, yet you're only passing in two.
    Edit Beware:
    SQL> SELECT TO_CHAR(TO_DATE('25/05/09', 'DD/MM/RRRR'), 'YYYY') from dual;
    TO_C
    2009
    SQL> SELECT TO_CHAR(TO_DATE('25/05/09', 'DD/MM/YYYY'), 'YYYY') from dual;
    TO_C
    0009

  • Invalid month error in WEBI report level

    Hi,
    I had a issue with date format.I am using oracle10g as a backend database.I have a  date object in universe level i used that object in web intelligence report level.I created prompt for date object after select the date from the list i  am getting " invalid month error". In database level object datatype is timestamp.
    How to solve this issue.can somebody help me to solve the problem.

    Hi
    Date  Objects depends on various formats for different database
    Make sure that u format date like MM/dd/yyyy in universe level . and the object should be in date datatype .
    In the query level use prompt to select dates.
    In report level
    create a variable and use a formula like
    todate(userresponse("Enter date");"")
    Hope this helps U
    Sunil

  • INVALID MONTH ERROR

    I have seen a thread on this topic. But my issue is a bit different.
    I have a table (suppose A) with a date column (let b B)
    There is a view on this table say A_V. This view simply queries the table A.
    I have another table C, to which I am inserting record from A_V in a for loop like
    FOR i IN (SELECT * FROM A_V)
    LOOP
    INSERT INTO C(x,y,B)
    VALUES( i.x,i.y,nvl(i.B,sysdate) );
    END LOOP;
    I found invalid month issue in it. I am not sure of the reason. However, do I need apply to_char on i.B or nvl(i.B,sysdate) to give it a specific format. And if so, how would I know what format I should apply.
    I was also doing some test plsql developer and found result like this. Can anyone help me understand.
    select id,nvl(to_char(DATE_DATA,'dd/MM/yyyy'),to_date('19000101','YYYYMMDD')) from DATA_DUMP
    where DATE_DATA is null
    result is
    1 361725 01-JAN-00
    2 800001 01-JAN-00
    3 800002 01-JAN-00
    4 420068 01-JAN-00
    5 442682 01-JAN-00
    6 442984 01-JAN-00
    7 442340 01-JAN-00
    select id,nvl(DATE_DATA,to_date('19000101','YYYYMMDD')) from DATA_DUMP
    where DATE_DATA is null
    1 361725 1/1/1900
    2 800001 1/1/1900
    3 800002 1/1/1900
    4 420068 1/1/1900
    5 442682 1/1/1900
    6 442984 1/1/1900
    7 442340 1/1/1900
    I get similar result with DATA_DATA not null too.
    -Deb

    p.s. you also don't need to do your insert as single inserts within a cursor loop as this will give you poor performance. It should be done as a single insert... select... statement.
    e.g.
    SQL> select * from a;
         EMPNO     DEPTNO B
          7369         20 17/12/1980 00:00:00
          7499         30 20/02/1981 00:00:00
          7521         30 22/02/1981 00:00:00
          7566         20 02/04/1981 00:00:00
          7654         30 28/09/1981 00:00:00
          7698         30 01/05/1981 00:00:00
          7782         10 09/06/1981 00:00:00
          7788         20
          7839         10 17/11/1981 00:00:00
          7844         30 08/09/1981 00:00:00
          7876         20
          7900         30 03/12/1981 00:00:00
          7902         20 03/12/1981 00:00:00
          7934         10 23/01/1982 00:00:00
    14 rows selected.
    SQL> create table c (empno number, deptno number, b date);
    Table created.
    SQL> insert into c
      2  select empno, deptno, nvl(b,sysdate)
      3  from a;
    14 rows created.
    SQL> select * from c;
         EMPNO     DEPTNO B
          7369         20 17/12/1980 00:00:00
          7499         30 20/02/1981 00:00:00
          7521         30 22/02/1981 00:00:00
          7566         20 02/04/1981 00:00:00
          7654         30 28/09/1981 00:00:00
          7698         30 01/05/1981 00:00:00
          7782         10 09/06/1981 00:00:00
          7788         20 09/01/2009 15:24:04
          7839         10 17/11/1981 00:00:00
          7844         30 08/09/1981 00:00:00
          7876         20 09/01/2009 15:24:04
          7900         30 03/12/1981 00:00:00
          7902         20 03/12/1981 00:00:00
          7934         10 23/01/1982 00:00:00
    14 rows selected.
    SQL>

  • "Invalid Keystore Format" with Java Web Start

    I got a user with a "invalid keystore format" problem He's running Windows XP and it happens when our java webstart application is starting up. He had a mix of java 5 and java 6.
    We uninstalled all his javas and deleted his c:\program files\java\jre6\lib\security\cacerts file as suggest by my company's support people and reinstalled java 6 U 22 and he still has the problem.
    The other users don't have a problem.
    How do we get our java web start application on work for him? It a java application and not a java applet.
    He got a new Dell laptop a couple of months ago and it has never worked for him. That model of laptop works for other users.

    the jar containing the native lib (win32com.dll) needed to be under the <nativelib> tag in the jnlp rather than <jar> .. duh!
    fixing that solved the problem :)

  • Oracle Invalid month

    I have an Oracle 9.2 database which is used in a swing application. I insert the dates in the following format dd/MM/yyyy.
    This works fine if I turn my app on a windows platform but when I run it on a linux machine I get the following error :
    ORA-01843 : Invalid month.
    Could anyone explain to me how this comes and what I can do about it?
    PS : My app has to work on both platforms.
    thanks

    import java.sql.* ;
    import java.util.Vector ;
    public class DBQuery
    public static Vector select(Connection connection,String statement,Object[] _param)
    PreparedStatement prepstat ;
    ResultSet result ;
    Connection conn=null ;
    try
    conn=_connection ;
    prepstat=conn.prepareStatement(_statement) ;
    if(_param != null)
    handleParams(prepstat,_param) ;
    result=prepstat.executeQuery() ;
    Vector vecresult=handleSelect(result) ;
    result.close() ;
    return vecresult ;
    catch(SQLException sqlexc)
    return new Vector() ;
    public static boolean execute(Connection connection,String statement,Object[] _param)
    PreparedStatement prepstat ;
    Connection conn=null ;
    try
    conn=_connection ;
    prepstat=conn.prepareStatement(_statement) ;
    if(_param != null)
    handleParams(prepstat,_param) ;
    prepstat.executeUpdate() ;
    return true ;
    catch(SQLException sqlexc)
    System.out.println(sqlexc.getErrorCode()) ;
    System.out.println(sqlexc.getMessage()) ;
    sqlexc.printStackTrace() ;
    return false ;
    private static Vector handleSelect(ResultSet _result)
    throws SQLException
    int nrcols ;
    ResultSetMetaData rsmd ;
    Vector vecresult=new Vector() ;
    rsmd=_result.getMetaData() ;
    nrcols=rsmd.getColumnCount() ;
    while(_result.next())
    Vector row=new Vector() ;
    for(int cntres=1 ; cntres <= nrcols ; cntres++)
    String value=_result.getString(cntres) ;
    if(value == null)
    value=new String("") ;
    row.addElement(value) ;
    vecresult.addElement(row) ;
    return vecresult ;
    private static void handleParams(PreparedStatement prepstat,Object[] params)
    throws SQLException
    String value="" ;
    Object param ;
    for(int cntparam=0 ; cntparam < _params.length ; cntparam++)
    param=_params[cntparam] ;
    if(param == null)
    value="" ;
    else
    value=param.toString() ;
    if(value != null && !value.equals(""))
    _prepstat.setObject(cntparam + 1,param) ;
    else
    _prepstat.setNull(cntparam + 1,Types.VARCHAR) ;
    }

  • Scheduling Agreement –delivery date in month format -  MD04

    Dear experts,
    Scheduling Agreement, forecast delivery schedule.
    When I enter a delivery date in month format, the system, during processing, automatically checks the factory calendar and proposes the first valid working day as the delivery date. ( Yes. I know it is a SAP standard )
    My requirement is automatically checks by the system  the last  working day as the delivery date.
    Could you tell me what are the settings i need to check to resolve this issue?
    Thanks in advance
    artur

    As pointed out already above you need to use a periodic lot sizing procedure.
    Use Lot sizing procedure P, Lot size indicator K and Scheduling =2
    As per your requirement, you need to create a calendar using MD25 with Months (Workdays) as a calculation rule with 1 as the period in the box provided.
    After a MRP run the delivery date would point to the last day of the month.
    But the requirement is a bit surprising as say for a requirement on the 1st of the month you will have the delivery showing up on the last day of the same month. Under what circumstances do you have this requirement as a valid one in your business case?

  • SSIS 2012 is intermittently failing with below "Invalid date format" while importing data from a source table into a Destination table with same exact schema.

    We migrated Packages from SSIS 2008 to 2012. The Package is working fine in all the environments except in one of our environment.
    SSIS 2012 is intermittently failing with below error while importing data from a source table into a Destination table with same exact schema.
    Error: 2014-01-28 15:52:05.19
       Code: 0x80004005
       Source: xxxxxxxx SSIS.Pipeline
       Description: Unspecified error
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC0202009
       Source: Process xxxxxx Load TableName [48]
       Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Invalid date format".
    End Error
    Error: 2014-01-28 15:52:05.19
       Code: 0xC020901C
       Source: Process xxxxxxxx Load TableName [48]
       Description: There was an error with Load TableName.Inputs[OLE DB Destination Input].Columns[Updated] on Load TableName.Inputs[OLE DB Destination Input]. The column status returned was: "Conversion failed because the data value overflowed
    the specified type.".
    End Error
    But when we reorder the column in "Updated" in Destination table, the package is importing data successfully.
    This looks like bug to me, Any suggestion?

    Hi Mohideen,
    Based on my research, the issue might be related to one of the following factors:
    Memory pressure. Check there is a memory challenge when the issue occurs. In addition, if the package runs in 32-bit runtime on the specific server, use the 64-bit runtime instead.
    A known issue with SQL Native Client. As a workaround, use .NET data provider instead of SNAC.
    Hope this helps.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Data services with SQL Server 2008 and Invalid time format variable

    Hi all
    Recently we have switched from DI on SQL Server 2005, to DS(Date Services) on SQL Server 2008. However I have faced an odd error on the query that I was running successfully in DI.
    I validate my query output using a validation object to fill either Target table (if it passes), or the Target_Fail table (if it fails). Before sending data to the Target_Fail table, I map the columns using a query to the Target_Fail table. As I have a column called 'ETL_Load_Date' in that table, which I should fill it with a global variable called 'Load_Date'. I have set this global variable in the script at the very first beginning of the job. It is a data variable type:
    $Load_Date = to_char(sysdate(),'YYYY.MM.DD');
    When I assign this global variable to a datetime data type cloumn in my table and run the job using Data Services, I get this error:
    error message for operation <SQLExecute>: <[Microsoft][ODBC SQL Server Driver]Invalid time format>.
    However I didn't have this problem when I was running my job on the SQL Server 2005 using Data Integrator. The strange thing is that, when I debug this job, it runs completely successfully!!
    Could you please help me to fix this problem?
    Thanks for your help in advance.

    Thanks for your reply.
    The ETL_Date is a datetime column and the global variable is date data type. I have to use the to_char() function to be able to get just the date part of the current system datetime. Earlier I had tried date_part function but it returns int, which didn't work for me.
    I found what the issue was. I don't know why there were some little squares next to the name of the global variable which I had mapped to the ETL_Date in the query object!!! The format and everything was OK, as I had the same mapping in other tables that had worked successfully.
    When I deleted the column in the query object and added it again, my problem solved.

  • Invalid Keystore Format error

    we need to configure an SSO from SAP portal and a third party website by passing encrypted userid as url parameters.
    To configure the SSO I have received the public key of the third party and able to access it from server location. Now I have to access priavte key of the SAP Portal certificate and sign the UserId and pass it as url parameter. I have gone through many blogs and written code as below which is giving Invalid Keystore Format error.
    My question is
    1. What should be passed to FileInputStream?
    As of now we are passing the .cer file which is stored as part of project.
    Below code is throwing error at ks.load() method.
    String fielPath1 = request.getPublicResourcePath()+"/SAPLogonTicketKeypair-cert1.cer";
    FileInputStream ksfis = new FileInputStream(fielPath1);
    KeyStore ks = KeyStore.getInstance("JKS");
    ks.load(null, sPass.toCharArray());
    BufferedInputStream ksbufin = new BufferedInputStream(ksfis);
    ks.load(ksbufin, sPass.toCharArray());
    PrivateKey priv = (PrivateKey) ks.getKey(alias, kPass.toCharArray());
    Error is:
    Invalid keystore formatsun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)java.security.KeyStore.load(KeyStore.java:1185)am_sso_apc.doContent(am_sso_apc.java:132)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
    Please let me know how to pass the filepath to extract the priavte key .
    Regards,
    Satish

    I found the solution. As follows:
    keytool -list -keytool keytoolfile -storetype jceks

  • Invalid Alias Format : Table_name.Column_name required

    Hi All,
    I am new to the OBIEE 11g and I am trying to get used to the a lot it in one shot. I was hoping that someone could help me answer this question.
    I am trying to replace a value from the database and replace it with another value if a condition is met. I am using the below SQL statement to get there however, when I select ok I get an error message:Invalid Alias Format : Table_name.Column_name required.
    Can anyone tell me how I can accomplish my taskl? I am currently using OBIEE 11g and I am modifying the column measure by editing the formula with the below code. Let me know. Thanks.
    select
    CASE
    WHEN Cmplt Claim - Process Time.Claim Date< 10/30/2010 THEN '10/30/2010'
    END
    From Cmplt Claim - Process Time.Claim Date;

    Thank you so much. The error no longer shows up. I did however, get a diffrent error message. Not sure what that all means but if you can explain to me for a better understanding that would be super helpful. Or should I post under a diffrent subject?
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. Please have your System Administrator look at the log for more details on this error. (HY000)
    SQL Issued: SELECT 0 s_0, "VETSNET Operations Reports"."CLOV - End Product"."End Product Code" s_1, "VETSNET Operations Reports"."CLOV - End Product"."Rating Description" s_2, "VETSNET Operations Reports"."CLOV - File Date"."File Date" s_3, "VETSNET Operations Reports"."CLOV - Geography"."Station Name and Number" s_4, "VETSNET Operations Reports"."Cmplt Claim - Report Filter Flag"."Completed Brokered Flag" s_5, "VETSNET Operations Reports"."Cmplt Claim - Report Filter Flag"."Completed Detail Flag" s_6, CASE when "VETSNET Operations Reports"."Cmplt Claim - Process Time"."Claim Date"<('2012-10-15') then ('2012-10-15') else "Cmplt Claim - Process Time"."Claim Date" end s_7 FROM "VETSNET Operations Reports" WHERE (("CLOV - File Date"."File Date" = date '2012-10-09') AND ("CLOV - End Product"."End Product Code" IN ('681', '687')) AND ("Cmplt Claim - Report Filter Flag"."Completed Detail Flag" = 'Y') AND ("CLOV - End Product"."Rating Description" IN ('Control End Products', 'Other C&P End Products', 'Rating-Related End Products'))
    Edited by: Hangten4881 on Oct 15, 2012 9:41 AM

  • [v4l-dvb] xc5000 driver won't load, invalid module format

    Hi, I recently got a Piccacle PCTV HD Pro Stick for christmas, and have been trying to get it to work. I followed this page, and everything worked, but when I try to load the module xc5000, it gives me the error:
    FATAL: Error inserting xc5000 (/lib/modules/2.6.28-ARCH/kernel/drivers/media/common/tuners/xc5000.ko): Invalid module format
    Can anyone help?
    Thanks,
    Smartboy

    Hi Mike,
    something looks a bit strange for me. On my OEL 5.4 x64 system i have just the following 3 packages:
    $ rpm -qa | grep asm
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasmlib-2.0.4-1.el5 Your packages should be I think the following:
    http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel5/amd64/2.1.3/oracleasm-support-2.1.3-1.el5.x86_64.rpm
    http://otn.oracle.com/software/tech/linux/asmlib/files/RPMS/rhel5/amd64/2.0.4/oracleasmlib-2.0.4-1.el5.x86_64.rpm
    http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel5/amd64/2.0.5/2.6.18-92.el5/oracleasm-2.6.18-92.el5-2.0.5-1.el5.x86_64.rpm
    Uninstall all asm packages and retry with just those three.
    Good luck!
    Cheers,
    David
    OCP 9i / 10g
    http://www.oratoolkit.ch/knowledge/howto/installation/otn.php

  • Invalid Alias Format : Table_name.Column_name required error

    Hi,
    Below is the query I am using in one of my columns in a report. The ELSE part is working fine. but as soon as I put in the first 2 WHEN conditions, it gives me the invalid alias format error. tried changing the column names,single quotes on numbers, but error does not seem to go.
    Please help.
    Thanks,
    Dan
    CASE
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD})
    ELSE
    FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
    END
    Edited by: Danny on Jun 4, 2013 12:44 PM
    Edited by: Danny on Jun 4, 2013 12:44 PM

    NO luck :(
    CASE
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}')
    ELSE
    FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
    END
    Can I try making null to 0 by doing IFNULL(measure,0). IN this case how do I do it since measure column is being generated at runtime with filter function like above.
    Edited by: Danny on Jun 4, 2013 1:11 PM

Maybe you are looking for

  • How to call a C function calling a Java Method from another C function ?

    Hi everyone, I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function. In fact, after receiving datas in a socket made by

  • An Active Directory Domain Controller could not be contacted

    Hi, I encountered this error while trying to change windows 8 & 7 from workgroup to a domain. i've tried all i think i know but just to no avail.  i will be very glad if anyone in this forum can help me provide a solution to this issue. NOTE: i have

  • When we click Submit button in CSC, I want to redirect to differrent panel

    Hi All There is one panel for member search in CSC. from some other form I want to redirect to this 'member search' panel. what should be done? Thanks & Best regards, Pratik

  • Source List Does Not Appear

    I am trying to add content to my IPOD (20 gig click wheel). According to the user guide, I am supposed to do this through the source list. The problem is, there is NO source list to be found, anywhere that I can see, in or on the ITUNES interface. My

  • ThinkPad T420 Hard Drive Size Descriptions

    Hi I have just bought a pre-owned T420 still within its warranty and restored to factory settings. It was sold to me as having a 320GB drive. Windows shows the main C Drive as having 232 GB free of 280 GB with 5.67 of 15.6 GB free in the Lenovo Recov