OBIEE 10 g, Using sysdate as a variable of presentation on a date column

Hello guys,.

I use Obiee 10 g. I have a date in my report column, and what I'm doing, that's if the date is less than the current date, then I want to add a condition (blush the bottom of the column in the report) for this column. I looked in a few forums and found that system.currentTime is a variable of default presentation and I tried to use it, but it does not work.

What I've done, in the responses, I went to the properties of the date column, colum went to add selected condition then add a variable presentation and then the phrase I used was system.currentTime and then chose the red background color, but that does not reflect when I click on the results.

Please let me know how to solve this problem. Thank you.

796078 wrote:
Hello guys,.

I use Obiee 10 g. I have a date in my report column, and what I'm doing, that's if the date is less than the current date, then I want to add a condition (blush the bottom of the column in the report) for this column. I looked in a few forums and found that system.currentTime is a variable of default presentation and I tried to use it, but it does not work.

What I've done, in the responses, I went to the properties of the date column, colum went to add selected condition then add a variable presentation and then the phrase I used was system.currentTime and then chose the red background color, but that does not reflect when I click on the results.

Please let me know how to solve this problem. Thank you.

Follow these steps:

(1) take an additional column, call the 'DIFF' and in the fx, enter this:

TIMESTAMPDIFF (SQL_TSI_DAY, VALUEOF ("CURRENT_DATE"), your_date_column)

This will be negative, each time your date column value is less than the current date.

(2) on your date_column, click the Format button and add that the conditional formatting based on the DIFF column blush the background when DIFF is "less than 0."

This will achieve what you want. Hide the DIFF column.

Tags: Business Intelligence

