Presentation variable data format

Hi All,
We are using date as presentation variable and using that presentation variable in reports column formula's, but in prompt date format is showing MM-DD-YYYY, but in report it is taking as YYYY-MM-DD because of this data format difference it is giving error on dashboard but working fine in report results. If we change the format of date as char and giving user input filter it is working fine but users want the prompt value as it is. So how can we change presentation variable format in column edit formula?
Tanks in advance.

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

Similar Messages

  • 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

  • Presentation Variables Date Format

    Hi,
    I have a direct sql request that uses date presentation variables via a dashboard prompt:
    Direct SQL:
    select id, customer
    from test
    where date between @startdate and @enddate
    If I enter startdate '31/03/2013 00:00:00' in the dashboard prompt selection:
    OBIEE converts the above query into database date format:
    'YYYY-MM-DD HH24:MI:SS'
    The database is in date format DD-MON-YYY, this results in error ORA-01861: literal does not match format string
    can anyone help with where the date format should be set?
    Thanks

    There are different levels of users on this forum so you need to be more specific and provide examples to novice users....I want user to think on given hints and fix by himself instead of detailed with examples, this would help user to learn and think in new dimensions instead of depending on any one.
    Sometimes I'll be responding more detail based on their registered date with OTN and # posts posted.
    in your case my hint not fired!! so no full points ;)
    Check this
    Re: How set two presentation variables with one prompt
    Edited by: Srini VEERAVALLI on Apr 11, 2013 10:55 AM

  • Presentation variable(Date) in German Format

    Hi,
    I like to know whether it is possible to use date(prompt) in German format.
    e.g., We need to filter out the date(06.01.2009) which is given in Dashboard prompt as a Presentation variable.
    The date which we have given in prompt should be accessed by reports to perform some calculations and return back the calculation values.
    As we have tried the presentation variable(date) in US Format,it is working fine.
    Regards,
    Sakthi

    Hi kishore,
    I am not clear with the above mentioned forum link.
    We are using presentation variable for dynamic calculations inside the report.
    Suppose if we are giving date for dynamic calculation,as far as we are using this format (01.Jan.09) and convert the above format in required as used for calculations.
    The problem comes when german date format(01.Dez.2008) is given in prompt,it will throw an error.
    Because both German and US will have January & Januar Jan(First 3 letters as same) but when it comes for some months like December(Dezember(German)),we cannot convert into required format.
    Is there any solution for the above issue.

  • How can I pass a Presentation Variable (Date) into a prompt

    Hello
    How can I pass a Presentation Variable (date) into a prompt? I seem to be able to do this successfully for a non-date value but have had no luck with a Date variable.
    Here's a simplistic version of what I'm trying to do:
    1. I have a Presentation Variable called startDate which is a Date that defaults to this SQL - SELECT "Reporting Dates"."Measure Date" FROM Trading WHERE "Reporting Dates"."Date Name" = 'Current'.
    2. I now want to pass this variable into a prompt with SQL like this: SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date'@{startDate}{2009-04-24}'
    I get this error: Datetime value @{startDate}{2009-04-24} from @{startDate}{2009-04-24} does not match the specified format.
    Now I can use the exact same syntax in a filter. For example, a simple Answers request where I pick Position Date with a filter saying "Position Date"."Position Date" = date'@{startDate}{2009-04-24}' works fine.
    What am I doing wrong?
    Thanks!

    Can you provide more information please?
    1. What is the format of the first date prompt, is it YYYY-MM-DD or?
    2. Which data type is Position Date."Position Date" in the physical layer, date or date time?
    3. What is the column formula in the first prompt?
    4. The first prompt is set to drop-down or?
    5. If you are using this SQL Results in the second prompt:
    SELECT "Position Date"."Position Date" FROM Trading where "Position Date"."Position Date" = date '@{startDate}{2009-04-24}'
    then @{startDate} must be in YYYY-MM-DD format to work properly, otherwise (for example):
    datetime value 01/01/2000 from 01/01/2000 does not match the specified format.
    This doesn't work for example:
    SELECT Times.time_id FROM "Normal model" where Times.time_id =date '01/01/2000'
    Regards
    Goran
    http://108obiee.blogspot.com

  • We are not able to pass the presentation variables(date & Date1) to the det

    Hi,
    We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    But we are not able to pass the presentation variables(date & Date1) to the detail report.
    Any suggestions are highly appreciated.
    Thanks in Advance
    Siva.

    Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
    i have not tried it.Give it a try.
    Regards,
    Sandeep

  • 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

  • Issue with referencing Presentation variables(Date cols) in Case statement

    Hi,
    I m trying to reference presentation variables created on a Date column in the case statement of one of the request's columns as shown below:
    case when "- Quote Details"."Creation Date" between '@{from}{1999-1-1}' and '@{until}{2999-1-1}' then "- Quote Metrics"."# of Quotes" end
    I m getting a view display error with the below error message:
    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
    SQL Issued: SELECT "- Quote Types"."Level2 Name" saw_0, case when "- Quote Details"."Creation Date" between '4/1/2009' and '4/15/2009' then "- Quote Metrics"."# of Quotes" end saw_1 FROM "(Unity) Quotes Catalog" WHERE "- Quote Details"."Creation Date" BETWEEN timestamp '2009-04-01 00:00:00' AND timestamp '2009-04-15 00:00:00' ORDER BY saw_0
    When I created the prompt on the date field I put the following formula in the prompt:
    cast("- Time".Day as DATE)
    When I apply a filter on the request using these variables it works fine.
    If anyone has faced this kind of issue earlier and have a resolution, please help me out.
    Thanks,
    Kartik

    Thanks Goran!!
    I've created prompts by selecting columns from the logical tables (i.e. I've selected 2 different cols of datatype DATE...inorder to assign 2 presentation variables).
    Yes I m using calendar widget for prompts.
    I haven't included any filter in my report. I m trying to display a metric when it satisfies the case statement.
    I will defintley go through the blogs you mentioned for better understanding.
    Thanks,
    Kartik
    Query fired on physical db:
    WITH
    SAWITH0 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5
    from
    (select T192898.QLS_FIRST_ACAP_DT as c1,
    TO_DATE('3/2/2009','mm/dd/yyyy') as c2,
    TO_DATE('4/29/2009','mm/dd/yyyy') as c3,
    T188666.LEVEL2_NAME as c4,
    T188666.ID as c5,
    ROW_NUMBER() OVER (PARTITION BY T188666.ID, T192898.QLS_FIRST_ACAP_DT ORDER BY T188666.ID ASC, T192898.QLS_FIRST_ACAP_DT ASC) as c6
    from
    XXSLS_GBL_QTE_TYPES_V T188666,
    XXSLS_GBL_QTE_DTL_F T192898
    where ( T188666.ID = T192898.QUOTE_TYPE_ID )
    ) D1
    where ( D1.c6 = 1 ) ),
    SAWITH1 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select count(distinct T192898.QUOTE_HEADER_ID) as c1,
    T188666.LEVEL2_NAME as c2,
    T188666.ID as c3,
    ROW_NUMBER() OVER (PARTITION BY T188666.ID ORDER BY T188666.ID ASC) as c4
    from
    XXSLS_GBL_QTE_TYPES_V T188666,
    XXSLS_GBL_QTE_DTL_F T192898
    where ( T188666.ID = T192898.QUOTE_TYPE_ID )
    group by T188666.ID, T188666.LEVEL2_NAME
    ) D1
    where ( D1.c4 = 1 ) ),
    SAWITH2 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    (select case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end as c1,
    case when SAWITH0.c1 between SAWITH0.c2 and SAWITH0.c3 then SAWITH1.c1 else NULL end as c2,
    case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end as c3,
    ROW_NUMBER() OVER (PARTITION BY case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end , case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end ORDER BY case when SAWITH0.c5 is not null then SAWITH0.c5 when SAWITH1.c3 is not null then SAWITH1.c3 end ASC, case when SAWITH1.c2 is not null then SAWITH1.c2 when SAWITH0.c4 is not null then SAWITH0.c4 end ASC) as c4
    from
    SAWITH0 full outer join SAWITH1 On SAWITH0.c5 = SAWITH1.c3
    ) D1
    where ( D1.c4 = 1 ) )
    select SAWITH2.c1 as c1,
    SAWITH2.c2 as c2
    from
    SAWITH2
    order by c1

  • BW - problem with formula variable (date format)

    Hi,
    (sorry if I'm using different term than yours.. this is my 2nd query.. still new with BW)
    I need to create 1 query: Support Message Aging Report.
    Basically it will have 5 columns: Not Due, 0 Day, 1 Day, 2-10 Days, >10 Days.
    and 1 input selection is: key date.
    the formula is: number of aging day = key date - due date.
    I have no issue on the 1st and 2nd column. For that I just create 1 customer exit.
    My problem is on how to separate the over due support message by day (due date < key date).
    I tried create 2 formula variable for key date and due date. Then from these 2 vars, I can get the number of days.
    Problem comes when the calculation is cross month/year. I suspect maybe because the return from the formula var is in number format and not date... yyyymmdd. Then, I change the dimensions from number to date.. it is working for key date.. dd.mm.yyyy.
    but for the due date, I got problem... it keeps give me warning saying: value 'D' invalid for property dimension of element etc.///
    below are details for both formula variable.. please advice which area should I fix or maybe you can suggest any good idea for my query.. thanks so much
    1. ZKEYDATE - customer exit (value  input data) - dimensions date - NO ISSUE (OUTPUT: dd.mm.yyyy)
    2. ZDUEDATE - replacement path (ref char ZBW02C08) - replacement rule: infoobject, key - dimension date - GOT WARNING...
    ZBW02C08: contains due date and the type is date: yyyymmdd

    If I were you, I'd try two things:
    best way - have the infoprovider changed to have a new key figure for the number of days difference
    - to do this with formulae (especially crossing months and years - what about leap years) is hard to maintain and develop
    other way - make a virtual key figure - i did this once but I forget how exactly. There's a userexit or BADI somewhere which can be used for this.
    Either of these ways allows the calculation to be done in ABAP itself where date1 - date2 gives you the number of days difference.
    By the way though, this is in the wrong forum. I'd bet if this was in a BI forum, you'd have an answer already.

  • Count = variable date format

    I've got a form where the action="page.php" When on this page, I also have a recordset that counts the rows that have the same date variable called from the $_POST.
    the recordset name = datedal
    variable type = date
    Default value = 0
    Runtime value = $_POST['date_dal']
    Obviously my default value is wrong. I've tried to test using 2008-07-01 and its worked. I use the datepicker to get the date in the form.
    But I've tried default values of dates, 0000-00-00, 2008-07-01 but nothing has worked. Please help.
    thanks!

    Problem solved.

  • 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?

  • 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

  • Formatting date of Presentation Variable in Report title

    Hi
    I have the following presentation variable, @{PR_WE_DATE}{Week End Date}, in a report title. However the date format shown in the title is different from the format in the prompt.
    In the report title the date format is YYYY-MM-DD however I want to display it as DD_MM_YYYY
    Can anyone let me know if it possible to format the date format for a presentation variable?
    Regards
    A

    I've tried this and all this output to the title is 2009-12-03[DD_MM_YYYY]
    Any other suggestions? Maybe I can change it when I set the variable in the prompt, did try {variable}[DD_MM_YYYY], in the prompt but it didn't work

  • 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

  • Date format problem - dashboard prompt - presentation variable

    Hi,
    I've created a dashboard prompt on a date and defined a presentation variable.
    In my report I make use of the following object : TimeStampAdd(SQL_TSI_MONTH,-12,date '@{pv_afw_start_date}' )
    My report works when making use of a drop down list, but when I want to make use of a calendar to select from, I receive the following error
    *A general error has occurred. [nQSError: 46047] Datetime value 17/11/2009 from 17/11/2009 does not match the specified format. (HY000)*
    Is there a difference in the date formats used by the prompt type (drop down list, calendar, ..)? And how you can align them..
    Txs for your help.
    Kr
    A

    Timestampadd ask for a timestamp not for a date.
    Check here :
    http://download.oracle.com/docs/cd/E12103_01/books/admintool/admintool_SQL14.html
    The syntax is :
    TimestampAdd(SQL_TSI_DAY, 3, TIMESTAMP '2000-02-27 14:30:00')You may have to change your prompt to retrieve a timestamp.
    Where do you use your formula ? In a formula column ?

Maybe you are looking for