Crosstab shows empty sums when multiple rows are involved

Hello,
Here are the top few lines from a crosstab report I've generated:
               Billing Percentage          Billing Amount          Billing Tax Percentage          Billing Tax Amount     
          Billing Type     Rental     VAT     Rental     VAT     Rental     VAT     Rental     VAT
Release Code     Booking Number                                             
MYRELEASE                                             
     34806          50     NULL     7544810     NULL     5     NULL     377240     NULL
     34810          NULL     NULL     100000     NULL     5     NULL     5000     NULL
     34811               NULL          NULL          NULL          NULL
     34812               NULL          NULL          NULL          NULL
     34813               NULL          NULL          NULL          NULL
     34822          NULL     NULL     100000     NULL     5     NULL     5000     NULL
Although this probably looks terrible in HTML, hopefully everyone can see that for 34806 and 34810, sums are returned correctly. However, for 34811-34813, the sums are returned as NULL.
After looking into the database, it appears that the sums only show when there is only a single element making up the sum. For line 34811, there are 2 underlying records which should be getting summed up, but the report is showing NULL.
I have read some suggestions including changing the default aggregation behavior to show the sum of the contributing cells - but this does not fix anything. Also, I have verified that in the EUL, the data type is "NUMBER" and the default position is "DATA POINT".
It may be worth noting that the multiple underlying records often contain duplicate data in the amounts that are being summed up. Could this be the issue? If so, how do I get Discoverer to sum up these values despite the fact they are dupes?
Thanks!

Okay, how about making sure the items are non-NULL similar to what Puppethead suggests.
It sounds like you're choosing the SUM for an item for display. Regardless if it's a SUM or DETAIL on the line row level, if there's any NULL in each of those SUM line records, it may be screwing up the total.
So, where you choose the item name, instead put an NVL function around it (ie: NVL(item,0)).
Russ