Similar Questions

  • What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Hi all

    I am new to TestStand. Still in the learning process.

    What are the parameters? How are Variables differenet? Why we can not use variables to pass data to one sequnece to another? What is the advantage to use parameters instead of Variables?

    Thanks in advance,

    LaVIEWan

    I'm sorry... I discovered that... its not at all possible to pass data to another sequence using variables... it must be through settings... once again I apologize for the display of such a stupid question

  • The use of the repository variable date in filter expression

    Hi gurus

    I get the error using repository variable date in filter expression. I use the formula below

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end date" = VALUEOF ("month_start"))

    I am getting below error

    The formula syntax is not valid.
    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22024] A comparison is performed between incompatible types. (HY000)
    Publ. SQL: SELECT filter (fact. Calls by using "Sun Time" ". Fiscal months end date"= VALUEOF ("month_start")) 'call DATA.

    Then I tried the below format I still get the error

    filter (with the HELP of Fact.calls"Sun Time".) "" Fiscal month end date "= DATE'(VALUEOF ("month_start"))") "

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 46047] DateTime (VALUEOF("month_start")) (VALUEOF("month_start")) value does not match the specified format. (HY000)

    Publ. SQL: SELECT filter (using "Sun Time" Fact.Calls. ("' Fiscal months end date" = DATE '(VALUEOF ("month_start"))') 'call DATA.

    Please let me know what I'm missing or what is the correct syntax of same using the repository of date variable.

    Thanks in advance

    Concerning

    @li

    filter (with the HELP of Fact.calls"Sun Time".) ("' Fiscal months end Date" = CAST (VALUEOF ("month_start") date))

    Try this

    mark, if this can help

  • Capture selected vales of Date dates invite you using the variable of presentation

    We have an obligation to display the date on the text of the report / whatever the user selects the date from the command prompt.
    We have a date called created and used operator is between.
    Can someone help me in this area, the use of variable presentation to capture the values of a single Date column of creation?

    In the criteria to add more than 2 columns for Date of creation
    and use these expressions foreach and hide them
    MAX (RMAX (creation Date))
    MIN (RMIN (creation Date))

    In your story view we will call @1 and @2. assuming that these 2 columns are first from left to right.

    No need to use variables of the presentation.

    Mark as correct

    Thank you

    Published by: Srini VIEREN on April 22, 2013 16:47

  • why we use the symbol $ java variable?

    his_$ account_tota, $ b... can u give an explanation for this variable. What is the symbol of $ use? Why we use the symbol $ java variable...
    I need a clear and simple explanation for example...: P

    No real reason, you can do it if you want. But you don't have to - I certainly didn't, and I rarely see code it does.

    You should take the time to find a way to find information. For example, I just typed 'java variable dollar' in google and ended up with this as the first shot:

    http://docs.Oracle.com/javase/tutorial/Java/nutsandbolts/variables.html

    I quote:

    "In addition, the character dollar sign, by convention, is never used at all."

  • Using Sysdate with picker within the Application Express

    We use sysdate Auto Fill a date field on one of our forms. The user can keep this date or use the date picker to update a different date value. The problem we encounter, is that when we use the sysdate, the date picker appears with the current month, but the year is 1920 instead of the current year. When choosing a date with 1920, i.e. 2 June 1920 the date displayed value is 02/06/11. When we remove the sysdate, the date picker displays the current month and year and the returned value is also correct.

    Everyone knows this and is at - it a way to get the datePicker to the correct month and year when using sysdate Auto Fill a field date display?

    We are on the verision - 3.2.1.00.12


    Thank you
    Marian

    Hello

    1920 is the minimum possible value of year that provides the date picker. In my view, it is failing for it because you have a data mask uses the figures of 2 years, try to use format of 4 years as:
    to_char(your_date,'dd-mon-yyyy')

    Sam

  • You should have seen the date using the variable of presentation

    Hi all

    I am facing a problem in the display of the selected date of the guest in the report using the variable of presentation. I have a guest of data (calendar prompt), where the user selects the value. I take this value in the variable RBAP of presentation and report when I try to display this value using the same presentation variable, I get my date in the following format

    "TIMESTAMP 2010-10-22 00:00:00 '.

    I'm just using ' @{RBAP}' in the formula in the column.

    I want to show my date in the format DD/MM/YYYY. How to do this?

    I have used CAST (' @{RBAP} {' as DATE} and tried to change the data to dd/mm/yyyy format, but it does not work.)

    Please suggest

    Thank you
    Ronny

    in the default section to write the SQL...

    Select the OPTION case SENSITIVE WHEN 1 = 0 THEN AnyExistedDateColumn CURRENT_DATE of OTHER END OF SubjectArea

  • Database use sysdate is default at midnight

    Oracle 11g on AIX.

    I have a database job that inserts data into a table and one of the columns date I'm inserting is filled using sysdate. Any time I have the job, time always default to midnight. Someone knows why?

    Owner of the procedure, the owner of the table and the owner of the job are all the same. This same owner has the date of the NLS defined to include the hours minutes and seconds. I have the exact configuration of work even for different databases, and it inserts the correct time. All DDL is exactly the same for these databases.

    (SYSDATE-TO_DATE

    NEVER above. 100% nonsense.
    SYSDATE is already a DATE data type

  • Using variables of presentation... as well as instructions case...

    Hi all.

    I have a problem using the variable of presentation as well as instructions BOX. My approach is

    (1) I have a prompt of dashboard, which is defined as variable presentation.

    Depending on the value selected in the command prompt, for ex prompt values may be "ABC" and "DEF".

    I have a calculated column, the calculation goes this way...

    The forumal is

    CASE WHEN @{name of presentation Variable} = 'ABC' THEN ELSE IF xxxxxxxxxx @{name of presentation Variable} = 'DEF' END. It gives the error "no table referenced..."

    This is the right approach?

    Can I get the values of the variable in a formula in the column, so that a column can have the values selected in the command prompt?

    Can anyone pls help me out here...

    Thanks in advance...

    Hey,.

    use like this...

    CASE ' @{presentation Variable name}'
    WHEN 'ABC '.
    THEN col_formula_1
    WHEN 'DEF '.
    THEN col_formula_2
    WHEN...
    ..
    ..
    ON THE OTHER
    col_formula_n

    END

    Kind regards
    Rambeau

  • Can I use SYSDATE to recover data?

    Hi all
    I'm working on MS Windows XP SP3 and my date in oracle format is December 1, 2008 "." Now, I created a table with a column of type DATE so I insert a record by using the SYSDATE like this
    INSERT INTO Birthdays (ID, Name, BDate)
    VALUES (1, 'Zikas', SYSDATE)
    Then when I try to retrieve this record after that I inserted in (on the same day, I mean) by the Select statement
    SELECT * 
    FROM Birthdays
    WHERE BDate = SYSDATE
    There is no record retrieved. How insert a record with SYSDATE then and get it back by also using SYSDATE?

    Thanks in advance :)

    SYSDATE has part of time, then you probably want to work with trunc (sysdate).

  • last date(dd/mm/yyy) using sysdate?

    How to get the last date(dd/mm/yyy) of the month last using sysdate?

    This?

    SELECT TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-1)),'dd/mm/yyyy') FROM DUAL;
    

    Edited by: aweiden the 12.11.2008 20:19
    typo

  • How to use a variable to browse the XML data

    My chart has xml data that looks like this:

    < getViewResponse >

    < getViewResult >

    < DocumentElement >

    < ColumnChart >

    < month >

    "Dec".

    < NetIncome >

    1000

    < ColumnChart >

    etc.

    etc.

    the following lines in actionscript work perfectly for the table:

    resultxml = event.result.getViewResult.DocumentElement.ColumnChart as XMLList

    chart data provider

    _chartDP = new XMLListCollection (resultxml);

    The last argument of Colum graphic in DocumentElement.ColumnChart will change. I want to make this variable instead.

    I tried DocumentElement +'. ' + this. [ColumnChart] but I get an error telling me that the property does not exist.

    The following almost works:

    event.result.getViewWithTitlesResult.DocumentElement. *.

    but my card has a series of additional data empty.

    How can I adjust the latter to a variable?

    If the data that currently say you XMLList has a single point, just cast to XML with XML (myXMLLIST) or "myXMLLIST in Xml format.

    If this post answers your question or assistance, please mark it as such.

  • Date format changes in the variable of presentation

    Hello
    I have a problem with the date stored in the variable of presentation.

    I have simple guest with the calendar control (default value date is set to session or deposit to the current date variable). Selected date is stored in the variable of presentation PP_DATE.
    I have a simple report with the title to view the contents of the variable PP_DATE.

    And now the problem.

    When I navigate to the page of dashboard with this report, I will get date of variable PP_DATE in a format (there are difference when I use the variable session or repository). After that I have will push the Start button, I get a different date format of variable PP_DATE.

    Screenshots are stored and described in this PDF file: [PDF with screenshots: https://docs.google.com/uc?export=download & id = 0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]

    There is difference between session variable and repository. When I use the reference variable I'll get "TIMESTAMP."... "the variable PP_DATE, which is the default initialization in variable Repository Manager. I tried to remove the boot by default, but I automatically added after saving changes.
    What is the default value of crimped guest of session variable, I get another date variable PP_DATE format that refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I changed standard value DATE_TIME_DISPLAY_FORMAT ' yyyy/mm/dd hh' to "yyyy-mm-dd hh:mi:ss.mss" because I am reading data from excel, where dates are stored in the format MSSQL. But this isn't the reason for my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.

    The result of this strange behavior is that I get errors when I do some calculations (e.g. TimeStampDiff) to the variable PP_DATE. I get the error when I am accessing the dashboard page. Everything is ok after that I will push the Start button.

    You have some tips?

    Thank you

    Kishore Guggilla wrote:

    But I need sometimes current day default value in the command prompt, sometimes first day of the month etc...

    How do you manage that using variables to repository then?

    I have a block of initialization to initialize a few variables to repository.
    Initialization block a 1 day refresh interval.

    Select trunc (sysdate, 'mm'),
    LAST_DAY (trunc (sysdate, 'MM')),
    trunc (sysdate, 'DD'),
    trunc (sysdate, 'YYYY'),
    TO_DATE (' 31,12' | to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'YYYY')),
    TO_NUMBER (to_char (sysdate, 'MM')),
    TO_NUMBER (to_char (sysdate, 'DD')),
    trunc (ADD_MONTHS (sysdate-1), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-1))),
    trunc (ADD_MONTHS (sysdate-2), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate-2))),
    trunc (ADD_MONTHS (sysdate,-3), 'MM'),
    trunc (LAST_DAY (ADD_MONTHS (sysdate,-3)))
    of the double

  • $global: variable defaultVIServer gets replaced by data warehouses in PowerCLI 6.0 Release 2

    I recently noticed a strange behavior with the variables global:defaultVIServer(s) of $.

    The content has been change in the middle of my script. especially after sub $global: defaultVIServer.Name

    10.10.10.10 for 10.10.10.10@443

    For some reason any port number was getting stuck at the end of the name field, which failed in the cmdlet Test-connection (ping).

    After some research, I went down to my use of the global variable of VMware, vmstores

    The following line replaces $global: defaultVIServer

    $dsList = (dir-path vmstores :)

    Code snippet

    to connect-VIServer $vctIP

    Global $: defaultVIServer | FL

    $dsList = (dir-path vmstores :)

    Global $: defaultVIServer | FL

    $dsList | FL


    You can see that $global: defaultVIServer gets replaced by the data of $dsList after the dir command

    Screenshots are attached.


    At least, I have to unplug my server and reconnect to solve this problem.


    Is there a better way to get the list of warehouses of data (and their paths) with PowerCLI 6.0?

    Maureen

    I only call this command in one place in my scripts, so I tested for a '@' char in the $global: variable DefaultViServer after this call and if I find it then I disconnect and reconnect to my servers.  This version fixes the global variable, which I use in other places in my scripts.

    I didn't change my scripts having to use the other variable, $global: DefaultVIServer.ServiceUri.Host,.

    because it would have been a little more difficult.

    In addition, when the bug fix is implemented, I won't change my scripts.

    Extracted from:

    foreach ($server in $global: DefaultViServers)

    {

    # check if @ tank is in the name; i.e. @port_number

    If ($server. Name - match ' @')

    {

    # split the name IP address and port number

    $serverNameList = $server. Name.Split('@')

    Disconnect $serverNameList VIServer [0]

    sleep - 1 seconds

    SE $serverNameList connect-VIServer [0]

    }

    }

  • How to create a constant variable (or presentation variable) within the application

    Hi I have a guest with from_month and to_month (both I declared as a variable presentation)
    I need from_month operations to be registered as a so-called presentation from_data and use it for further processing.

    I tried the below a
    created a faster with column function as "filter using from_month operations" and saved as presentation from_data variable.
    but I don't know how to hide the second guest of dashboard.
    Help, please.

    Hello

    Try like this. It is a working solution.

    in your report, add a field with the formula below. Remember that you must month_id not month_name i.e. a no. must be transmitted. This will give you the value you have selected in your guest in all lines.
    C.V. (case when Calendar_Month = @{Month_ID} {201212} then end tot_txn)

    during your use of variance as
    tot_txn - resume (case when Calendar_Month = @{Month_ID} {201201} then end tot_txn) / tot_txn

    create a filter like month_id > = @{Month_ID} {201201}

Maybe you are looking for