OBIEE answers Date function

Hello

I am executing the statement in obiee answers I get error how giv null condition then:

BOX WHEN "Work Order Details. "" WO start date "= ' 01/01/1900 12:00:00 AM' THEN ' ' to ANOTHER 'Work Order Details. "" WO start date "END

Error:
[[nQSError: 10058] a general error has occurred.] [nQSError: 22027] Union of incompatible types. (HY000)
SQL issued: SELECT "branch point. "" IB BranchPlant Number ', 'branch point. "" IB Item Description ', 'branch point. "" IB article number ', 'branch point. "' Storage Type Code IB ', 'branch point. «"" IB Jersey Type Desc ", «work order Details»» WO Doc Type', 'work Order Details '. "" DESCRIPTION of TYPE METRIC WO ","work Order Details. "" WO TYPE METRIC ","work Order Details. "" Number of WO ","work Order Details. "" WO Qty ordered', 'Work Order Details' "." " Start date of WO","Work Order Details". "" WO status code ","work Order Details. "" WO Transaction date ', CASE WHEN "Work Order Details. "" WO start date "= ' 01/01/1900 12:00:00 AM' THEN 'null' ELSE 'work Order Details. "" WO start date "end"order RT KNIT.
Kind regards
Mohan

Hello

Try this...

BOX WHEN "Work Order Details. "" WO start date "=" 01/01/1900 12:00:00 AM' NULL THEN ANOTHER 'work Order Details' "." " WO start date"END

or

BOX WHEN "Work Order Details. "" WO start date "=" 01/01/1900 12:00:00 AM' THEN ' ' ELSE cast ("work Order Details" "." ")" (END of WO Start Date' as char)

Tags: Business Intelligence

