How do I deal with zero values in apex charts?

So I have a dynamic query where the chart is based on sums as usual
SELECT NULL LINK,OPG,sum(decode(METHOD_TAKEN,' By Web Form','1',0))" By Web Form",
sum(decode(METHOD_TAKEN,' In Person','1',0))" In Person",
sum(decode(METHOD_TAKEN,'-------','1',0))"-------",
sum(decode(METHOD_TAKEN,'By 3rd Party Person','1',0))"By 3rd Party Person",
sum(decode(METHOD_TAKEN,'By 3rd Party Personweissj','1',0))"By 3rd Party Personweissj",
sum(decode(METHOD_TAKEN,'By Contact Person','1',0))"By Contact Person",
sum(decode(METHOD_TAKEN,'By E-Mail','1',0))"By E-Mail",
sum(decode(METHOD_TAKEN,'By HelpDesk','1',0))"By HelpDesk",
sum(decode(METHOD_TAKEN,'By Telephone','1',0))"By Telephone",
sum(decode(METHOD_TAKEN,'By Web Form','1',0))"By Web Form",
sum(decode(METHOD_TAKEN,'By Webform','1',0))"By Webform",
sum(decode(METHOD_TAKEN,'In Person','1',0))"In Person",
sum(decode(METHOD_TAKEN,'Walk-In','1',0))"Walk-In",
sum(decode(METHOD_TAKEN,'actiIn Person','1',0))"actiIn Person",
sum(decode(METHOD_TAKEN,'email','1',0))"email",
sum(decode(METHOD_TAKEN,'networkBy Web Form','1',0))"networkBy Web Form",
sum(decode(METHOD_TAKEN,'walk in','1',0))"walk in",
sum(decode(METHOD_TAKEN,'walkin','1',0))"walkin",
sum(decode(METHOD_TAKEN,'','1',0))"empty",
from
SELECT NULL LINK,to_char(open_time,'YYYY-MM') DATIME,METHOD_TAKEN,OPEN_GROUP OPG FROM SMINCREQ WHERE open_time between to_date('01-DEC-2012','DD-MON-YYYY') and to_date('01-FEB-2013','DD-MON-YYYY')
UNION ALL
SELECT NULL LINK,to_char(open_time,'YYYY-MM') DATIME,METHOD_TAKEN,PRIMARY_ASSIGNMENT_GROUP OPG FROM SMINTERACTIONS WHERE open_time between to_date('01-DEC-2012','DD-MON-YYYY') and to_date('01-FEB-2013','DD-MON-YYYY')
)  where METHOD_TAKEN is not NULL and OPG like '%TC%' GROUP BY(OPG) ORDER BY OPG ASC

Hi,
Will there be more info coming? Is the problem that you are getting "no data found"? When I get that, I keep simplifying the WHERE clause until I see what I've done wrong or I find the condition which rejects all the data.
??? In the decodes did you want two different data types: '1' character and 0 (numeric)?
Regards,
Howard

