Date prompt using repository variables adds "DATETIME" literal to narrative

We are using repostiory variables to set initial date prompt filter values for our report. When we do that we get the "DATETIME" literal string show up on our report as in TIMESTAMP '2011-08-18 00:00:00&#39 (I am posting the exact literals from the report.
Is there any way to fix this so "TIMESTAMP" does not show?
by the way the following procedure was followed in trying to create this narrative.
http://bischool.wordpress.com/2009/06/17/set-yesterday-or-some-date-value-as-default-in-obiee-dashboard-prompt/
We are doing this in OBIEE 10.1.3.4.1

Double click on the connection pool and got to General tab.
In the excute on the connect field add the following Script.
ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY'.
Thant will solve the problem of time stamp.
I tried this in my recent project and it works. Let me know if you have any issues
Thanks
If it is the only issue coming up in the narrative view then follow Ashish method.
If the date problem persists for prompts and everywhere in the answers follow my method
Edited by: Venkat Krishna on Aug 19, 2011 11:01 AM

Similar Messages

  • Can we use repository variables in bi publisher like in anwers

    can we use repository variables in bi publisher like in anwers
    if possible then how

    Yes,
    but you should be using Oracle BIEE as Datasource in order to use the variable of repository
    you 'll have to follow this syntax: valueof("variable")

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • Is it possible to use repository variable in conditional formatting

    Is it possible to use repository variable in conditional formatting . if no then is there any workaround for implementing the same....
    Also i came across a sql of an init block.. which goes like 'exec OracleBi..procedure_name'
    Is 'OracleBi..' a keyword or something like that....

    Refer http://www.biblogs.com/2008/09/03/obiee-repository-variables-filtering-and-conditional-formatting/
    Init blk is calling any procedure here with name OracleBI here...no any specific significance.
    Hope this help
    Edited by: Deepak Gupta on Aug 12, 2011 8:27 AM

  • How to change Repository variable from Datetime to date

    Hi,
    I have a repository variable which populates sysdate in OBIEE. It is coming as datetimestamp. I know repository variables are long char.
    I am using this variable in report title. It is coming as datetimestamp.
    Is there ant way to just show it as date.
    Let me know...
    Thanks
    V

    That means you dont know the function name ie to_date!!!!!!!!!
    never mind at least you learned it.

  • Help using repository variable in dashboard text

    Hi,
    we have a dashboard section that shows current announcements regarding data issues, etc. This is just using a plain text object on the dashboard. I need to add the following to the top of the text: "Data loaded on xx/xx/xxxx".
    I've created a static repository variable called "DW_LOAD_DATE" and populated it with the proper date/time.
    I'm 100% able to use this in an answers query, but I'm stuck trying to figure out how to get it to show up in a dashboard plain text section with no Answers behind it. I've tried:
    {biserver.variables['DW_LOAD_DATE']}
    @{biserver.variables['DW_LOAD_DATE']}
    {biserver.variables[DW_LOAD_DATE]}
    @{biserver.variables[DW_LOAD_DATE]}
    In all cases, the only thing that shows up is the exact text from above - the substitution isn't being done properly. Can someone help, I'm obviously doing something dumb.
    Thanks!
    Scott

    Ok, I got the following to work (kind of):
    @{biServer.variables['DW_LOAD_DATE']}
    I was thrown off because the "preview" window shows it as the above string without doing the variable substitution.
    Now my last question - the above variable is stored as a TIMESTAMP, because in some cases we need to know the time in addition to the date. When it's showing in the dashboard text, I see the following:
    Data was last loaded on TIMESTAMP '2011-01-06 18:00:00'
    Is there a simple way to format this so it shows up like:
    Data was last loaded on 1/6/2011 18:00:00
    Thanks!
    Scott

  • New Logical Column using repository variables

    Hello all,
    Can anyone let me know how we create a new logical column in OBIEE 11g in the BMM layer using the repository variables..Is there any way/chance to create such new logica columns.If so please let me know how we will be doing that

    This is alwayz possible.
    Here is the syntax.
    CASE WHEN VALUEOF(VAR1) ='ABC' THEN
    "Sample App Lite Data"."".""."F10 Revenue Facts (Order grain)"."Units"
    WHEN VALUEOF(VAR1) ='XYZ' THEN
    "Sample App Lite Data"..."F10 Revenue Facts (Order grain)"."Discnt_Value"
    END

  • Date Prompt using Calendar view

    Hi,
    My requirement is to filter data for a date column using Prompt. I want to show Prompt as a calendar for the date column. Data type for that column is "Timestamp" in Physical Layer and I changed it into "Date" data type in BMM layer.
    I have created a prompt and after selecting a date from the calendar, it throwed the following error
    "A date value was expected (received "2010-09-01 00:00:00")."
    To have a try, I used following case statement in prompt Column:
    case when 1=0 then "Booking Date Calendar"."Calendar Date" else TIMESTAMP '2009-01-01 00:00:00' END
    Its taking "01/01/2009 12:00:00 AM" after selecting date from this modified prompt,but the data i have in date column is "1/1/2009".
    I tried multiple ways so that i can see results, but i am not able to pass the correct value to the report from prompt.
    Can you please tell me how to solve this problem?
    Thanks,
    Phani.

    Hi Phani,
    Here are the steps
    My report
    1) http://img52.imageshack.us/img52/482/pic103.png
    Prompt
    2) http://img52.imageshack.us/img52/8783/pic104.png
    Your issue
    3)http://img52.imageshack.us/img52/4571/pic105.png
    Work around
    4.1 ) http://img52.imageshack.us/img52/3828/pic106.png
    4.2) http://img52.imageshack.us/img52/7311/pic107.png
    final report no error:
    5) http://img52.imageshack.us/img52/446/pic108.png
    thanks,
    Saichand.v

  • Can we use repository variables in SQL statement of column prompt?

    Hi Dudes,
    Below is the query
    SELECT "- End Date"."End Fiscal Year" FROM "Consumer Sector" WHERE ("- End Date"."End Fiscal Year" = valueof (current_year)) or ("- End Date"."End Fiscal Year" = valueof (current_year) -1)
    when use this sql in criteria prompt getting error.
    Please suggest .
    thanks.sri

    Make sure your syntax is correct it should be like VALUEOF("CURRENT_YEAR")-1
    If you still have issues then VALUEOF("CURRENT_YEAR")-1 cast it to int before you subtract.
    If helps pls mark as correct else let share error message

  • Data Acquisition - using local variables to write data to a file

    Hello,
    I am running a Data Acquisition vi (currently in LabVIEW 7.1 but soon to be updated to 8.2) that collects ~100 parameters of data from several sources contained in a while loop. The current configuration (which I did not write) uses very few subVIs and writes to ~100 local variables to store each parameter. It then reads all the local variables and builds an array of all the strings, converts then to a spreadsheet string, then uses the write characters to file function to append to a datafile. I am trying to clean things up and have came up with subVIs to collect the data from the following sources:
    8 serial port sources collecting btwn 8 and 20 parameters each
    ~15 thermocouple readings
    ~10 analog inputs
    ~20 parameters read off an ARINC 429 bus.
    I have come up with a subVI to read each of the sources and have placed the subVIs in the while loop. Each subVI outputs the data that it collects in array or cluster form. I was wondering how best to write each parameter to a CSV file at between 1 and 10 Hz. Should I write each subVI output to a LV and then read them off as was done before (the difference being that I have reduced the # of LVs to ~10 vs >100?
    I should add that precise timing is not that important, so if all the subVIs are not collecting simultaneously (which I understand that they won't be), it does not really matter.
    Thanks.

    Hi jilla,
    jilla wrote:
    What I think that you are saying is to turn the outputs of the 4 subVIs into inputs of a 5th subVI that writes to the data file. Correct?
    Yes.  It may sound like a fine-point, but I beileve it's better to create a VI specifically for formatting data - in your example, 4 arrays IN, a single string OUT.  Then write the string to file as a seperate operation.  GUI-displayed data can go through a similar transformation, the four arrays wired to a subVI which builds output-structures specifically for display.  It's a beginner's mistake to put lots of individual controls and indicators on the screen when groups of them are naturally related (in an object-oriented sense.)  Use clusters to group related controls - this will keep the diagram much cleaner.
    One more question: at what point (either # of data points or frequency of data collection) does it become necessary to use queues? Thanks.
    Well, there's not really a clearly definable "point".  I'd say if your update-rate climbs above 100Hz, or you witness poor program or system performance, then it's time.  The scenario you've described is a fairly simple acquire/display&log loop - and simple is good.   Then-again people can't see/react-to updates faster than about 10Hz - so it doesn't make sense to sacrifice performance - if performance becomes an issue.
    Re: queues:  Queues are sometimes used to buffer data that's "produced" in one place and "consumed" in another.
    Here, if/when logging data, you're logging with every DAQ.  I wouldn't recommend using a queue to transport data from a "DAQ loop" to a "Logging-loop" - those functions can be in the same loop.  Should/could a queue be used to get data from a "DAQ loop" to update the GUI at a lower frequency?  Sure, but a Notifier might be a better choice.   Further, in the (simple?) program you've described, you might use a case structure (True/False) to only update FP indicators every "X" iterations - a simple solution that doesn't require Queues or Notifiers.
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • How to access data without using authorization variable in report?

    Hello All,
    I am using two varibles in report, without using exit varible in report how to get the data based values enter in the ohter variable.
    How to find the roles and display the data " with out using the concept called varible used in report"

    Sorry..for late response.
    Answers to your questions:-
    Previous day to current date.
    I tried to follow steps given in the following link but failed as we have Teradata as data source and I dont know how to write a syntax for teradata similar to what is explained by Dave.
    http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
    Regards

  • How to restrict data by using a variable in webi

    Hi Gurus,
    My users need to see only previous day data when they open the webi but should have ability to view older data later.
    How can I do that?
    I tried =MAX(Day([Creation Date]) In Report)
    But its not giving me right results.
    Any suggestions?
    Regards
    Aj

    Sorry..for late response.
    Answers to your questions:-
    Previous day to current date.
    I tried to follow steps given in the following link but failed as we have Teradata as data source and I dont know how to write a syntax for teradata similar to what is explained by Dave.
    http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
    Regards

  • Dates Format in Promts using Session Variables

    Hi Experts,
    I have an issue in controlling date format in prompts using session variable which I am using to set default value.
    By default date format is timestamp E.g '2010-12-19 12:00:00 AM'.
    As per requriement(s) I customized the date format in Reports as 19-Dec-2010 and I saved it as "System Wide Default for <Date Column Name> "
    So, I got desired format in Reports and Date Prompts.
    Now, I need to set a default value in Date Prompt. So, in RPD I created a Session Variable which returned me date in
    DD-MON-YYYY format. Using follwing SQL :
    SELECT REPLACE(CONVERT(VARCHAR(11), Getdate (), 106), ' ', '-') AS [DD-Mon-YYYY]
    But in reports takes this value as string and not Datetime. So i got an error message.
    A datetime value was expected (received "19-Dec-2010").
    If i do not use above SQL to CONVERT date then default date in prompt get displayed as timestamp format and give me desired results but Formatting looks very odd in prompt
    Is this a way so I can persist the [DD-Mon-YYYY] Formatting for default value which comes using variable and still run the report.
    Above problem also exist vice versa that is if i SET that session variable and pass the datetime value to server. But there i guess I can use ToDate or some Casting in RPD column expression to handle that. Tell me if i am right ?
    Thanks
    Saurabh

    That almost works. I had to adjust the syntax to the following...and then there are other issues doing this.
    select cust_no, name,'@{session.currentUser}' from customersMy write-back SQL is this:
    UPDATE customers SET NAME='@{c1}',LAST_EDITED_BY='@{c2}' WHERE CUST_NO=@{c0}But I don't want to display the cust_no column to the user. So I hide it in the UI. But if I do that I get the below error during write-back. Apparently sometimes when you hide a column on a direct query (numeric maybe?) the value doesn't transfer over to the write-back. If that's the case, this won't work for me. Hmm...
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute: UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= . [nQSError: 17011] SQL statement execution failed. (HY000)
    SQL Issued: EXECUTE PHYSICAL CONNECTION POOL dev1 UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO=

  • 'In Between' Date Prompt to set Session Variables???

    Hi
    Im very new to OBIEE and was hoping someone could help me. I have a date prompt using the 'in between' operator based on a date column.
    I am trying to set up a table in the Physical layer of the RPD using a stored proc (EXEC sp_name). The stored proc takes 2 input paramaters - a start data and an end date. These dates i would like to come from the in between prompt. I have set up the physical table structure to receive the results of the request.
    I looked at setting a session variable but it is asking me to insert sql to set the value and i dont want to hit the database outside of the stored proc. Also, even if i have session variables i cant see how to set them to the values in the prompt when using the 'In Between' operator.
    Im really very confused and i have been searching the net and the documentation for any clue.
    Any help would be appreciated
    Thanks

    In between operator doesn't support presentation variable..
    so break this into is into two prompts...and use equal to operator, then you can use them as request variables which will in turn override your session variables.
    in the report use operator between and use these variables in the filter..

  • Creating Date Prompts with "in between" operator

    hi,
    I have gone through the below forum
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
    I have done all the steps as shown in the forum but I used calendar control instead of drop down list and it displayed the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46047] Datetime value 4/4/1998 12:00:00 AM000000000 from 4/4/1998 12:00:00 AM000000000 does not match the specified format. (HY000)
    Can anyone suggest me an appropriate solution as it is my project requirement.
    thanks in advance
    naresh

    Hi,
    I cast the date column AS DATE again it displays the following error
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46046] Datetime value 4/2/1998 does not match the specified format. (HY000)
    How to cast date column to timestamp (ddmm-yyyy 24hr:00:00) format
    Thanks in advance
    naresh

Maybe you are looking for

  • How do I backup the files on to my Macbook Pro 2010 from a damaged external hard drive?

    Awhile ago my macbook pro crashed and I had to make a bootable disk of Mountain lion no problem here but I accidentallly deleted all the files off of my hard drive from which i recovered using a PC computer and disk drill. After it had recovered all

  • Thunderbird vs Mail

    Hi, I was wanting opinions on Thunderbird vs Mail I have tried Thunderbird this week and actually seems to be running quite well... Does anyone use Thunderbird instead of Mail and does it have benefits? Or is it easier to use Mail to work with Addres

  • Which generation is the current iPod classic?

    Which generation is the current iPod classic?

  • Who Shoud Be The Owner Of The Boot Disk?

    My system has several drives with several partitions. I noticed, via Get Info, on the boot driver that the owner is set to "system". Is that correct? Shouldn't be set to my user account? I'm asking this question because I just installed Adobe Photosh

  • Batch Change Version name to use Caption - for MobileMe Gallery

    Hi, is there a way to batch change the version name files (which is what MobileMe can use to display under the picture) to use the Caption? The Caption is what I believe is/can be used in the regular galleries/web pages exported from Aperture, Mobile