Chcing the sum option on a column not working

The 3 columns titled Total_25_Probability, Total_50_Probability,Total_90_Probability are not totaling although I have checked the sum option in the report attributes. Any ideas?
Here's the query that forms the table:
Select REGION , FIRST_APPOINTMENTS ,PROSPECTS_25 , TOTAL_25_REVENUE , TOTAL_25_PROBABILITY , PROSPECTS_50 ,TOTAL_50_REVENUE , TOTAL_50_PROBABILITY , NUM_90_PROSPECTS , TOTAL_90_REVENUE , TOTAL_90_PROBABILITY , CURRENT_MTH_CLOSES , CURRENT_MTH_BOOKED_REV , YTD_CLOSED , YTD_CLOSED_REV ,(Total_90_Probability + Total_50_Probability + Total_25_Probability) as SixtyDayOutlook
from (SELECT OFFICE_ID as Region,
Count (CASE WHEN v.STATUS = 'FA' then
v. prospect_id
else 0
end) as First_Appointments ,
Count (CASE WHEN v.STATUS = '25%' then
v. prospect_id
else 0
end) as PROSPECTS_25 ,
sum (CASE WHEN v.STATUS = '25%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) as Total_25_Revenue ,
to_char( (sum (CASE WHEN v.STATUS = '25%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) *.25 ), '99999999999999999') as Total_25_Probability ,
Count (CASE WHEN v.STATUS = '50%' then
v. prospect_id
else 0
end) as PROSPECTS_50 ,
sum (CASE WHEN v.STATUS = '50%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) as Total_50_Revenue ,
to_char( (sum (CASE WHEN v.STATUS = '50%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) *.50 ), '99999999999999999') as Total_50_Probability ,
Count (CASE WHEN v.STATUS = '90%' then
v. prospect_id
else 0
end) as NUM_90_PROSPECTS ,
sum (CASE WHEN v.STATUS = '90%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) as Total_90_Revenue ,
to_char((sum (CASE WHEN v.STATUS = '90%' then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) *.90 ), '99999999999999999') as Total_90_Probability ,
count (CASE WHEN v.STATUS = 'Closed' and to_char(target_close_date , 'Mon') = to_char(target_close_date,'Mon') then
v. prospect_id
else 0
end) as Current_Mth_Closes ,
sum (CASE WHEN v.STATUS = 'Closed' and to_char(target_close_date , 'Mon') = to_char(target_close_date,'Mon') then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) as Current_Mth_Booked_Rev ,
count (CASE WHEN v.STATUS = 'Closed' and to_char(target_close_date - 1 , 'YEAR') = to_char(sysdate ,'YEAR') then
v. prospect_id
else 0
end) as YTD_Closed ,
sum (CASE WHEN v.STATUS = 'Closed' and to_char(target_close_date -1 , 'YEAR') = to_char(target_close_date,'YEAR') then
nvl(EST_ANNUAL_REVENUE, EST_INCREMENTAL_REVENUE)
else 0
end) as YTD_Closed_Rev
from vms_prospects v join VMS_PROSPECTING_ITEMS i
on v.prospect_id = i.prospect_id
where i.active = 'Y'
group by OFFICE_ID)

never...I see that I converted those columns into chars. For some reason to_number was throwing an error. I suppose I need to take this to the pl/sql forum.

Similar Messages

  • While my iPod touch was connected to a speaker dock, I found it very hot. Not it will not turn on. I have tried the reset options and they do not work. Neither iTunes nor any of my computers recognizes it when I plug in the usb. Is there a way to fix?

    Now it will not turn on. I have tried all the reset instructions with no luck. Neither iTunes nor any of my computers will recognize it when I plug it in. Is there any chance to get it working or am I out of luck? Please help if you can since I cannot afford to purchase a new one at this time. Thanks.

    Your iPhone is in recoverty mode at the moment so to possibly get it back up and running you would need to do a restore as you have been trying. Follow the steps in the article below for the specific error messages you have been receiving. If after following all steps the issue remains book an appointment at a local Apple Retail Store to have the iPhone evaluated.
    Resolve specific iTunes update and restore errors

  • Layout Options - Page Order Does Not Work Correctly

    I have a Photosmart C7280 All-in-One printer.  The Layout Option - Page Order does not work as expected.  The User Guide (page 95) states that the default for a multiple page document is to print first page first.  The manual states that to print last page first requires one to change the Page Order to "Back to Front".  For my Excel, Word, Internet Explorer and PDF pages, I need to leave the Page Order as "Front to Back" if I want the last page to print first.  This makes no sense.  In addition, I can't get my Quicken reports to print last page first no matter what I try.  Does anyone no why the Page Order does not work as expected for Excel, Word, IE and PDF, and does not work at all for Quicken?

    Keisha,
    If you uncheck the "show" option, then the corresponding HTML for that item is not rendered on the page. Thus, when you try to inspect that item via APEX_APPLICATION.G_F02, it simply doesn't exist.
    One trick that I use when I want to have hidden items on the page, but not make them take up any space, is to concatenate them to items that will be visible.
    Using your query as an example, I would re-write it like this:
    SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
    APEX_ITEM.HIDDEN(2,C.PARTY_ID)
      || APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
      || C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS NAME,
    C.PARTY_CASE_ID
    FROM CASE.PARTY C
    INNER JOIN DN.PERSON S
    ON C.PARTY_ID = S.PERSON_ID
    WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO = :P18_SEQThus, the second APEX report column will contain the HTML for the hidden items PARTY_ID & PARTY_TYPE_CODE, as well as the value for PARTY_TYPE_CODE. When you submit the page, you should not encounter any issues.
    Thanks,
    - Scott -
    http://sumnertechnologies.com/
    http://spendolini.blogspot.com/

  • HT4137 I am trying to follow the steps suggested in To restore you device from a previous backup, unfortunately the device is appearing in the list of devices. The sync option under devices is not also active. How can I resolve this?

    I was trying to setup a new ipad. After resetting and erasing the content on the ipad, I would like to restore the ipad from the old backup. Unfortunately the device is not appearing in the list of devices. The sync option under devices is not also active. How else can I restore the ipad?

    Sorry, you can't extract those photos from the old device unless you restore the new phone from that backup.
    You could of course use a third party software to extract those pics but it will cost you.
    If you still have the old phone import those pics to your computer and then sync those photos to your new phone via itunes.

  • Itunes does not open,everytime i try it says "The itunes application could not be opened. The required folder cannot be found" I have tried the shift key option but that does not work. help!!

    I cannot open itunes. Everytime i try it says "The itunes application could not be opened.The folder cannot be found." I have tried the shift key option but this does not work. Please help.!!

    Try the actions here for that driver.
    iOS: Device not recognized in iTunes for Windows
    I would first do this:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7

  • HT5887 I am wondering if somebody else have problems with Airdrop, I just configured the option and it does not work. My friends can see me, but I can not see them.

    I am sad, I have days trying to use Airdrop, my friends can see me, but I can not see them. I  turned on my Wi-Fi, Bluetooth and I selected the option "available for ALL".... and nothing. I can receive photos from my friends... mean It work for them. I just restarted the phone to the basics configuration but it does not work, my phone still does not recognize my contacts.

    warranty will cover it. Did you try only by changing the power adapter or did you change both cable and power adapter?
    if you did the latter, see this page: https://www.apple.com/support/iphone/repair/battery-power/
    you'll be able to contact Apple Support from there.

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • The preview option in FCK doesn't work when using trought an external app!

    Hello everyone!
    I have an issue with the FCK-editor when using in an external application.
    We are executing the “WCM_EDIT_DATA_FILE” service to launch the FCK contributor application in a portal (Webcenter) so we can edit datafiles. The preview option (preview butto) does not apply a region template and the content is shown in the same order as defined in the region definition. Viewing the same datafile trough Site Studio I can see that the preview option applies a region template.
    I've compared the links but I am not getting anywhere.....
    The links for the preview are:
    Via the portal:
    http://MyServer/vcc/idcplg?IdcService=SS_QD_GET_RENDITION&coreContentOnly=1&dDocName=DF_NEWS_BERLIN_8&dID=765&wcm.contributor.mode=false&IgnoreContributorOnly=true&previewId=1276003853183&WCMPopupId=POPUP09875462424653607178
    Via Site Studio:
    http://Myserver/VCCPOC/index.htm?wcm.contributor.mode=false&IgnoreContributorOnly=true&previewId=1275983448108&WCMPopupId=POPUP07808631203986127290
    I can see that the portal link has the same parameters as the Site Studio link and some more. I even tried adding a region template in the url by adding my template as a parameter like this "&templateDocName=RT_BOUND_DETAIL_VIEW" just to force it but without any luck. The same goes for the "view differences"-button in the FCK editor.
    Has anyone had this problem?
    Thanks

    Hi Stijn,
    Here is the link to the SS-services:
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e10615/c11_ss_services.htm#insertedID0
    And here is the link to the CS-services:
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/developer/services_reference_10gr3en.pdf
    The name of the service that creates new data file is CHECKIN_NEW_FORM.
    Saving the file from the FCKEditor makes the browser window "greyed out" so for the time being we are hitting the "go back"-button in the browser to return to the portal... as we open the editor in the same window as the portal. However, there must be another solution as this is fare away from user friendly!
    Let me try to answer some of your questions:
    - Are you also using the Site Studio publishing functionality (we will not)
    No, we are not either.
    - where will your site design be done (we'll try to do as much as we can in WebCenter to keep it all in one place; we might even just output XML with our templates from SS, and transform it in WebCenter using different "templates")
    We are also planning to have it all in WebCenter. We are using SS for creating region templates and subtempalates used in the portal (Webcenter/ADF) for showing the same data files in different ways. That means that we also have elements, region definitions, placeholders and so on in the SS.
    - what are you doing with inline images in the FCKEditor (we want contributors to be able to upload there images easily from the Editor, without the need to browse to UCM)
    Well, for the time being the contributor must browse the some images from the CS because the images must have a certain height and width... so that is our way of controlling that the user is choosing from the approved images. When it comes to images in the text the contributors can add as many images as they want that are not from the CS. They can just copy/paste them in the editor from whatever location they want.
    - is it correct that the metadata tab cannot be used in combination with profiles defined in UCM (see other thread WebCenter Content
    I've heard that before so my guess is that it's true. My question then is how do I do to hide the metadata tab if I do not use it?
    - will you be using the ctrl-shift-F5 functionality to edit content, or just create a link to the WCM_EDIT_... service in a popup window?
    We create a link to the WCM_EDIT_... service that opens in the same window as the portal.... but as I mentioned earlier that is not the most user friendly solution so we probably must change that....
    Now back to my problems:
    I know why the preview trough the portal and the site studio differs.
    The services that are used when previewing content trought the SS are:
    SS_SET_PREVIEW_ELEMENT_DATA
    SS_GET_PAGE
    LOAD_DOC_ENVIRONMENT
    The services that are used when previewing content trought the portal are:
    SS_SET_PREVIEW_ELEMENT_DATA
    SS_QD_GET_RENDITION
    LOAD_DOC_ENVIRONMENT
    The SS_GET_PAGE actually shows a page in SS and as soon as there is a region template attached to the page you are able to see the content the way you want. That is not the case then calling the SS_QD_GET_RENDITION service. So my question is if there is a workaround where I can force a region template to be used con conjunction with the SS_QD_GET_RENDITION service?
    Anyone? All ideas are really appreciated!

  • HT202157 New apple is not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.

    I got new Apple TV 10 days back,its not asking for the WIFI password.Home sharing is not working,i am getting Error while streaming videos from Youtube.
    I can only see pics and video saved in my iphone. No other options are working.The worst part is that its not asking wifi passoword.
    Not able to connect istores and itunes.
    I cannot do software update. Can anyone help in this content?

    Thanks Brian- I am not connecting it with iphone teethering. I am using it with my DSL wifi.
    I am using it with ethernet cable then its working fine.If i am trying to use it with WIFI then its giving error.
    I tried using Netwrok testing but its giving same error.

  • I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    I have a MacBook, made in 2010. I can't get the eject function to work. I have a DVD in now and want to eject it and put another one in. Command-E, dragging it to the trash or Find-Eject does not work. Ideas?

    Hi there. Hear are some other options . Hold down for click on the track pad while restarting and keep it down all the way thru boot. Or use right click on a mouse. If it's stuck, sometimes sticking a business card in top edge of slot while trying the eject option can work.

  • "Validation" enabled for the composite and my testsuites are not working

    I have posted the below issue in Test suite in JDEV - Studio Edition Version 11.1.1.2.0 But I felt that this is the right forum, so posting this again here:
    I have mediator calling bpel. Mediator is exposed as web service. Whenever I run the service using "Test" button on EM with validation turned on
    then it works and the process will be completed.
    But I have initiate xml in the test suites. I select "UnitTests" and select my test case xml that was associated to "Initiate Message for operation",
    I see that the process is still in the "Running" state. I put in exactly the same values as I use for testing the service from EM.
    Did anybody face this issue? This happens only when we turn the validation to "Enabled" in EM.
    I have "Validation" enabled for the composite and my testsuites are not working. When I test using unit tests, I am only seeing "Running" status of the processes and these are not getting completed.

    Hello there, RevDebMN.
    The following Knowledge Base article is always a great fallback article for troubleshooting Mail issues:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Particularly useful, in your case:
    Mail Connection Doctor shows one or more red dots () in the account Status column
    Check your Incoming IMAP or POP and Outgoing SMTP email account settings
    Use Apple's online Mail Setup Assistant to discover what the correct settings should be for both your Incoming (IMAP or POP) and Outgoing SMTP email servers. If your email service provider is not listed in the Mail Setup Assistant, visit your email service provider's website or contact their support staff to get the correct settings. You can use this "cheat sheet" when asking your email service provider about the settings you need.
    After you have the correct email service provider settings, make sure Mail is configured properly.
    Click here if your Incoming and Outgoing email account settings are correct, but the issue persists
    What alert message is shown in the Mail Connection Doctor "Details" column affected account?
    Click here if a "Could not connect to this (server type) server…" message appears
    Click here if a "Trying to log in to this (email server provider name) account failed…" message or any other error message appears
    If the issue persists, then you'll want to remove the account and then add it again using this article:
    Mail (Mountain Lion): Remove accounts
    http://support.apple.com/kb/PH11794
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Some of the services of ITS 640 are not working

    Hi All,
    I have implemented SAP NW 04 SR 1 Portal and integrated SRM 4.0(EBP 5.0).I have also implemented Business Package for mySAP SRM 4.0 60.2.
    I am using internal ITS for HTML GUI.
    Some of the iviews of the business packages  are working but some of them are not.
    I am getting an error message
    "The URL http://g4kwas642.corp.rwdtech.com:8050/sap/bc/gui/sap/its/bbpsc05/! was not called due to an error.
    Note
    The following error text was processed in the system SRM : Attribute for user PBHONDELE contains errors. Inform system admin.
    The error occurred on the application server g4kwas642_SRM_50 and in the work process 0 .
    The termination type was: TH_RES_FREE
    The ABAP call stack was:
    Form: OUTPUT_EXPRESS_MESSAGES of program SAPLBBP_SC_UI_ITS
    Form: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS
    Module: EXTERNAL_SCREEN_DETERMINE of program SAPLBBP_SC_UI_ITS"
    I have published all the services that are under SICF.
    I had also published all the services using w3_publish_services and siac_publish_all_int.
    It says that all the services are succesfully published.
    When I  go to SICf to test the service,some of them are not working.
    Can you guys tell me what are the steps that I am missing?
    Thanks,
    Paritosh

    I am also getting the same th_res_free error..
    I have installed nw04 sr1 and trying to run ESS on it.
    My problem is, i have installed sap WAS 6.4 on different machine and R/3 on different machine..
    So now.. where i have WAS.. does not have all the services. All services are there on R/3 server..
    Now how do i publish the services on WAS 6.4??
    Coz that option to publish on INTERNAL site is not coming on my R/3 (4.7) as it does not have WAS 6.4.. its on different machine.
    Please tell me what can be done in this case.
    I cant create a R/3 transaction iView using webgui because of this. my Web gui service on WAS 6.4 runs fine whne i test it in SICF .. but not in Iview..
    Please help me out .. i dont want to install a ITS on another machine which is simple solution..

  • My Creative Cloud does not work anymore. When I try to reinstall it I receive the message "AAM cannot initialise". I have tried all the instructions but it still does not work. Robert

    My Creative Cloud does not work anymore. When I try to reinstall it I receive the message "AAM cannot initialise". I have tried all the instructions but it still does not work. Robert

    Try perform below steps.
    Open task manager by pressing Ctrl + Shift + Esc  keys. Click on more details if the option available.
    Then end all Adobe related processes, including Creative Cloud and Coresync ( if running )
    Then hold windows key on your keyboard and Press R key.
    It will open Run window
    In Run window, type Appdata and click on Ok
    Open Local > Adobe folders
    Delete AAMUpdater and OOBE folders
    Then navigate to C:\Program Files (x86)\Common Files\Adobe
    Delete Adobe Application Manager and OOBE folders
    Go back to Program Files (x86) and Open Adobe folder
    Try deleting Adobe Creative Cloud folder, if it is not allowing rename it to Adobe Creative Cloudold
    Download and install Creative Cloud App from below link
    https://creative.adobe.com/products/download/creative-cloud
    Then check

  • Lost ical and the ical 1.5.5 is not working with mac osx 10.5 ?

    lost ical, would like to download it, as in the installation disk, I'vent the possibility to do it . The problem is that the ical 1.5.5 is not working with mac osx 10.5 ?

    biomecasport,
    Welcome to Apple Discussions.
    1. Insert the Leopard Installation disk into the computer.
    2. The disk will appear on the desktop.
    3. Double click on the "Optional Installs" folder.
    4. Double click on the "Optional Installs.mpkg."
    5. Click on (Continue) in Introduction.
    6. Click on (Continue) in Software License Agreement.
    7. Click on (Agree) to agree to the terms of the software license agreement.
    8. Click on the disclosure arrow ▶ next to Applications.
    9. Select (✓) iCal.
    10. Click (Continue).
    11. After iCal has been reinstalled, download and install the Mac OS X 10.5.8 Combo Update to bring iCal up to the most recent version.

  • When i type in the correct answer for my security question it always comes up as incorrect I have the answer written down but there not working can someone help

    hello
    when i type in the correct answer for my security question it always comes up as incorrect I have the answer written down but there not working can someone help

    Hi, Corinneact. 
    Thank you for visiting Apple Support Communities. 
    The usual cause for errors is that the security question responses are case sensitive.  If case sensitivity is not an issue with your answers, see the last step in the attached section of the article below. 
    Navigate to My Apple ID using your web browser.
    Click "Manage your account"
    When prompted, sign in using your Apple ID and password.
    Click Password & Security
    You'll be asked to answer 2 of your 3 security questions before you can make any modifications. If you are unable to remember your answers, you can choose to send an email to your rescue email to reset your security questions.
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so. 
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Cheers,
    Jason H. 

Maybe you are looking for

  • DVI-I to DVI-D Cable?

    I have two Macbook Pros, and I have one Dell flat-screen monitor. Right now, I hook up one Macbook Pro using the VGA adapter to the monitor. When I want to use my other Macbook Pro with the monitor, I switch the cables out. I know it's a small hassle

  • PSE5.0 problem with e-mailing photos

    about a week ago my PSE e-mail stopped working for photo attachments on Vista. I select the photo, the "attach to email" screen comes up, I attach and hit send and I get the hour glass and it freezes. help! what service does everyone else use to e-ma

  • TS3297 What can I do about error 42408?

    What can I do about error 42408? I can't download my purchased and matched music from the store.

  • Automatic message for problems with partner transfer

    Hello gurus, every 15 Minutes we automatically transfer new or changed partners from SAP ERP to GTS. Now, if there is an error in one of those partners and they cannot be transferred successfully (e.g. because of missing or inconsistent address data)

  • Question about customer aging report

    Greetings, One of our Business One consultants needs the information from the customer aging report under the financials\accounting\aging section of Business One. I am trying to help him do this but I do not know how to find the query or stored proce