Date format in presentation variable

Dear Guru,
My prompt has a calendar month edit box which is in "YYYY / MM" format. I have set this as a presentation variable p_month.
Now I need to add 1 month to this presentation variable in the filter, I have tried to write the sql but it is complicated, and it does not work. Anyone could help?
Thanks a lot,
Joe

Thanks, but I have tried the following, it returns a error msg.
"Snapshot Date"."Snapshot Month" IN ('@{p_snapshot_month}', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
"Snapshot Date"."Snapshot Month" IN (@{p_snapshot_month}, Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
"Snapshot Date"."Snapshot Month" IN ('p_snapshot_month', Timestampadd(sql_tsi_month,1,cast(Evaluate('To_Date(%1,%2)',cast('@{p_snapshot_month}' as char),'YYYY / MM') as date)))
Error msg:
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute: select distinct D1.c8 as c1, D1.c9 as c2, D1.c24 as c3, D1.c26 as c4, D1.c25 as c5, D1.c17 as c6, D1.c10 as c7, D1.c1 / nullif( 1000, 0) as c8, D1.c7 / nullif( 1000, 0) as c9, D1.c7 / nullif( D1.c6 + D1.c3, 0) * 100 as c10, D1.c6 / nullif( 1000, 0) as c11, (D1.c6 + D1.c3) / nullif( 1000, 0) as c12, (D1.c6 + D1.c3) / nullif( D1.c1, 0) * 100 as c13, D1.c5 / nullif( 1000, 0) as c14, D1.c4 / nullif( 1000, 0) as c15, D1.c2 / nullif( 1000, 0) as c16, D1.c3 / nullif( 1000, 0) as c17, D1.c2 / nullif( D1.c1, 0) * 100 as c18, D1.c11 / nullif( 1000, 0) as c19, D1.c16 / nullif( 1000, 0) as c20, D1.c16 / nullif( D1.c15 + D1.c13, 0) * 100 as c21, D1.c15 / nullif( 1000, 0) as c22, (D1.c15 + D1.c13) / nullif( 1000, 0) as c23, (D1.c15 + D1.c13) / nullif( D1.c11, 0) * 100 as c24, D1.c14 / nullif( 1000, 0) as c25, D1.c12 / nullif( 1000, 0) as c26, D1.c13 / nullif( 1000, 0) as c27, D1.c12 / nullif( D1.c11, 0) * 100 as c28, D1.c18 / nullif( 1000, 0) as c29, D1.c23 / nullif( 1000, 0) as c30, D1.c23 / nullif( D1.c22 + D1.c20, 0) * 100 as c31, D1.c22 / nullif( 1000, 0) as c32, (D1.c22 + D1.c20) / nullif( 1000, 0) as c33, (D1.c22 + D1.c20) / nullif( D1.c18, 0) * 100 as c34, D1.c21 / nullif( 1000, 0) as c35, D1.c19 / nullif( 1000, 0) as c36, D1.c20 / nullif( 1000, 0) as c37, D1.c19 / nullif( D1.c18, 0) * 100 as c38 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, sum(D1.c1) over (partition by D1.c17) as c11, sum(D1.c2) over (partition by D1.c17) as c12, sum(D1.c3) over (partition by D1.c17) as c13, sum(D1.c5) over (partition by D1.c17) as c14, sum(D1.c6) over (partition by D1.c17) as c15, sum(D1.c7) over (partition by D1.c17) as c16, D1.c17 as c17, sum(D1.c1) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c18, sum(D1.c2) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c19, sum(D1.c3) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c20, sum(D1.c5) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c21, sum(D1.c6) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c22, sum(D1.c7) over (partition by D1.c24, D1.c25, D1.c26, D1.c17) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from (select sum(T767750.QUOTA_AMT) as c1, sum(T767750.TOTAL_NEW_PIPELINE_AMT) as c2, sum(T767750.NEW_PIPELINE_AMT) as c3, sum(T767750.M3_QUOTA_AMT) as c4, sum(T767750.M3_PIPELINE_AMT) as c5, sum(T767750.PIPELINE_AMT) as c6, sum(T767750.SALESORDER_AMT) as c7, T767904.PER_NAME_MONTH as c8, case when T540698.FIXED_HIER_LEVEL = 1 then T540698.CURRENT_LVL1_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 2 then T540698.CURRENT_LVL2_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 3 then T540698.CURRENT_LVL3_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 4 then T540698.CURRENT_LVL4_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 5 then T540698.CURRENT_LVL5_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 6 then T540698.CURRENT_LVL6_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 7 then T540698.CURRENT_LVL7_EMP_FULL_NAME when T540698.FIXED_HIER_LEVEL = 8 then T540698.CURRENT_LVL8_E (HY000)
Edited by: Joe on Oct 8, 2010 2:00 AM

Similar Messages

  • Issue with Date Format for Presentation Variables

    Hi,
    I am using dashboard prompts to capture begin date and end date in presentation variables. The dates selected from calendar are in the format mm/dd/yyyy.
    In Asnwers I need to get a count of days between begin and end dates. I am using the column formula as shown:
    TIMESTAMPDIFF(SQL_TSI_DAY, DATE '@{pBeginDate}', DATE '@{pEndDate}')
    When ever I run the report from dashboard I get the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 1/1/2005 does not match the specified format. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Transaction Dates"."Transaction Date", TIMESTAMPDIFF(SQL_TSI_DAY, DATE ''1/1/2005'', DATE ''1/2/2006'' FROM "Dates"')}
    SQL Issued: SELECT "Transaction Dates"."Transaction Date", TIMESTAMPDIFF(SQL_TSI_DAY, DATE '1/1/2005', DATE '1/2/2006') FROM "Dates"
    Can anyone help me to reolve this date format issue?
    Thanks,
    Aravind

    Hi,
    see this below links
    Issues with Prompts calender date
    Regards
    Naresh

  • How to change date format for prentation variable in Formula

    Hi experts.._
    I need to change date format for presentation variable in formula..
    my dashbord date prompt format: mm/dd/yyyy(i have created one presentation variable for this prompt: pv_date)
    now i need to show it as : month-dd-yyyy
    Thanks in advance
    Regards
    Frnds

    Hi Kishor...Thanks for reply...
    But i need to change my precentation variable date formt...
    i need to write one text like: 'Year to dd/month/yy' in one column formula..
    So how can i achieve it..

  • How to change date format for prentation variable

    Hi experts
    In my prompt the date format is MM/DD/YYYY . I have created one presentation variable for that but i want to use this in Formula as well in Title as: DD-MON-YY
    So how can i achieve it..
    Thanks in advance
    Regards
    Frnds

    Hi
    i think this can't be done through any code like oracle uses to_char, to_date function.
    Just follow this
    http://oraclebizint.wordpress.com/2007/12/19/oracle-bi-ee-101332-dates-dates-and-dates/
    With this, wherever you have this column, you will be getting this format dates..
    if you don't want in reports you can change it by mentioning the data format for that paricular column in report, but for the same column, if you want different format at different places (for prompts), you can't do that..

  • Presentation Variable Formatting in Report Title

    I have populated 3 presentation variables via a dashboard prompt. I also display their values in the report subtitle, but I did not expect the following format in the display:
    from TIMESTAMP '2009-10-19 00:00:00' to TIMESTAMP '2009-10-25 00:00:00' for Abilene
    The dates appear formatted as 10/19/2009 and 10/25/2009 in the dashboard prompt which is how I want them formatted in the title. Where is this subtitle formatting originating? So, I can reformat it.
    Edited by: Bob from Austin on Oct 26, 2009 11:28 AM

    Hi.
    I suggest you to read this first:
    How to change date format mask in date dashboard prompts - drop-down list and calendar
    http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html
    On the end of this post is a explanation of date format and presentation variable in the title:
    And you can find a complete example here:
    Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
    http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
    Before everything customize instanceconfig.xml, change datatype of TABLE.COLUMN in the physical layer to DATE and keep on eye if you are using repository variables as default values to dashboard prompt, which datatype they have, character, date or timestamp, this can cause problems. That's explained in the posts above.
    Regards
    Goran
    http://108obiee.blogspot.com

  • ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtFetch

    Hi all,
    We are trying to create a BIP Data Model based on an Answer, but after selecting report, it hangs when I try to Apply to create a query based on Oracle BI. When I try to open the query in aswers, going to results tab I'm getting this error (OBIEE 11.1.1.6.2):
    ORA-01830: date format picture ends before converting entire input string at OCI call OCIStmtFetch
    I suppose that BIP data model is not able to create it because of this error. But this answer is working fine inside dashboards, etc. It only does not work when editing it. Query is doing something like this: "USING "- Collection Attributes"."Due Date" >= TIMESTAMPADD(SQL_TSI_DAY, -30, CAST ('01/04/2009' AS DATE))"
    Any ideas?

    Solved watching date format in generated SQL and changing default date format in presentation variables default values inside criteria according to SQL format.

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view.
    i want something like "the date being used is @{indate} for month end"
    Also date format needs to be dd.mm.yyyy ... its currenty being displayed as yyyy/mm/dd .. I dont want to add the columns in my report and hide them as there seems to be a performance lag when i do that.
    Any ideas .. Java gurus out there.
    I have tried @{indate}[dd.mm.yyyy] .. but that dont work.
    Cheers
    Jenny
    Edited by: user5470064 on Aug 18, 2011 9:58 AM
    Edited by: user5470064 on Aug 18, 2011 9:59 AM

    Here you go...
    I tried in my machine and its working great..
    In Answers--> in Criteria TAB, In the column's fx use below formula...
    case when 1=1 then EVALUATE('TO_CHAR(%1,%2)' as varchar(20),date '@{pv_date}{1998-07-05}','dd.mm.yyyy') else "ORE Time Dim"."Mnth Name" end
    pv_date is the presentation variable and
    For "ORE Time Dim"."Mnth Name" use any varchar datatype column...
    Hope it helpful...
    Thanks
    Ashish Gupta

  • Date format is changing in presentation variable

    Hello,
    I have a problem with date stored in presentation variable.
    I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
    I have simple report with title to show the content of variable PP_DATE.
    And now the problem.
    When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
    Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
    There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
    When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
    The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
    Do you have some tips?
    Thank you

    Kishore Guggilla wrote:
    Hey,
    you are talking about so many pieces here seems..
    first letz break down your issues list..
    1. error, this is because of default date(using repository variable) used in prompt..
    2. using presentation variables in timetampdiff functions..
    3. showing variable in title list..
    we'll go through each issue..
    because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
    "1. error, this is because of default date(using repository variable) used in prompt.. "
    I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
    I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
    I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
    And now it seems to be working now.
    I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
    Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

  • Presentation Variable Optional Format Mask

    Hi,
    On page 45 of the Answers documentation at
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/b31767.pdf
    It says that you can specify an optional format mask for a presentation variable:
    ##Start Of Extract##
    @{variables.<variableName>}{<value>}\[format] - for presentation variables
    For example, @{variables.myFavoriteRegion}{Central} - inserts the value of the
    presentation variable myFavoriteRegion.
    ❏ variables - prefix that is required when you reference a presentation variable in a request.
    ❏ variableName - a reference to an object available in the current evaluation context. For example: @{variables.myFavoriteRegion}.
    ❏ value - (optional) - a constant or variable reference indicating a value to be used if the variable referenced by the variableName isn't populated (is undefined).
    ❏ format - (optional) - a format mask dependent on the data type of the variable. For example: #,##0, MM/DD/YY hh:mm:ss, and so on.
    ##End Of Extract##
    Has anyone got this optional format mask to work? I've tried things like:
    @{pv_my_date}{01/01/2009}\[YYYY-MM-DD]
    hoping that it would render the 01/01/2009 into 2009-01-01 format but to no avail. Annoyingly there are no examples of a format mask being used, and I can't see any examples in Paint or Sales either, so maybe the documentation is wrong.
    But wouldn't it be great if it did work - render dates into exactly the format you want, regardless of what locale the user is using!

    Try to look into that prompt column to see why you are getting different date format.
    If it is not correct as per you application then I would suggest to correct it using column->Data Format and then Save.
    I would suggest to convert the filter to SQL format to handle it, you may get it after Filter... button add date and then use Advanced button. using SQL you have options to do it.
    Thanks
    Edited by: Srini VEERAVALLI on Apr 12, 2013 7:47 AM
    What is Print Date?!! Is that available column in Subject Area? If you dont know why its like that investigate.
    Edited by: Srini VEERAVALLI on Apr 12, 2013 8:10 AM

  • Date Presentation variable

    Hi,
    If Date presentation variable (with between operator) returning two values,
    how to call the first value specifically...
    thanks in advance.
    Siva Prasad

    Siva Prasad wrote:
    Hi,
    If Date presentation variable (with between operator) returning two values,
    how to call the first value specifically...
    thanks in advance.
    Siva PrasadRead this...
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Using the default date for presentation variable

    In the report I want to use the default date for the presentation variable.
    If I use the query like below,default value is giving correctly.but if I pass the date value from dashboard prompt it is throwing error
    Anybody help me to modify the below
    query to get the valid results?
    Timestampadd(SQL_TSI_day,(dayofmonth(date @{asdf}{date '1900-01-01'})*-1)+1,date @{asdf}{date '1900-01-01'})
    Edited by: user12255470 on Dec 2, 2010 12:11 PM
    Edited by: user12255470 on Dec 2, 2010 12:12 PM

    try this:
    Timestampadd(SQL_TSI_day,(dayofmonth(date '@{asdf}{1900-01-01}')*-1)+1,date '@{asdf}{1900-01-01}')
    mark answers promptly.
    J
    -bifacts
    http://www.obinotes.com
    Edited by: bifacts on Dec 2, 2010 3:21 PM

  • Date format in Direct database request

    I have a report with direct database request.
    I have a date prompt..I am storing the date in a Presentation Variable named pv_date.
    In the direct database request, I have a where clause:
    WHERE business_date IN ( @{pv_date}{'1/1/2013'} )
    when I run open dashboard for the first time, its throwing me an error near TIMESTAMP.
    WHERE business_date IN( TIMESTAMP ''2013-01-01 00:00:00'')
    AND ALSO When I run this report from dashboard after choosing a date say 2/20/2013, I see the query as:
    WHERE business_date IN (2013-02-20 00:00:00)
    and hence throwing error.
    Its throwing error in both the cases. How do I change the format in WHERE clause..
    Ideally, I want the query to be WHERE business_date IN ('2/20/2013') or Business_date IN ('2013-02-20')

    Thank you both.
    I am using Sybase and hence used convert function.
    But still I see the word TIMESTAMP in the query which is causing issue.
    business_date IN(CONVERT(char(10), TIMESTAMP ''2013-03-27 00:00:00'',101))
    and when I run the report by choosing any date, I see this: business_date IN(CONVERT(char(10),2013-03-27 00:00:00,101)) ; throwing error because No single quoted for the date.
    How do I remove the word TIMESTAMP?? and how do I impose single quotes..

  • Date Format issue in my report.

    Hello Experts-
    I created a report with a date prompt, which we need to enter two dates, start date and end date.
    I followed the steps as they were in this link
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    I changed the condition in the prompt to Date'1900-1-1' instead of TIMESTAMP'1900-1-1- 00:00:00
    I.e.,
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date' 1900-01-01' END
    and
    CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE Date '2999-12-31' END
    I stored those two dates in two presentation variables start_date, end_date
    In my report, I imposed a filter on my table that, date coulmn in my table is between Date'@(start_date}' and Date'@{end_date}'
    But when I am running the report with entering two dates, I am getting this error:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 12/1/2010 does not match the specified format. (HY000)*
    I entered 12/01/2010 as start date and 12/02/2010 as end_date
    Can you please guide me in this issue.

    I think your date format is in different format with the date format u stored in presentation variable so better check the date format of the case function u wrote it in you variable that will solve the problem.

  • Using presentation variables in report columns

    Hi.
    I need to create a report column evaluating the difference in days between a field containing a date and a presentation variable.
    My field is defined as:
    TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", @{DataAnalisiScaduto})
    Where DataAnalisiScaduto is a presentation variable passed to the report and it's generated on a date field.
    Executing the report I get an error and looking at the session manager in the generated query I can see:
    TRUNC( (31 / nullif( 12, 0)) / nullif( 2010, 0) ) - TRUNC( T4292.DATA )
    Why ? How can I do ?
    Thanks,
    Andrea

    Erro again ...
    the value passed is 03/02/2011 (picked from the calendar) and the default suggested is 2010-01-10
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value 03/02/2011 from 03/02/2011 does not match the specified format. (HY000)
    SQL Issued: {call NQSGetQueryColumnInfo('SELECT "Data Incasso"."Data Incasso", "Data Scadenza"."Data Scadenza Fattura", "Dettagli Pagamento"."Cd Fattura", "Dettagli Pagamento"."Cd Tipo Riga Pag", CASE WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 0 THEN ''Fino 0 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 0 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 30 THEN ''Fino 30 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 30 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 60 THEN ''Fino 60 gg'' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') > 60 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date ''03/02/2011'') <= 90 THEN ''Fino 90 gg'' ELSE ''Oltre 90 gg'' END, Misure.Dovuto, Misure.Pagato, Misure.Scoperto FROM "Vendita - Pagamenti"')}
    SQL Issued: SELECT "Data Incasso"."Data Incasso", "Data Scadenza"."Data Scadenza Fattura", "Dettagli Pagamento"."Cd Fattura", "Dettagli Pagamento"."Cd Tipo Riga Pag", CASE WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 0 THEN 'Fino 0 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 0 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 30 THEN 'Fino 30 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 30 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 60 THEN 'Fino 60 gg' WHEN TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') > 60 And TIMESTAMPDIFF(SQL_TSI_DAY, "Data Scadenza"."Data Scadenza Fattura", date '03/02/2011') <= 90 THEN 'Fino 90 gg' ELSE 'Oltre 90 gg' END, Misure.Dovuto, Misure.Pagato, Misure.Scoperto FROM "Vendita - Pagamenti"

  • Server and Presentation Variables and Displaying in Dashboard Report

    Hello I am running into dead ends trying to get what seems a simple request implemented. The user would like to be prompted for a Date range and have the dates they select displayed in the Title of the report, they also would like the default data set returned be the prior month (so not all data is returned when they initially run the Dashboard)
    I have a Dashboard prompt where the user is prompted for a Date Range (Date column). My first issue was being able to display the Date range in the title. I used the below post from Venkash
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
    I set the Case statements in the Dashboard prompt to equal then passed them to a Presentation variable. I then used these to be displayed in the Title of my Answers report.
    The issue now is automating prior month, I was informed I would have to set up a Repository Variables to initialize two columns - one bringing in Prior Month First Day and one bringing in Prior Month Last Day. I then set these as the defaults in the Dashboard Prompt.
    This works, however, my problem now is when the values are displayed in the report initially, they have the value of TimeStamp '01-01-2008 00:00:00'. When I put in values in the Dashboard Prompt and hit go the values are replaced correctly with whatever I put in - 1/1/2008.
    I assume the TimeStamp shows because of the initialization I am doing in the repository, I don't see any way of changing this so it reflects just the date, I am using the sysdate in the formula on the repository - I tried converting to_char first setting the format then converting back to Date. But still no luck.
    Has anyone else encountered this? Or am I even going about it the wrong way? Sorry for the long post, I look forward to any input, thanks!!!

    No it errors out when I try to Cast the server variable as a Date in the Dashboard Prompt interface.
    The variable I created in the repository (Server/Dynamic) has the formula:
    SELECT Add_Months(TO_DATE((to_char(sysdate,'mm')) || '/' || '01/' || to_char(sysdate,'YYYY'),'MM/DD/YYYY'),-5) from dual
    This is set up with an Initialization block that when I first run the report it displays in the title
    TIMESTAMP '2007-10-01 00:00:00'
    This will display no matter what I change the Initialization block to (01, ab, etc) so I guess it is something from the formula.
    Now when a user does enter a value into the prompt box and hits GO the title changes to reflect a date and looks great (10/1/2007), but I guess this is because it is now passing the database column value to this presentation variable.
    I assume this all revolves around the formula I am creating in the repository to return a default of 10/1/2007 so it can be displayed in the report header like that and not with the TimeStamp format above.
    I appreciate all your input, thanks again!

Maybe you are looking for

  • ITunes credit card problem

    I just bought a $15 iTunes gift card and I read on the site that for the new version (which I uploaded)you don't need credit card info to purchase songs. So I tried to redeem and it said I needed to create an account first and thus have to put in bil

  • DUMMY GUIDE NEEDED

    Just bought AE and having mega-trouble with the install. PC wired to a netgear wireless router which is wired to the modem. Followed the directions, and the green light went on, but only when connected via wire. At present, the stupid thing is blinki

  • Can't convert llb to directory

    I have a pop-up keyboard llb someone shared. When I open it, the convert to directory button is disabled, as are the cut and copy buttons. I need to extract this. Why is it doing this? Thanks, Jim Solved! Go to Solution. Attachments: HMI_PopUp_KB.llb

  • IMessage doesn't work anymore

    The iMessage stoped functioning, first on my iPadthen on my iPhone, have gone through ste "trobleshooting" list and tried hard restart (holding switch and homebutton down until appleicon) but it didnt help. Does anyone have a solution?

  • Was my computer remotely accessed?

    I was on iTunes, and a shared folder thing popped up on the left. It contained a vulgar word and had the lock symbol on it. Shortly after I saw this, my iPhoto randomly opened up and started to browse through pictures. I was NOT touching the keyboard