Similar Messages

  • How to show records with zero on dashboard

    hi expert,
    if I have a dimension table product,
    a fact table
    if in the db, there are records with zero values of product A.
    if the logical column for the fact is SUM(...).
    how to show records with zero values on dashboard.
    Use the outer join?
    or other method?
    I dont wanna use outer join because it makes the PRD be so complicated

    hi,
    Pull all the columns to criteria ,it will show NULL for a product
    To get zero,on the fact column use IFNULL(fact_col,0)
    which will look like this
    http://a.imageshack.us/img180/6616/ifnull.jpg
    thanks,
    saichand.v

  • How to Display WBS's with Zero values in a report created by CJE2

    Hi All,
    I have created a report using CJE1 (Report painter). When I execute the report, it only shows WBS that have values. How do I display WBS elements that do NOT have values? i.e. display items with zero values. I'm certain there is a setting either within report painter or forms...
    Help appreciated.
    Samir

    Menu>Formatting>Report Layout and then tab Rows. Check if setting under 'Treatment of zero rows' helps.
    Regards
    Sreenivas

  • Inventory difference.. upload with with zero value

    Hi
    Material : Label . Sticker
    UOM     : KG  
    Additional UOM : EA  (  1 KG = 100 EA approx.  ) normally it varies + -10%. means some times there are 90 EA in 1 KG, sometimes 110 in 1 KG.    
    We purchase Stickers in KGs. and Issue in EA in System . for example when user request issue 500 Ea labels. we issue 500 EA label in system, but physically we give  5 KG.
    when user consumed 500 EA and , then he found 45 EA left out of those 5 KG. ( means actually there were 545 Ea in 5 KG Lables).
    how we can take these 45 EA. into Inventory. ( upload quantity only ) ( with out any accounting entry \ with zero value ).     
    or is there any other best way to deal this.  keeping in view it is impossible to count these lables while purchasing or issue.
    thanks \ thomas

    thanks Guru for giving time.
    with this 2nd option
    Option2
    post a 202 movement, use external value field(may need to be customized) and give zero value there.
    This has the benefit that you would not give a credit to the cost center,
    and as you post the inventory for zero amount,
    a new moving average price is automatically calculated and updated in material master.   "
    when i tried with MB1A and 202.  one thing.  Cost center is compulsory  second there is no filed  "External Value Field" ( plz guid some steps how to customize it .  , 
    thanks \ thomas

  • Extra accouning line item in billing document with zero value

    Hi,
    I am using TAXINN procedure, the following accounting document has been generated during billing.This accounting document contains an extra line item with zero value.
    However, There is no necessary for this line item with zero value. Can you tell me how to remove this line item?
    000       50          VAT Payable                       A0             0.00
    001       01          Sale within state                 A0      1,212.00
    002       50          Sales f/goods-Dome.          A0      1,000.00-
    003       50          ED Collected Clr.                 A0          160.00-
    004       50          ED Collected Clr.                 A0              3.00-
    005       50          ED Collected Clr.                 A0              2.00-
    006       50         VAT Payable                      A0            47.00-
    Thanks,
    Kanhu

    Hi
    Check if there is any summarization active for billing documents generated through SD. The path for the same is:
    IMG>Financial Acxounting>General Ledger Accounting>Integration>Sales & distribution
    Check for table VBRK
    Regards
    Sanil  K Bhandari

  • TCode MIR7: Dump while deleting Parked Invoice with zero value

    Hi,
    We had parked an Invoice using TCode MIR7 with Zero Value with reference of a PO. Now as the value of invoice is zero, we want to delete it using MIR7.
    In MIR7, when we go to Invoice Document-->Delete, it results in dump. Dump is as follows:
    Error analysis
        Short text of error message:
        No document found
        Long text of error message:
        Technical information about the message:
        Message class....... "FI"
        Number.............. 124
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "SAPLFMPR" or "LFMPRU05"
        "FM_CO_DOCUMENT_DELETE"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which actions and input led to the error.
    Information on where terminated
        Termination occurred in the ABAP program "SAPLFMPR" - in
         "FM_CO_DOCUMENT_DELETE".
        The main program was "SAPLMR1M ".
        In the source code you have the termination point in line 34
        of the (Include) program "LFMPRU05".
    Any help.
    Regards,
    CMC Team.

    Hi,
    Check following SAP notes:-
    1173846  (MM) Termination when deleting prepaid logistics invoices
    Reason and Prerequisites
    This problem is caused by a program error.
    1224772  (MM) Error message FI24 when deleting parked invoices
    Reason and Prerequisites
    This is due to a program error. The total amount of the parked invoice is '0'.
    Regards,
    Anand Raichura

  • Posting with Zero Values in AFAB

    Hi all,
    My client wants to run depreciation with zero values, since they are maintaining Assets in FA Module but doing manual deprecations due to certain unavoidable reasons.
    By mistake we ran depreciation for 4 months for the assets in SAP. I know that we cannot reverse those entries. But I have passed rectification entries in Finance.
    But I am not able to update the Asset Masters with the correct values. How can I revert back the values in Asset Accounting so that my net book value is also 100 % now? Will AFAR work and if then how?
    Thanks & Regards,
    Sajan

    Hi Srinu,
    Thanks for your response.
    The situation is that, we went live in 2008 and we implemented Asset Accounting also. But client did not migrate legacy assets into SAP. They started using Asset Accounting only for new Assets. They did not run depreciation using AFAB. Infact, they calculated it manually and posted depreciation.
    Now the thing is that we will not be able to open year 2010 in Asset Accounting unless we close year 2008. But since, depreciation was not carried out, system is not allowing us to close year 2008. I was trying to run depreciation for year 2008 with out posting any financial entries in the system and I achieved it in quality client. But unfortunately in production, it posted entried for July-Nov 2008.
    Now I want to revert that as well as run AFAB with out posting any entries for Nov & Dec 2008 so that I can close this year.
    Hope you have understood the requirement. Any way out from this?
    Thanks & Regards,
    Sajan

  • Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Has anyone experienced problems with Mackeeper? I did not complete downloading this software. Yet, occasionally when on the internet, I will have the MacKeeper multi-colored circle replace my pointer. How do you deal with this?

    Welcome to Apple Support Communities
    Don't download MacKeeper. Users complain about this app and it damages OS X. Also, Mac OS X knows how to take care of itself, so you don't need any other cleaning application that may damage OS X. See > https://discussions.apple.com/docs/DOC-3691

  • How do I deal with constant "error loading content" messages?

    I'm constantly seeing error messages on my Apple TV (2nd gen) on content I easily watch on my other iDevices. What gives? This thing is rapidly becoming a vy expensive paper weight. Possibly the worst Apple product I've yet purchased. Am I alone in this?  What can I do?

    You cannot connect to TC using USB.
    Plug the TC into the computer using ethernet.
    Press and hold the reset button on the TC for about 10sec.. until front led rapidly flashes.. release it.
    Open the airport utility and make sure you can locate the TC. Check the disk page that the disk started up without errors.
    When you say
    Sodrawi wrote:
    How do I deal with the error message at my Time Capsule saying "There is a problem to connect to server xxxx-Time-Capsule.local."
    I am guessing you mean Time Machine.
    If TM still cannot find the TC disk.. reset TM and redo the setup.
    Read A4 here.
    http://pondini.org/TM/Troubleshooting.html

  • HT1420 I purchased new computers twice within the same year because they old were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers.  How do I deal with this situation.

    I purchased new computers twice within the same year because they were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers because it has been less than a year.  How do I deal with this situation?

    BrianBlaze wrote:
    I have 3 Computers at home, I am studying computer sciences and am constantly rerformatting my computers, installing windows and linux over and over again.... EVERYTIME I reformat I have to authorize the same computer and so it takes up one of my 5 authorized computers... Anyways after deauthorizing all my computers in september I was not aware I couldn't do it for another year (why does APPLE assume these stupid tactics prevent piracy). Anywysw I need to reach apple and have them make it so I can do it again. I had a similar problem with Playstation and when I called them they fixed it for me... even windows (which you can only have one serial per computer) made it easy because all I had to do was call them and they fixed it for me. Now I need APPLE to do the same and this is the only place I could see to actually say what is going on... I can't believe I have to do this with my iPhone... I wanted an mp3 player and a phone together and if I can't put new songs until September 20, 2012 I am going to freak out!
    HELP!
    Brian
    Try this link: http://www.howtogeek.com/howto/23974/beginner-deauthorize-all-computers-associat ed-with-your-itunes-account/

  • It says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • HT5621 I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    I have moved permanently from the US to live in the UK. when I try to download a UK app I am often told that I cannot use a UK Apple sstore, only a US store. I need to access various UK stores how can I deal with this?

    Try here
    http://support.apple.com/kb/HT1311
    when you have UK Cards etc best to change as well

  • Adobe always quits unexpectedly in Mac when I read a bit fast. How can i deal with it, plz?

    Adobe always quits unexpectedly in Mac when I read a bit fast.
    It is the latest update.
    How can i deal with it, plz?

    You posted in the forum for iPad and iPhone (different app). I've moved your question to the Reader forum for desktop/laptop computers.

  • How can I deal with an apostrophy

    My simple questions is how can I deal with an apostrophy when I trying to save to the table, here is an example in how I am saving.
    'Sandr'as Casa' this gives me an error message. I have to do it like this
    Strings.replace("Sandr'as Casa"," ' "," ' ' "), a package function
    SQLDesFollow = "UPDATE [CRVMReq] " +
    "SET [SkillSet]='" + Strings.replace("Sandr'as Casa"," ' "," ' ' ")+ "'" WHERE [ReqId]='" + ReqValuesReqId[4] + "";
    dbs.execute(SQLDesFollow);
    SQLDesFollow = "UPDATE [CRVMReq] " +
    "SET [SkillSet]='Sandr'as Casa' WHERE [ReqId]='" + ReqValuesReqId[4] + "";
    dbs.execute(SQLDesFollow);
    any help will be appreciated.

    Here is the magic word: PreparedStatement.
    Start here:
    http://java.sun.com/docs/books/tutorial/jdbc/basics/pr
    epared.htmlSeconded, thirded and fourthed.
    And if later readers of this thread feel that they would like to provide another answer then they should think again because they would be wrong.
    There is only one correct answer to this question. PreparedStatement.

  • How can I deal with long sql by the oo4o?

    I am using VB and oo4o to develop a sql executor which is a extention of an old system.
    For some reason, I have to use oo4o v8.1.7 to deal with Oracle Database 8i to 11g.
    But when I send a very long sql(11KB) to it I got a error in the VB enviroment.
    The Err.Description is "automention error. Started object is disconnected by the client.".
    The Err.Number is "-2147417848 ".
    The sql that I send it to the program is a simple select sql that like select a, b, c, substrb(d, 1, 2), substrb(e, 2, 3) .... from A_TBL where A=aa;
    This sql is normally executed by the sqlplus but I got an error by the oo4o.
    When I insert a '' between the 30Xth items, it got exectuted normally.
    ex. select a, b, c, substrb(d, 1, 2), substrb(e, 1, 2) ..... substrb(303th, 3, 4), '', substrb(304th, 1, 2) ... from A_TBL where A = aa;
    How can I deal with this problem? Thanks.

    So how can use this function correctly?By learning what exceptions are, how they're used, and what you can do to deal with them. There's a tutorial here: http://java.sun.com/docs/books/tutorial/essential/exceptions/index.htmlAnd here's a quick overview:
    The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
    RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
    If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
    Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

Maybe you are looking for