Similar Messages

  • Is it possible to stop iTunes generating a separate album cover when multiple artists are involved in one album

    Is it possible to stop iTunes from generating a separate cover for each artist when the album has multiple artists?

    when importing album artwork, does anyone know if its possible to make it not embed the artwork in every file and instead act like the artwork downloaded from the iTunes store?
    It is not possible.

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • Safari warning before quitting when multiple tabs are open?

    I'm a rather clumsy typist who often uses Apple+Tab to toggle through my open programs. This works great 99% of the time, but that other 1% is rather frustrating considering that the Q key is right next to Tab.
    Apple guys, please implement a pop up/drop down warning when attempting to quit Safari when multiple tabs are open (or at least the option to enable or disable it). I use this browser for work and often have many tabs open, so accidentally quitting the browser only impedes on my workday. I know I should be more accurate, but isn't that what part of progress is? The empowerment of laziness? =)
    Thanks for your time, and hopefully we see this included in soon-to-come upgrades!
    Oh, and if this feature is already available, feel free to show me the way.
    G4   Mac OS X (10.4.7)  

    jefftovar,
    I created and modified the Safari Keyboard Shortcut
    Quit (⌘+Q) command to (⌘ControlQ) by using System
    Preferences...>Keyboard Shortcuts.
    ;~)
    Great suggestion! But, the default Quit (⌘+Q) command is still in effect. I've looked about in trying to deactivate it, but can't seem to find it. How did you get rid of yours?
    G5   Mac OS X (10.4)  

  • Scrolling to next range in advanced table when new rows are added.

    I programatically implemented Add New Row in an advanced table.
    "Records Displayed" attribute of advanced table =10, so as log as I add upto 10 new rows the table displays 10 rows,if I add 11th record the new record is appended @ 11th position but I've to choose "Next" link on the advanced table to see the 11th row.Is it possible to show the last rowset in the advanced table when new rows are added?
    The underlaying VO executes the following code when "Add New Row" button is pressed:
    int rCount = this.getFetchedRowCount();
    int rangeSize = this.getRangeSize();
    int rangeStart = this.getRangeStart();
    if (rCount < rangeSize) {
    this.insertRowAtRangeIndex(rCount, newRow);
    } else {
    this.setRangeSize(rCount+1);
    this.insertRowAtRangeIndex(rCount, newRow);
    this.setCurrentRow(newRow);
    To scroll to the 11-20 rows (when added more than 10 rows),I tried with following options, but none of them helped:
    1) int newRangeStart = ( rCount / 10 ) * 10 ;
    this.setRangeStart(newRangeStart);
    2) this.scrollRange(newRangeStart);
    3) this.scrollRange(rCount);
    4) int newRangePage = rCount / 10;
    this.scrollToRangePage(newRangePage+1);
    5) this.getNextRangeSet();
    Please let me if it is possible to achieve.

    What happens if you just add the new row without specifying where to add it ? doesn't it add the new row on the same page as the last row ?
    Thanks
    Tapash

  • How do I get Firefox to display the information bar when a pop up is blocked I accidentally clicked on "Don't show this message when pop-ups are blocked" when a pop up was blocked. How do I get this message to reappear again when a pop up is blocked?

    I just updated Firefox but can't get it to display the message when a pop-up is blocked. Most times I want them blocked but sometimes I need them enabled.

    You can see a pop-up block icon in the right corner of the Status Bar if you have chosen to hide the information bar at the top.
    You can left-click that pop-up block icon on the Status Bar and remove the check mark from "Don't show info message when pop-ups are blocked"
    You can look at these prefs on the '''about:config''' page and reset them via the right-click context menu:
    Status bar icon: browser.popups.showPopupBlocker
    Info bar at the top: privacy.popups.showBrowserMessage
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • A lot of memory is used when multiple tabs are open

    Is there anything that can be done about the insane memory usage in Firefox when multiple tabs are open? I often have 20+ tabs open and the amount of RAM that Firefox uses when I have it open with this many tabs is just ridiculous. As an example of this, I just restarted Firefox after checking the Windows Task Manager. The Task manager said that Firefox was using 1.2 GB of RAM. I did have 32 tabs open, but this seems excessive even for this many tabs. Some of the tabs were image heavy, but none of them had any video in them. I'd think 10 MB per tab of RAM would be plenty to cover these kinds of pages, maybe 20 MB at most. The upper end of that range would be 640 MB of RAM. Instead, it appears to be using an average of 40 MB of RAM per page when this many tabs are open.
    Is there anything that can be done to reduce amount of memory being used when multiple tabs are open? It really shouldn't need this much RAM to serve this many pages.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Dynamic sql reurns no data when multiple values are passed.

    (Dynamic sql returns no data when multiple values are passed.)
    Hi,
    While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
    When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
    =======================================================
    create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
    stmt VARCHAR2(9272);
    V_EMPID VARCHAR2(100);
    BEGIN
    V_EMPID :=EMPID;
    stmt := 'select * from TEST123 where Empid is NOT NULL';
    IF V_EMPID <> '-1' THEN
    stmt := stmt || ' and Empid in (:1)';
    ELSE
    stmt := stmt || ' and -1 = :1';
    END IF;
    OPEN rc FOR stmt USING V_EMPID;
    END Z_TEST;
    ============================================================
    Script for create table
    ==================================================================
    CREATE TABLE TEST123 (
    EMPID VARCHAR2(10 BYTE),
    DEPT NUMBER(3,0)
    ===========================================
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    =============================================
    Select * from TEST123 where Empid in (1,2,3)
    EMPID DEPT
    1     20
    2     10
    3     30
    3     30
    2     10
    ===================================================================
    Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
    Thank you,

    The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
    create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      IF V_EMPID = '-1' THEN
        stmt := stmt || ' and Empid in (:1)';
      ELSE
        stmt := stmt || ' and -1 = :1';
      END IF;
      OPEN rc FOR stmt USING V_EMPID;
    END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
    select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
    If you pass in 1,2 as a parameter then it is basically building the following:
    select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
    You could always change your code to:
    PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      stmt := stmt || ' and Empid in (:1)';
      OPEN rc FOR stmt USING V_EMPID;
    END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks.

  • File corruption on SDCard when multiple files are being written from WinCE 6.0R3

    We currently have file corruption problems which we have been able to reproduce on our system which uses WinCE 6.0R3. We have an SDCard in our system which is mounted as the root FS.  When multiple files are being written to the file system we occasionally
    see file corruption with data destined from one file, ending up in another file, or in another location in the same file.  We have already written test SW that we have been able to use to reproduce the problem, and have worked with the SDCard vendor to
    check that the memory controller on the card is not the source of the problems.
    We know that the data we send to WriteFile() is correct, and that the data which eventually gets sent through the SDCard driver to the SD card is already corrupted.
    We believe that the problem is somewhere in the microsoft private sources between the high level filesystem API calls and the low level device calls that get the data onto the HW.
    We have confirmed that the cards that get corrupted are all good and this is not a case ofpoor quality flash memory in the cards. The same cards that fail under WinCE 6.0R3 never fail under the same types of testing on Windows, Mac OX, or linux.  We
    can hammer the cards with single files writes over and over, but as soon as multiple threads are writing multiple files it is only a matter of time before a corruption occurs.
    One of the big problems is that we are using the sqlcompact DB for storing some data and this DB uses a cache which get's flushed on it's own schedule. Often the DB gets corrupted because other files are being written when the DB decides to flush.
    So we can reproduce the error (with enough time), and we know that data into the windows CE stack of code is good, but it comes out to the SDcard driver corrupted.  We have tried to minimize writes to the file system, but so far we have not found a
    way to make sure only one file can be written at once. Is there a setting or an API call that we can make to force the OS into only allowing one file write at a time, or a way of seeing how the multiple files are managed in the private sources?
    Thanks
    Peter

    All QFE's have been applied we are building the image so we have some control.
    I have build an image which used the debug DLL's of the FATFS and I have enabled all of the DebugZones.  The problem is still happening. From the timings in the debug logs and the timestamps in the data which corrupts the test file I have been able
    to see that the file is corrupted AFTER the write is complete. Or at least that's how it seems.
    We finished writing the file and closed the handle. Then more data is written to other files. When we get around to verifying the file it now contains data from the files that were subsequently written.
    What I think I need to do is figure out in detail how the two files were "laid down" onto the SDCard.  If the system used the same cluster to write the 2 files then that would explain the issue.

  • X pro crashes when multiple documents are opened

    x pro crashes when multiple documents are opened

    Hi travisc74509405,
    Could you please let me know what version of OS are you using.
    Also, let me know how much RAM and free hard disk space is available on your machine.
    What exact dot version of Acrobat X do you have? You might check for updates under the Help menu to use the latest patch i.e. 10.1.13
    Hope to hear from you.
    Regards,
    ~Anubha

  • After Installing Bitdefender 2011 Firefox is very slow and worse when multiple tabs are open

    Firefox performs very poorly after I installed Bitdefender 2011. There was no such problem with Bitdefender 2009. When multiple tabs are open, switching between them is not possible until tab contents are completed.

    As ninjafox says, the problem seems to be the BitDefender Anti-phishing Toolbar. Disabling this through Tools -> Add-ons and restarting Firefox seems to fix the problem for that session. However, the problem then reappears when the computer is restarted, presumably because BitDefender re-enables the toolbar.
    Another way of disabling all add-ons when starting Firefox is to hold down Shift while clicking on the icon (Windows only I think - at least doesn't work on Ubuntu for me).

  • Why does safari display empty page when localhost service are requested using https?

    Why does safari display empty page when localhost service are requested using https and port 37542 (https://localhost:37542/), but displays page properly when regular port is used (https://localhost/).
    Both links return the same json response and work properly in other browsers. Certificate for localhost service was installed to the storage.

    Problem solved.
    I added headers for localhost service response and page displayed normally.

  • CC Bridge slow-.  adjustment brushes not showing size, adjustments when done blind are slow to react

    I am running Imac 2.7 GHz    16 gb ram    600 gb hard drive available
    adjustment brushes not showing size, adjustments when done blind are slow to react.

    Bridge is far more than a file browser.   Bridge does what lightroom does.
    When working with Raw  files, there are tools,   **adjustment brushes** that allow you to dodge and burn raw files.
    These brushes are size adjustable and now with CC, I can not see the size of the tool I am using.
    So you might want to look at Bridge differently, as it is a very powerful tool.
    Anyone else have a similar experience with CC version of Bridge?

  • WRT160n v3 has slow connection when multiple users are connected

    As of last night my router has been producing slow connectivity when multiple users are connected to it, but it's perfectly fine when only one user is connected.
    I am on a laptop myself, but we also have a second laptop and a desktop where the modem and router are set up.
    I have upgraded the firmware so that is up to date.
    We have Comcast Fiber Optics so my internet speed is normally quite fast even when all of my computers are connected.
    Some settings that I have that might help resolve the issue:
    I am using DHCP Configuration.
    My Channel Width is set to 20 MHz and I am using Channel 11.
    The Security Mode is set to WPA Personal. I had it on WPA2 Personal but I read that changing to WPA Personal might help and so far it doesn't seem to have done anything.
    I set the Beacon Interval to 50, Fragmentation Threshold to 2304, and RTS Threshold to 2304.
    Everything else is set to the default factory configuration.
    Just today I received a notice that said "Windows has detected an IP Address Conflict", but ever since I reinstalled the Firmware it hasn't come back. I've rebooted both my laptop and the desktop to confirm it hasn't come back as well.
    I consider myself to be computer savy, but I just can't figure out what the problem is as I've tried everything that I could think of including reconfiguring my router and restarting my modem as well. This problem has presented itself in the past before but unfortunately I cannot remember what I did to fix it.

    Try using inSSIDer to help you find the best channel.
    http://www.metageek.net/products/inssider/
    If that doesn't help, you can try disabling WMM.
    Edit:  You should use WPA2 AES security for best performance.

  • Under mac OS8.02 problem with icon display, because empty icons when multiple apps per icon

    1/ Under OS-8.02 ( on iPad Air & iPhone 5S) icons loose their thumbnail pic on home-screen,
    when multiple apps are stapled within 1 Icon ( eg 10-12 apps for " travel");
    2/ same behavior, when bookmarks are placed on home-sreen - all  these icons
    are turning grey !? - Feature under OS7  has been useful, as one recognizes
    content !

    Hello, Carolyn,
    - Thx, have already done so before AND have resetted in now :
    ->> no change in behaviour ( emty/ grey icons ); 1/ only when you open
    the " container-icon" some, if you have visited them recently have this mini-
    thumbnail symbol. 2/ one workaround, but very tedious, is that by opening each
    of the Apps or Button-links ' refresh" their picture, and look ok.
    - the container icon stays the same ( true for iPhone AND iPad ??)
    regards, hs

Maybe you are looking for