Similar Questions

  • date function trunc works not properly

    Hello

    Another quick question if people don't bother me. Bit confused as to the date function trunc. I am following the review of databases sql guide and using their examples:

    Select trunc (to_date (June 2, 2009 13:00 ',' dd-mon-yyyy hh24 ')) day of double;

    This returns June 2, as it should be, because, as far as I know, spreading the default variable is the precision to 'day '. but when I explicitly add the variable 'day', as the guide has done with 'week', 'month' and 'year' in the following examples (so I guess that this format is correct instead of DD/month/yyyy), something is wrong:

    Select trunc (to_date (June 2, 2009 13:00 ',' JJ-me-YYYY 'HH24'), 'day') day of double;

    Returns May 31. which is incorrect.

    However replacing 'day' with 'dd' provides the right answer to the 2nd again.

    This isn't a major problem, it just bothers me that the guide (still) seems to be mistaken, something which is becoming a trend in their examples. altogether, I would like to know why this happens, because it will improve my understanding of sql in general - there may be some kind of defect to allow the correct use of the variable 'day' I am dominant, and that the guide did not.

    BTW, I work in sqlplus - although the developer has some weird results too.

    Thank you very much

    Nick

    Hi, Nick.

    967660 wrote:
    ... However to replace 'day' with 'dd' provides the right answer to the 2nd again.

    Right. Think "DD" as being the default 2 argument, not 'DAY '.

    TRUNC (dt, 'DAY')
    

    actually returns the start of the week that contains the dt, where NLS_TERRITORY determines when the week begins.

    If you find this confusing, you have plenty of company.

  • Limitation of OBIEE answers

    Hello

    I have Oracle Business Intelligence 10.1.3.4.1 and I find the problem as in point 3. (http://obiee-blog.info/answers/some-obiee-answers-limitations/).
    "Unable to display the start date and the end date in the report based on the operator between, because with this operator, you cannot define a variable presentation. In this case, it between Quick Date does not work properly and is a known bug in OBIEE answers. »

    This problem is resolved in any version of obiee? You know a patch which solution?

    Kind regards
    Luko

    I don't have that you're talking about what bug?

    anyway have you tried that... where you can assign variables of presentation for the date between... (bypass)

    http://obiee101.blogspot.com/2009/03/OBIEE-between-dates-prompt.html
    Now you can display those values in the story...

  • OBIEE answers - excluding lines without affecting the overall totals

    Is there a way to exclude lines after grouping in the report to OBIEE answers but without affecting the total general?

    Example:

    Product group real Plan

    --------------------------------------------------

    Furniture 50 100

    200 100 devices

    Tehnology 300 0

    ------------------------------------------------------

    400 150 total general

    Lets say we want to remove the display since no sales technology was made, but we want to let the expected value.

    Table should look like:

    Product group real Plan

    --------------------------------------------------

    Furniture 50 100

    200 100 devices

    ------------------------------------------------------

    400 150 total general

    When you use the steps in selection, total general will be modified (reduced to 200)

    Is it possible to exclude from the ranks (Group) of the analysis, but to keep its values in the grand total?

    If your "total" is produced by OBIEE when allow you it in a table view or rotate view not really.

    Look at this static total without affecting the filters

    He asked exactly the same (and some possible solutions are stationed there).

  • Field is in DB/table alias, but I get error ORA904 use in OBIEE answers

    Hello, I am very new to develop tools for RPD and OBIEE, so I'm struggling with something that I thought I did it correctly. I've added a new field in a database table and it can query the database. I've added it to the table of the RPD physical layer and I checked that there is now also in a the table alias. The field of physical table alias is used as the source for a logical column in the presentation layer. Everything looks good in the RPD. But when I try to pull up in a query in OBIEE answers I get a 904 error indicating that the column does not exist. I bounced, servers, deleted cookies and hide them, but nothing helps: I still get the error.

    What step I have missed?

    Thanks in advance!

    Rich

    Hi rich,

    In the physical layer, right-click on the new column that you added and do an update rank of County. If its success, then the column has been imported successfully to the RPD. And we might have to watch layers MDB and presentation, to the question.

    But above all, the error you mentioned occurs when the column is not correctly defined in the physical layer. If my guess is that the number of rows to update will fail. In this case check:
    1. the exact spelling of the column name. All traits underscores are correctly placed and there is no space attack / leak?
    2. the connection pool that you use in the physical layer, is that it points to the same PB in which the new column was actually added.

    Thank you
    Gerard

  • How to open the OBIEE answers

    Hi I just installed OBIEE 10 g. I am able to open the administration tool and connect to oracle. How can I open the answers in a browser.

    Thanks in adv

    Hello

    Try it below
    -After installation you could got the Presentation Services option in the start menu. Give credentials of connection and after cutting, you can see the answers on the upper side right.
    -Type your system instead of the local host ip address
    http://ipaddress:9704 / Analytics
    and also in services.msc in run prompt--> Check for the oracle server, presentation services, host Scheduler and java as started.

    Consult-
    http://wiki.ITEC.SUNY.edu/download/attachments/4391119/OBIEE+answers+training.PDF?version=1&ModificationDate=1325016554000

    Award points if this helped / answered.

    Concerning
    Young

    Published by: lajmi on June 14, 2012 07:45

  • Possible to add the line to OBIEE answers

    Hello
    I have a dimension D1, F1,

    D1 F1
    A 10
    B 20
    c 30
    When I'm generating a report in fact I get three rows and, I have to get 4th place as d = b + c output as follows,

    D1 F1
    A 10
    B 20
    c 30
    -----------------
    d 50

    is it possible to OBIEE answers?

    Thanks in advance?

    Published by: Maya on January 9, 2012 21:24

    Yes... Pivot of use see point calculated to calculate B + C

  • Sort in OBIEE answers - Desc Nulls last

    I want to sort Desc on a column of answers, but want NULLS last. Where can I put it?

    For example, I can write SQL
    Select * from T1 by c2 Nulls first;
    Nulls last is the default behavior in Oracle SQL

    However, via OBIEE answers, I see when I use DESC Nulls are on top, they melt.
    Where should I put it?

    Hi shyamvaran,

    What is the value of the parameter 'NULL_VALUES_SORT_FIRST' in your NQSConfig.INI file? By default it is off. Which is probably what your seeing i.e. If NULL values are, you sort in descending order, then you expect to see first NULL values.

    If you want that null values finally appears when sorting in descending order, then on the above setting IT and bounce your services. That should take care of you.

    Otherwise, you can do a work around. Create a column in your report. This is the formula the value IFNULL (C2, 'aaaaaaaaaaa'). This way it'll be first in alphabetical order is modified in descending order. Set this descending sort column and then set it to hidden. It must sort your report in the order you want, and it should be hidden from view.

    Good luck and if you found this post useful, please give points!

    Best regards

    -Joe

  • Conversion of OBIEE answers / interactive dashboards in .pdf or .xls files

    Hi all;
    I'm a freshie here as well as in the Business Intelligence industry. Currently, no prior knowledge of this tool, I work in the OBIEE answer.

    Is it possible for us to convert .pdf or .xls OBIEE response report/dashboard files? Other tools such as Cognos and Business Object have their own utilities to convert the tool reports in these formats. I believe OBIEE also are essential, but so far I couldn't find it.

    You can download reports on the dashboard to PDF format and HTML of:

    Printable version click the icon at the bottom left and PDF or HTML.

    You can download individual reports on dashboard:

    Page Options ==> change ==> report ==> report links properties. Mark the options you want to see the report below.

  • non-existent display data through the union in obiee answers

    Hi all

    Someone has tried to use the fake fact table to display non-existent data in the MDB at layer where there is hierarchy of dimension tables? If I remove the hierarchy of dimension tables, then I can display all records using the column of the fake facts table which has Cartesian joins with dimensions. Is there a work around for this issue?
    Thank you

    Sushil

    Published by: 872073 on May 13, 2013 10:25

    Try these
    http://bidirect.blogspot.com/2012/02/data-densification-in-OBIEE-1011g.html
    http://gerardnico.com/wiki/dat/OBIEE/densification_repository

    Published by: Srini FATIMA May 13, 2013 13:00

  • The function is available in OBIEE answers?

    Hi all


    I have a requirement in my project as I need a function in the responses of OBIEE who must check the numeric column or a string column. If it is a numeric column, it must return the value 1, and if it is a string column, it must return the value 0. Is this possible? Please shed some light on this question...

    Thanks and greetings
    Stephanie

    It's worth a, b, c, d, e values inside or not?

  • OBIEE-casting date of char in the case functions

    Hi all

    I'm trying to implement this scenario in the Oracle replies:

    Decode ("dim1".start_date, NULL, 'NA', "dim1".start_date)

    I wrote something like this in the responses:

    CASE WHEN 'Dim1'.start_date IS NULL THEN 'NA"ELSE"Dim1'.start_date END

    I get the error here as "NA" is of type string. If I do this:

    WHEN "Dim1'.start_date IS NULL THEN perform a CAST of CASE ("NA"AS the DATE) ELSE 'Dim1'.start_date END

    I works great... but what a way to encode this scenario? Help, please

    Kind regards
    Neha

    Try this
    CASE WHEN "Dim1".start_date ELSE IS NULL THEN "NA" cast ("Dim1".start_date as char) END

    It's now in char type

    To keep date type

    CASE WHEN 'Dim1'.start_date is NULL THEN 1 January 1970 "ELSE"Dim1'.start_date END
    or
    CASE WHEN .start_date IS NULL THEN timestampadd "Dim1' (sql_tsi_year,-40, current_date) ELSE 'Dim1'.start_date END

    If brand aid

    Published by: Srini VIEREN on March 25, 2013 09:46

  • Problem in updating the data in the OBIEE answers?

    Hello

    My report does not show the latest data in the database. I tried to restart my Server BI and Presentation server also. But it still shows the old data only. But in the Admin tool im able to view the most recent data. What could be the reason for this? The button update given at the bottom of the updating of the report used data?

    Thank you
    Knani

    You use cache and you toggle it in the NQSConfig.ini?

    If the table is cacheable (table properties) in the physical layer, you can toggle it by table.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • The date function does not

    Hello
    I tried for hours to solve this problem.
    I can´t convert a date in year, month or day etc...



    Select sysdate, TO_DATE (sysdate, 'YYYY') of the double
    ORA-01830: date format picture ends before converting all of the input string
    01830 00000 - "date format picture ends before converting all of the input string.




    Select sysdate, TO_DATE (sysdate, 'MM') of the double
    ORA-01843: not one month valid
    01843 00000 - "not one month valid."


    Select sysdate, TO_DATE (sysdate, 'DD') of the double
    ORA-01830: date format picture ends before converting all of the input string
    01830 00000 - "date format picture ends before converting all of the input string.

    Please, if this is not the right category to post in just answer me the right one.
    Thank you

    Hello

    user12981132 wrote:
    OK, just to clarify. I am not the ADMINISTRATOR, nor have I not privileges for any manipulation of data. I came to a new job where my job is to analyze the data, I have a few sql experience of my old job where I don't have this kind of problems, because they stored a date as a date to lie. But now I have this problem.

    I understand that since they stored the date as a varchar I can´t all dates? because if I don't want to count the difference in months or days difference of sysdate for example he wouln´t works ¿right?

    You cannot use built-in DATE manipulation functions. or features such as arithmetic, on the channels of the dates.
    You can use TO_DATE to convert strings to DATEs in questions where you need to do things like calculate the difference in months. For example:

    SELECT     customer_id
    ,     order_date
    ,     MONTHS_BETWEEN ( SYSDATE
                     , TO_DATE ( order_date
                                 , 'YYYYMMDD'
                         )
                     )  AS months_ago
    FROM    orders
    ;
    

    Obviously, it will be slow, and you will get errors of execution if one of the chains do not represent valid dates.

  • OBIEE answers not results.

    Hi experts,

    I recently installed OBIEE 11.1.1.6.0. I imported the repository I had 11.1.1.5 which was working fine until now.
    In the administration tool, I can query my data and to update the lines, I can connect with the same credentials as the pool of connections without problems in SQLPLUS.
    Privileges of the RESOURCE and CONNECT users.
    My user weblogic as all privileges and was granted to read/write in my industry.
    I set the environment variables, modified the instancesconfig.xml and tried all the things I could have found the OTN but BI answers keeps giving me this ERROR

    View display error

    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 occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle error code: 1017, message: ORA-01017: name of user and password invalid. connection refused the OIC OCISessionBegin call. [nQSError: 17014] Cannot connect to the Oracle database. (HY000)
    Publ. SQL: SELECT s_0 0, "SAP_AVIS". «Fact SAP OPINION ".» "" S_1 OPINION ' OF 'SAP_AVIS' FETCH FIRST 65001 LINES ONLY


    Please help, I'm desperate.

    The problem was my pools of connections.
    Since I had two pools of connections named A and B, answers used only the first (A) and I tried to access the data that belongs to connection B. I removed the connector and everything worked like a charm.

Maybe you are looking for

  • Shuffle memory

    The summary on my 2 GB Shuffle page 1.1 GB of "other".  I can't access it to see what is there.  I tried to do a reset to factory settings, but I'm not allowed because another program is using files on the Shuffle.  Can someone give an overview?  I'm

  • VLOOKUP gives incorrect/unexpected results

    HI guys I used to think I had this spreadsheet thing down pat, but I find myself place after midnight with a VLOOKUP problem struggle! I really hope that you can show me the error of my ways... I'm a convert from Excel so I can be taken in a mind con

  • HP Pavilion ZD7000 hard drive expandable to SSD? Compatible?

    I'm looking to upgrade a HP Pavilion ZD7000 (P/N: DN730AV) for Windows 7 Home Premium, including equipment upgrades memory to 2 GB of storage, and I would add an SSD. Two questions: Q: a solid state drive is not compatible to this brand and model of

  • Electric trigger DAMA IQ & check for new records to collect an infinite number of records

    Hi all I have some difficulties with the help of the trigger edge power IQ & questioning the DAMA if it has samples/records ready for pick up.  I have reviewed the documentation on the support to the screw and the examples provided with the driver of

  • Cannot run Real Player or download games from Vista updates this weekend

    Since set windows to update this weeked - 3 automatic updates - now Real Player will not work and I can't download games.  Any suggestions?