Function should be assessed on a case where

Hello
I want to use function should be evaluated in the case when statement. My req's

If report_date = 8/31 and sales_qty > 30... Show 1

If report_date = 7/15 and sales_qty > 39... show 2...


in the section formula that I use
 case WHEN "Fact- table"."Report  Date"=evaluate('to_date(%1%2)',"Column_name",'DD/MM
/YYYY')) AND "Fact-table"."Sales_qty">30 THEN '1'  ELSE '0' END 
Report date data type is only the date... Sound giving a date format error is not supported

Please help me!

Angélique,

can you singular an example of the current format of the object "report month".

Try also once in sql as the chosen date format fits... he thinks that the problem is located there. Probably, if it's just the month, you will need to use a format such as "MM/YYYY"... so, if you have an example of the object...

KR,
A

Tags: Business Intelligence

Similar Questions

  • Function should be assessed at the Date

    Hi all

    We have included a condition in where clause of a logical table for a date field.

    Evaluate ("to_date (%1, %2)', 'abcd'. » ». "" 123 ". "" "" Dim_SALES '. "" CREATED_DATE', 'DD-MON-YY') > 1 January 15 '

    Now, we have changed the data type of this timestamp field and the function above does not work.

    Can you please help me make this work has a timestamp.

    Thank you

    found the solution... Cast (such as date) worked for the timestamp... Thank you

  • Need all the data in the case where if I pass null

    Oracle 10 g version

    Hi gurus

    I appreciate if someone help out me.

    Examples of data

    as with a reference
    (
    Select 'AAA' crt_file, 'A1' scode of union double all the
    Select 'AAA' crt_file, 'A2' from dual union all
    Select "AAA" crt_file, null of union double all the
    Select 'BBB' crt_file, 'A1' scode of union double all the
    Select 'BBB' crt_file, 'A2' from dual union all
    Select 'BBB' crt_file, the double null

    )
    Select * reference
    where crt_file = "AAA".
    and nvl (scode, 'x') = nvl (& s_cd, 'x')
    ;

    Rule result

    I need to extract the result as in & s_cd and it works very well.

    but in case where if I put a value zero in & s_cd my query should return all data related to "AAA", something like below:

    Result if I pass NULL to & s_cd that then it shows all the results

    CRT_FILE, SCODE

    AAA A1

    AAA A2

    AAA

    Concerning

    Mitt

    as with a reference

    (

    Select 'AAA' crt_file, 'A1' scode of union double all the

    Select 'AAA' crt_file, 'A2' from dual union all

    Select "AAA" crt_file, null of union double all the

    Select 'BBB' crt_file, 'A1' scode of union double all the

    Select 'BBB' crt_file, 'A2' from dual union all

    Select 'BBB' crt_file, the double null

    )

    Select * reference

    where crt_file = "AAA".

    and (scode = & s_cd and & s_cd is null)

  • How do the function of table 1 d search case-insensitive for the array of strings

    How do the function of table 1 d search case-insensitive for the array of strings

    Hi Karine,.

    convert the two (table and search for the string) to lowercase before using this feature...

  • My laptop stopped recognizing wireless function. What drop-down list function should I use to get it to recognize wireless again?

    My laptop stopped recognizing wireless function.  What drop-down list function should I use to get it to recognize wireless again?

    Hello

    What is the brand and model of your laptop?

    Follow the suggestions and check out them.

    Method 1

    You can follow the procedure in the article.

    Enable or disable a network adapter

    http://Windows.Microsoft.com/en-us/Windows-Vista/enable-or-disable-a-network-adapter

    Method 2

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    See also:

    Network adapter problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-adapter-problems

  • give meaning to cases where minimum effective_start_date is greater than the current date

    Hi guys, I'm not a developer oracle as such, but I'm trying to get some information from oracle to send to other systems of the company, since we are dealing with oracle HRMS as the master system for employee information.

    In particular, we would like to create people in our training and the security system when they are created in oracle.

    I was told that the oracle per_all_people_f object acts as a slowly changing dimension of type 2, where a person can have several versions, which only is always the current version and the current version can be retrieved using the standard parttern of "date of current between the effective start date and actual end date. So far so good.

    However, I can see there are cases where the minimum 'effective_start_date' is greater than the current date. It is, indeed, equal to their start_date. I guess start_date represents "the first day of work" of the person.

    But this means then there is no "current" information known to people who have not yet really started working for the company again. This seems odd. How can I have someone for whom we have no information "currently correct? I was told that the effective_start_date of the line is automatically set to their "first day of work" date on which the information is entered into the system, IE, the user to enter information doesn't have the ability to say 'this is the current version of the data for that person, who starts at a date in the future. "

    For this reason, I cannot know these new people (who have been entered in oracle, but did not have actually to their first day of work still) training system. But we would obviously get people established in related systems so that they can use all of these systems on their first day of work.

    Have I misunderstood something here? How can there be no correct version for a person at the date and time?

    Hello

    How normally "inform you" the training system on a new person record? If it's a kind of report or an interface, it may be useful changed to examine a number of days in the future, for example + 7

    It is important to understand when you look at an Oracle HRMS instance through enforcement (i.e. the ' front end'), you look at the data on a date date (of the session) - by default, the date is the system date, but it is possible for a user to change this date to be in the future or the past as they see fit. The ability to implement the records in person in the future is a great feature to have, of course, but it must be understood that in this situation, at the date of the day the person's file logically does not exist yet from the point of view of the MFC features. Behind the scenes, however, in the per_all_people_f of the table, the line exist. Similarly, future update of changes to a person (e.g. marital status from Single to married) could be implemented, and the change in status would be visible if the session has been scheduled on a date or after the date of the marriage. As correctly observe you, behind the scenes, the table will hold all historic entries for this person_id with contiguous effective_start_date and effective_end_date beaches.

    Either way, date_start value is not related to as such hiring date; It is actually the value of effective_start_date earlier for the person_id. All changes, regardless of how many or what the effective_start_date is in each case, will always carry this same start_date value. It * may * be identical to the hiring date (certainly the fact that you configure their hire date person records would cause that), but if the person has been created as a postulant effective from 1 September and was then hired has effect from 21 September, column start_date value would be still 1 September. The record of the person would be visible when the current date is on or after this date - the only difference is that they show that an employee until the 21st.

    I hope this helps, but it is possible, that I just confused you more!

    Clive

  • How can I activate Technicon in adobe elements first 13? I can see it running in the Manager of tasks as elementsautoanalyzer13.exe but didn't interrupt the process in the case where he assigned to the program.  There must be a way inside the adobe progra

    How can I activate Technicon in adobe elements first 13? I can see it running in the Manager of tasks as elementsautoanalyzer13.exe but didn't interrupt the process in the case where he assigned to the program.  There must be a way inside the adobe program to turn off because I turned it on by clicking with the right button on an image in the editor of the first, and then when you are prompted, he said he would run in the background and I said okay, now I can't stop it! .  It appears in earlier versions of first items under Edit-> Preferences-> media analysis you could uncheck it to turn it off.  But there is only a media section and in this tab, there is no automatic Analyzer to be seen.  Thanks in advance for any advice

    Rebeccah

    What computer operating system? You are in the first elements 13/13.1 editor preferences or in organizing elements 13/13.1 preferences?

    Where are you looking for in organizing elements 13/13.1 that you do not see Edit Menu/preferences /-media analysis that you do not see the options of AutoAnalzyer.

    Organizing elements 13/13.1 preferences...

    Please point out where you find a command to run AutoAnalzyer in the background in 13/13.1. If I right click a file, I see AutoAnalzyer perform what seems to be a time run command automatic Analyzer of a file.

    Please specify.

    Thank you.

    RTA

  • The checkbox 'filter the content bin' is no longer an option? If this is the case, where can I find it?

    The checkbox 'filter the content bin' is no longer an option? If this is the case, where can I find it?

    The mention 'Content filter Bin' simply refers in the name of the search in question box. You might also occasionally see it called in the "quick search". The search box works the same, albeit much more quickly than in previous versions and it is essentially a search "on-line". In other words, when you type in the box, any project item that matches the text you enter will be filtered in the view and those who do not will be hidden.

    Unlike the previous version of Premiere Pro that you reference in the book, it's that Pr is used to provide a history of searches through the menu drop down. This has been removed because it was part of the slow pace of research and in its place is the search bins feature (it's the button with the folder with the magnifying glass top just to the right of the search box). In the box type a search query, and then create a new bin of research using this button to create a bin in your project that you can view to always see the correspondence of the elements without having to perform the search again. Read more about it here: find assets

  • Problem with the case where the clause

    Hello

    I want to use cases in which clause. I wrote a very simple query to test how it works. However, I always got an error message. Here's what I did.

    Select eid, firstname, lastname from employee where eid = 1 works fine

    Select eid, name, name of the employee

    where

    cases where 1 = 1 then eid = 1

    When 1! = 1 then eid = 2

    end

    I ORA-00905: lack of keyword.

    Did I miss something?

    Thank you

    Jennifer

    Hi, Jennifer.

    Why do you want to use BOX in a WHERE clause?  The wonderful thing about the CASE is that it allows you to do IF-THEN-ELSE logic.  In a SELECT clause, or an ORDER BY clause, this is really useful, but the WHERE clause already allows you to use the IF-THEN-ELSE logic.

    However, if you use the BOX in a WHERE clause, it is as it does nowhere else.  Always BARGAIN instead of a single expression in a SQL data types.  All the clauses THEN (and ELSE, if there is one) must return a single expression, such as the NUMBER.  (There is no BOOLEAN data type in SQL).  So, you can use a CASE statement like this:

    ...

    CASES WHERE

    WHEN 1 = 1 THEN 1

    WHEN 1! = 1 THEN 2

    END = eid

    Here, the CASE expression takes the place of a NUMBER.

    However, if I was not sure if 1 = 1 or not, I would write the condition in this way, without a CASE expression:

    WHERE (1 = 1 AND eid = 1)

    OR (1! = 1 AND eid = 2).

  • function should return the number of rows in a table

    Hello world

    I wrote an entry function is the name of the table and the function should return how many line in the table.
    the table name can change.

    It is possible

    Published by: Balajiraam on March 18, 2011 05:33

    Hello

    Try this

    CREATE OR REPLACE FUNCTION GETCOUNT(TABLE_NAME IN VARCHAR2) RETURN NUMBER
    IS
        TMPCOUNT NUMBER;
        TMPSQL VARCHAR2(1000);
    BEGIN
        TMPSQL := 'SELECT COUNT(*) FROM ' || TABLE_NAME;
        EXECUTE IMMEDIATE TMPSQL INTO TMPCOUNT;
        RETURN TMPCOUNT;
    END;
    

    see you soon

    VT

  • my photos on an external drive. my catalog is also stored there, (in the case where I have to change computers. where are stored my backups to the catalog? (can't find them!

    as noted, my pix is on an external drive (pc), my catalogs are on the same drive. where are my backups being stored i cant seem to find them. If I open the folder lightroom with the name of the catalog on the outside, all I see is a bunch of files labeled 1,2,3, etc. and has, b, c.

    shouldn't there be a folder labeled bacvkups?

    If you have enabled the option to make catalog backups (you?) then your backups are in any case, indicate when the backup dialog box is displayed when you close Lightroom. If you enable the option to make backups of catalog, then you have not all backups.

    Yoou can use the search function of your operating system to find the files on all hard disks that have a name that ends with. LRCAT to find all possible backups.

    Note: the functionality of catalog in Lightroom backup makes a Backup of your file to catalog only. He doesn't have backups of your photos, you have to do it through other methods.

    Note: backups SHOULD go on a different drive than the originals; you make a terrible mistake if you put them on the same disk as the original.

  • TYPE A USER ID NUMBER BRINGS UP AN ID USER STORED WHICH SHOULD BE DELETED... WHERE IS STORED THIS USERID... IMPOSSIBLE TO FIND IN THE FILE OF SAVED PASSWORDS

    TYPE A USER ID NUMBER BRINGS UP A STORED USER ID AND THE PASSWORD COMBINED IN A SINGLE STATEMENT.
    IT SHOULD BE DELETED.
    IMPOSSIBLE TO FIND ALL REFERENCES TO THE WEBSITE IN THE FILE OF SAVED PASSWORDS.
    WHERE ARE STORED THE DATA COMBINED ID AND PASSWORD, AND HOW IT CAN BE CLEAR.
    THE WEB SITE IS NOT SAVE INFORMATION.

    It would be built-in to Firefox form fill.
    Click the field, and enter a character. If something comes along,
    highlight the fact that by using the arrow keys. Then press DELETE (Mac = delete the shift).
    Repeat if necessary.

  • 'undefined' is not a function (cordova.exec assessment)

    Hello

    I have this error ['undefined' is not a function (assessment cordova.exec)] when I invoke barcodes

    window.plugins.barcodeScanner.scan (function (result) {}

    });

    in q10 (BB10) mobile blackberry but there is no question on Blackberry (Blackberry toruch 9830) smartphones.

    Please help solve this problem.

    Thank you

    Balakrishna.P

    It seems a bit of lag in versions.

    For example, Cordova did not support officially BlackBerry 10 up to 3.1.0.

    In addition, Cordova and WebWorks are two platforms of separate packaging. And SDK WebWorks 1.0.4.11 is not * Cordova based. For Cordova features, you must use 2.1.0.13 or later:
    https://developer.BlackBerry.com/HTML5/download/

    I highly recommend reading the above documentation on getting started with WebWorks. Without the appropriate version of the software, I expect some pieces of code in order to continue to fail.

  • What is the JS/jQuery function should I call to sort a column in an IR?

    Hi guys,.

    Given that this no longer works in APEX 5.0: how you trigger sort column of the item page APEX interactive report?

    I'm looking for the function that is called when you press the button to sort on a column to place the call in a dynamic Action.

    What function is called and how when you press the button in the image below?

    Thank you

    Digital

    I don't know why you (or someone else) so go out of your way to disassemble the main features of the IR. Literally everything you have (or had) to do was to tell users how to use the controls that is given to them. What is the punishment by clicking on a column header to sort something out or use the format > dialogue sort? I don't understand. Here are the easy commands that work in singles. What you (or they) win by this control in duplicate?  Why is it important if he doesn't "Executive"? Does this mean that if something is or was bad, you should keep just bad? They shouldn't have to learn to work well with their tools?

    Look, I'm all in favour of offering more control over widgets (API and) such as IR and I have provided my share of hackery. I don't see much justification here.

    Then gReport using was quite clear and the markup was simpler, at apex 5, is more complex. The principle is much the same, a lastcolumnid is defined and a direction, then the sortorder is called in the _columnOrder. You cannot use _columnOrder unless you set lastColumnId on the widget and I wouldn't do that as I do not change the internal state. So I just use the call syntax used in turn. Your selection list will select the columns of ir apex for this (since you need the id)

    var irw = apex.jQuery("#myReport_ir").data("apex-interactiveReport"); -- retrieve widget instance
    -- trigger the action
    -- f01: column id. In apex 5 these are by default generated ids, f02: desc/asc
    irw._action("COLUMN_ORDER", {f01: irw.lastColumnId, f02: "DESC" });
    

    Do with what you want and use at your own risk. It is not supported and could very well break flat-out more down the line. Not to mention that you (or someone else) have to maintain it and still understand it later.

  • Cases where the failure of the statement

    Can anyone help, where I am doing mistake here

    -case when "Sales Rep". "" Sales Rep name ' ('Michele Lombardo") then"core facts ". "" Recipes "= 0 otherwise

    "Basic facts '." End of revenue. "

    Capture.PNG

    Thank you

    Veera

    Hello

    Check this box...

    -case when "Sales Rep". "" Sales Rep Name ' to ("Michele Lombardo") then 0 else 'basic facts '. "" End of the revenue.

Maybe you are looking for

  • Firefox button is missing. Windows 8.1 help?

    Initially, I was trying to install a java (JRE) plugin, and most of the solutions told me to visit the Add-ons of firefox via the firefox button. The top of my web browser looks like this: https://i.imgur.com/Qp2jTNS.PNGso I clicked the button on top

  • HP Elite 8300 ultraslim: installation in HP Elite 8300 ultraslim MXM graphics

    Install a MXM graphics card in HP Elite 8300 ultraslim.I get 3 long beeps at first upward and the system does not start.I know that you can install the MXM graphics card because your manuals describe the abduction in the disassembly section. "" Also

  • Restart the Windows Audio endpoint Builder Service?

    Poverty and economic hardship MS caused me by disabling my 3 computers with incompatible drivers in the forced updates! For example: How can I restart my sound by restarting the Service Windows Audio Endpoint Builder?  According to the Services snap-

  • Cannot upgrade to Windows 10 0xC1900101 - 0 x 30017 error code

    OT: 10 Windows upgrade to Windows 7. I have a Toshiba Satellite 17.3 "laptop comes with Windows 8. I wiped and installed MY purchased copy of Windows 7 and aired it for well over a year.  I have all the updates, Device Manager displays all drivers up

  • Issue of Cisco IME

    I have a windows server 2012 running IME to manage my IPS devices on the network. When I do a scan of nessus on this server, it tells me ports 22.80 and 443 are open, even if IIS is not running. I can SSH for looping, but cannot authenticate. IME lau