to use the NOW() function with operator (such as NOW () - 120) 11.1.1.6.11 or 11.1.1.7.1

Hi all

I want to use the function NOW with a different operator in obiee11.1.1.6.11 or 11.1.1.7.1

but every time I have a creating a filter as

TRAN_DATE is equal to NOW()-120, we become "an arithmetic operation is being performed on a non-digital type.»

11.1.16.11 and 11.1.1.7.1

Hare TRAN_DATE is in RPD datetime data type

Can someone tell me how to replace the error and make the report run and return the results

Do now () - 120 is a very simplistic way to look at it because it is highly ambiguous. IE: NOW less 120 "what?" Minutes? Seconds? Years? Petroleum products?

Accuracy is the key. Now() gives a timestamp (a real timestamp DATA TYPE object!), so I guess you mean days.

Timestamp data types are changed (projected through time) using the TIMESTAMPADD function, which in your case would by this formula:

TIMESTAMPADD (SQL_TSI_DAY,-120, NOW()))

Tags: Business Intelligence

Similar Questions

  • How to use the TRUNC function with dates in the expression builder in OBIEE.

    Hello
    How to use the TRUNC function with dates in the expression builder in OBIEE.
    TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.


    Thanks in advance

    Use it instead:
    TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE)

  • How to use the Substring function with Case statement.

    Hi all

    I have a requirement where I have to use the substring function on the ground for the report criteria.
    FOR EXAMPLE
    I branch domain name where I have all the information of the branch names, now some of the branch names are too large with an extension after the name.
    now I want substing it, but the length of characters varies for each branch.
    so is it possible where we use a box where we can define if the character of name plug exceed a value then he substing with this length.

    Try something like this:

    LENGTH WHEN CARTER (tablename. Branch_Name) > n THEN SUBSTRING (...) Of ANOTHER tablename. Branch_Name END

    where n is the number of characters that you want to start the break.

  • Using the Capture function with a Capture card

    I was wondering why I can't be the first to admit my capture card when I try to use the capture feature.

    Ah, so you're out of luck. First only capture via firewire.

    If your device has usb and then copy the contents of memory or hard disk, and then import in first.

  • PS elements 11 cannot use the text function. Error message could not initialize the text.

    When I try to use the text function the letters do not appear. Text feature appears frozen. Get the error message - unable to initialize the text.

    Recently PSE11 uninstalled and reinstalled. Downloaded 2 Google font. Was able to use the text function with Google fonts with no problems. Two days later, attempted to work with the text function and the typed letters appear on the screen/layer. Tried to add the text with fonts pre-installed PS - still once, no text appeared. Impossible to set up a text box. How can I fix it? Thank you

    Suggest that you reset the text tool, that only he can fix.

    I believe in PSEv.11, there is a small arrow, top of the page to the left on the tool options bar. Click on this.

    If the arrow is not there, look in the options bar to the text tool, on the right, for a box with lines inside. Adobe changed the location and icon in later versions of the program.

  • After mac os update and software reinstall now unable to use the scan function

    Hello

    I never thought I had to post on one of them, but it really made me. I have a Macbook and stupidly thought that I would update to the mavericks os 10.9 the other day.

    I continued to be able to print once the update, but it was impossible to use the scan function. So, I removed the printer and the drivers and downloaded the new drivers which would have been compatible with os x 10.9. When I went to reinstall the printer, he couldn't locate it on the list of "available printers" - I connect using wi - fi connection at home.

    The only way I could connect the printer was installed manually by entering the ip address. It was found and I print now, so I don't think there is nothing wrong with the connectivity, but a warning when you do this that says scan function does not work, and of course the scan option is simply not there.

    Thought I have would bypass this using analysis of e-mail on the printer. It seemed to work fine, but when I received the email there was no attachment.

    My husband is now scanning these documents to his computer (a pc) and emailing for me - is not ideal.

    Any ideas on how I can fix this?

    Thank you

    Annie

    Hi Annie,.

    Here is a picture of a printer, USB cable,

    Now that I know what printer we work with, I have another idea. On the front screen of the printer please press the wireless icon. There are 4 icons in the upper part, the wireless is the second from the left. In the Menu arrow until settings wireless advanced. I would like to disable IPV6, arrow down to IPV6, and then select OFF.

    I saw the IPV6 interferes with the Hello Protocol several times, often time turning off this feature will solve the problem and allow the Mac to see the printer on the network. Once IPV6 is disabled try to add the printer again.

    Please let me know if this solves the problem, I am eager to see this solved and you get printing and scanning of your own computer.

  • I use the random function and he know instructions 'case' must end with a ':' but it is!

    I use the random function and he know instructions 'case' must end with a ':' but it is! I put

    case 10000 timer += 2; popupName._visible = true; :

    then I put

    case of 10000 {timer += 2; popupName._visible = true ;}:}

    but he still know it.

    What I am doing wrong?

    First of all, whenever you have more than three similar lines, you should probably refactor something.  Especially when you have 10,000 lines. This should have sounded the alarm, but I guess you are new to this.

    Second, when you have such a long code, paste everything here. Please, I beg you. It's a pain to navigate the thread.

    And here's what I * think * you really want:

    If (random (10001) == 10000) {}

    timer += 2;

    popupName._visible = true;

    }

    It simply means: "take a random number between 0 and 10001 (exclusive). If this number is 10,000, do something. If not, ignore this code block. »

  • the adobe reader of adobe purchased but installed standard first pro. now, the 'pro' trial has expired and I can't use the "standard" functions

    I bought the adobe reader from adobe but installed standard first pro. now, the 'pro' trial has expired and I can't use the "standard" functions How can I solve this in order to use Adobe Standard - one that I bought?

    Hi Jodie,

    There is no standard to pro versions of Adobe Reader.

    You have downloaded the Acrobat version which is paid instead of Adobe Reader software.

    As the trial has expired, then you won't be able to use it unless you have purchased the product.

    However, you can download Adobe Reader for free using this link Adobe Acrobat Reader DC install for all versions.

    Kind regards

    Nicos

  • How to use the NVL function to a parameter with comma delimited values

    Gurus,

    It is confusing to me.  I am trying to use the NVL function, but the setting that I'm passing in my cursor contains multiple values with commas.  The NVL function is confused when analyzing the values.

    'Where' cursor clause...

    and nvl (sn.c_attribute1,'x@#$%') in nvl (p_desig,'x@#$%'( )

    translated parameter values...

    and nvl (sn.c_attribute1,'x@#$%') in nvl ('SPRT''GOOD' 'BAD' 'x@#$%') -NVL does not parse the value correctly

    Any idea on how to get NVL recognize 'x@#$%' , if p_desig is null?

    Thank you

    Scott

    HI, Scott.

    Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.

    Also post the results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

    My best guess, based on what you posted bone is present, that your problem is discussed in the following:

    http://tkyte.blogspot.com/2006/06/varying-in-lists.html

    http://www.Oracle-base.com/articles/Misc/DynamicInLists.php

  • Using the Replace function

    Hi all

    I have a column called supplements and it has values such as

    1. the payment is > 90 days
    2. the payment is < = 10 days

    Now, I want to use the Replace function to replace > and < to "greaterthan".
    and 'lessthan' RESP, but the problem is that, in the function replace, I can give that one argument. So what I do is in the region of fx for the column

    Replace (supplements,' > ',' greaterthan')

    This replaces the > sign very well with string greaterthan and show me values such as

    1. the payment is greaterthan 90 days
    2. the payment is < = 10 days

    but I want to replace < "lessthen" also, how can I do? Can I undergo two replace statements? How can replace several string or special characters for a single column?

    Help, please.

    Thank you
    Ronny

    Try this
    CASE
    WHEN supplements LIKE ' % > %' THEN Replace(latepayment,'>','greaterthan')
    WHEN supplements LIKE ' %<=%' then=""><>
    END

  • How can I use the BCGTransform function to treat the 16-bit Image?

    Hi ~

    I use LabWindowsCVI8.5 and NI Vision to make the treatment of the Image. When I read the "IMAQ Vision for LabWindowsCVI Reference Manual", I found that the imaqBCGTransform function only supports 8-bit Image, while I do the BCG to turn on 16-bit image. Are there solutions to use the BCGTransform function to deal with the 16-bit Image? Or any other feature that could make the correction Gamma, contrast and brightness on the 16-bit Image?

    Thank you very much!

    because imaqBCGTransform is implemented as a lookup table, we can understand why it is limited to 8-bit images.

    Now let's take a look at the definition of each of this mandate (from the NI Vision Concepts documentation):

    -brightness: a constant added to the components red, green, and blue pixel of color over color, decoding of the process;

    -contrast: a constant multiplication factor applied to the components of the luma and chroma of a pixel of color in color to decoding process.

    -gamma correction: expand high gray-level information in an image while removing information of low level of gray.  (the chapter on lookup tables gives some examples of corrections gamma)

    now that you understand that this transformation is a simple mathematical function, simply calculate the correction for each pixel on your 16-bit images.

    I know not the exact formula used by the imaqBCGTransform function, but you should be able to approach by performing some tests on images 8 bits with the original function... or you can make your own formula... or find one on the net... or you can ask someone at home OR you give the formula...

  • How to copy an image that is in format .pdf using the paint function paste in Word?

    I would like to copy a table that is in a non-protected PDF document using the paint function in accessories to paste it in a Word document that I'm working on. Please help as soon as POSSIBLE.

    Hello, Edward Namalima,.

    1. first open the pdf page you want to copy.

    2. when the page is displayed on your screen, press prtscrn on your keyboard.

    3. a copy of the screen has now sent in the windows clipboard.

    4. now open Paint.

    5. on the Paint toolbar, click on edit and then click on paste. The image will now be pasted in a Paint window. You may need to accept a dialog resize if the image is larger than the current document.

    6. now, from the toolbar to the left of your screen, click on the Selection (the oblong dotted box) tool. With the selection tool, select the entire surface of the table you want to copy. Once selected, click on modifier change again, then select Copy.

    7. now, open Microsoft Word.

    8. then place the cursor where you want the table to set, and then press the CTRL and V together on your keyboard.

    9. the image of the table should now be pasted into your Word document.

    Alternatively, you can use the cutting tool (click on the Start button and type snipping tool in the search field). Select the table you want in the pdf page using the cutting tool and then open word and paste the table in word.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk |  vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • How to connect the parallel test using the logarithmic function Teststand database result

    Hello

    How can I connect a test result of 4 EHR tested in parallel using the logarithmic function Teststand database

    I use Labview 2013, 2013 Teststand and sequential model.

    The test is performed using a single digital card (SMU-6556). The FSD 4 is connected to the port of the digital map and is tested in parallel.

    Currently at the end of the test, I would have a report with all the measures, but I need 4 reports (1 report / dut)

    TKS


  • using the DAQmx functions without installation

    Good evening everyone,

    I have a problem of instrumentation related to the DAQmx. I would like to communicate with an instrument using NIDAQmx tasks. I use a system of environment program: visual studio 2003. In the end, I want to produce a dll. This dll, I want to put it on another computer. The question is this. If I want to run the dll by calling, will I OR-DAQ on another computer or software to use the dll?

    When I tried to produce an exe with a VI, I need Labview RunTime to run the exe. If I want to run the dll, I'll be able to use the only dll on the computer, without installation of NIDAQ. Can I use the tasks only with the dll (because I need time for the .exe, should I Run Time also). ?

    I'm sorry, there is not clear. But I'm available for you more explain the problem.

    Best regards.

    Thank you.

    Gautier

    Since you have installed on your computer of LabVIEW, the runtime is not required for the execution of LabVIEW executable files.

    But if you decide to use your executable LabVIEW on another computer, you need to install the LabVIEW Run-Time on that. You can also create an installer that will contain your program components and the clavicles (such as LabVIEW Run-Time and required drivers). Avoid building an installer to download and install the components separately.

    For more information about the installer, you can look in the help of LabVIEW (construction of a Setup (Windows)) or Core 2 training courses.

    If your program uses the driver NOR-488. 2, you need to install on your computer.

    LabVIEW Run-Time installation is required only if your program that contains calls to DLL is an executable of LabVIEW.

    Kind regards

Maybe you are looking for

  • How to install a DVD writer 2nd on Compaq presario SR5613WM

    Hi, just bought a Compaq Presario SR5613WM I want to finish installing a LG model # GSA - H55L Super Multi DVD Rewriter (20 X) 8.5 GB is supposed to be compadable. I installed it in the Bay, but other plug in the power cord, I don't think a PATA cabl

  • Controller and SM bus controller network driver is missing

    Hello Help me, please, find the driver for network controller and SM bus controller. My laptop is Hp pavilion 1305sx g6. The hardware for network controller ID is: PCI\VEN_14E4 & DEV_4727 & SUBSYS_1795103C & REV_01PCI\VEN_14E4 & DEV_4727 & SUBSYS_179

  • HP Officejet Pro L7590 problems with new software

    Hello I have a HP all-in-one OfficeJet Pro L7590.  I had to move the printer on another computer that is running Windows 7. When I install and try to print to the printer does not act as he did with the software that was on the old computer XP. What

  • My fixed site (not), I always see the full screen.

    I can't see full screen.  EXAMPLE: On Marlboro.com I can't see bottom of page on Facebook, I see not the full right side of chat while playing Farkle, or in the same game see the Bank or bonus tiles options at the bottom.  Thank you

  • Power Alienware 15 R2 delayed on

    Hi all I have a problem with my brand new R2 of Alienware, when I arrived, he ran ok for the first day and then just stopped turning the next day... so they gave me a replacement :) and told me that I had a mother FRY... the problem is - I think the