Trouble trying to get correct AP Check Amount total on a report

Okay, the challenge is to try and explain my situation well. I am in Discoverer Plus. I am working to develop a Discoverer report that will show, for accounts payable application, a summary report by bank name and job number, a check count, invoice count, and check amount total. For simplicity sake, since I have the problem once I go past one table, I am dealilng with tables ap_checks_all and ap_invoice_payments_all from EBS, the tables joined on check id. Now, if I work just with the ap_checks_all table, I can easily get the correct sum of check amounts (column name in the table is AMOUNT). However when I bring in the invoice payments table, then I run into trouble. I first did the SUM data point for AMOUNT, and got a number that was way too high. Figured out that is because anytime I have multiple invoices on a check (which is most of the time), the check amount gets added in for each invoice. So if check amount is $100.00 and the check pays 5 invoices, $500.00 is added to the total amount, instead of the just the $100.00.
So I tried the SUM_DISTINCT function next - SUM_DISTINCT(AMOUNT). Got me a lot closer, but now my total was too low. Figured out that was because if I had separate checks with the same check amount, that check amount only gets added in one time. Say Check 18 is for $100.00 and Check 39 is for $100.00, I only get $100.00 into the total instead of $200.00. Which when you think about it, is exactly what the SUM_DISTINCT function means. Since the chances of check amounts being duplicated are low, that is why I get close to the right number, but when dealing with tens of thousands of checks, check amount duplication does happen.
So on my totals for the SUM_DISTINCT column, I finally figured out that a CELL SUM got me closer to the right number. I only had a problem now when, on the same bank name and job number, would still have duplicate check amounts at that key (group by) status level. Percentage wise, my error is low - off maybe $200,000 out of $180,000,000. So close to the right number, yet so far.
The same thing happens in raw SQL. If you think about the raw join result, you can see what is happening -
check 1, check 1 amount, invoice 1
check 1, check 1 amount, invoice 2
check 2, check 2 amount, invoice 3
check 3, check 3 amount, invoice 4
So if you do SUM(CHECK AMOUNT), well yeah, it will add in the check 1 amount twice.
If you do SUM_DISTINCT(CHECK AMOUNT), then check 1 amount only gets counted once. Great. Ahh, but what if check 3 amount = check 1 amount? Oops, the check 3 amount is excluded.
Does anyone know of a way to get around this problem? I have been playing around with the functions, but the SQL reference does not give many examples to help understand all the various optional parameters. I know, in vague concept, what I want. Something like -
SUM(AMOUNT) DISTINCT ON CHECK_ID, or
SUM_DISTINCT(AMOUNT) DISTINCT ON CHECK_ID.
CHECK_ID is the internal Oracle id number for each check, from the ap_checks_all table. Check number is not unique enough, since different bank accounts may be using the same check number in the same time period. So I want a way to be able to add my check amount to the total one time when there are multiple invoices on the check, and then get each invidual check amount (one time) added up to get my check total amount.
Like I said, no problems with Discoverer or raw SQL if doing just one table. But once I join checks to invoice payments, poof, I run into trouble.
I did not think I was trying to do anything unusual. So quite surprising that having so much trouble trying to find a way around this problem.
Hope this detail explanation makes some sense. Thanks for any help/insight anyone can give me.
John Dickey

Michael,
Nope, that does not work. It truly just gives me an average. My desired (table) report row format is this -
Bank name , Job Number, Check Count , Invoice Count , Check Amount Total
So this is a SUMMARY report. Not a detail report. If I do detail, I do not have any problems - I get my correct check amount total. If I do just the ap_checks_all table, I get the correct amount (but then cannot get my invoice count). I get the correct check count (count distinct on check id). I get the correct invoice count. When I added a calculation column using the Average function as you suggested, I see on each row what is likely the average check amount. Which is exactly what you would expect to see.
Now I did get a brainstorm and tried this. I calculated both the average and average distinct on check amount, then multiplied each by my check count. Darn. Still does not work. The Average Distinct * Check Count = SUM_DISTINCT(CHECK AMOUNT), which I already have. Average Distinct apparently only includes a duplicate check amount one time in calculating the average (which when you think about it, makes sense, darn it). The AVERAGE function still has the problem, it looks like, of including the check amount each time on checks with multiple invoices (and thus multiple rows in the join result) in determining the average. Which when you think about the raw join result from joining checks to invoice payments tables, makes sense. The result of AVERAGE * CHECK COUNT is better than the SUM(AMOUNT) column, but not as good as the SUM_DISTINCT(AMOUNT) column.
Any other ideas? Interesting that something that seems like a pretty basic thing to do, if it does have a solution, is not a very obvious/simple solution.
John Dickey

Similar Messages

  • I am having trouble trying to get my address book from my mac (just downloaded Lion for this purpose) to my 3G ipad. Set up an icloud account but still confused! Please help !

    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah

    blacksheepfibers wrote:
    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah
    The address book syncs via iCloud, not Bluetooth or iTunes.
    You upgraded to Lion so you could use iCoud.
    On the computer. go to Apple menu > System prefs > iCloud.
    Sign into your iCloud account.
    Tick everything.
    This enalbes the se items syncing to iCloud.
    On the iPad, Settings > Mail, Contacts, Calendars.
    Create a new iCloud account.
    Sign in with the same AppleID as your computer.
    Settings > iCloud and turn everything on.
    BAM!
    That is all you need to do.
    Your contacts (and all other checked items checked) will sync between computer and iPad.
    No need to use iTunes

  • Installation CS3 and trying to get past upgrade check

    Im doing a reinstall of my CS3 package on a new computer. I get everything installed and almost running but then get a window which is called upgrade check. I cannot seem to get past this step due to having to provide serial numbers i don't have. I don't want to upgrade. I just want to get CS3 running on this computer. Any help will be appreciated.

    mjnash51.
    In order to activate Upgrade version serial number, it is necessary to enter Previous Qualifying version serial number. You had any previous version like CS2, if yes enter the serial number on upgrade check window.
    Find your serial number quickly

  • Still trying to get correct serial numbers that computer will accept

    round and round and round and round.  Keep coming back to here

    This appears to be one of three postings for the same problem ( two other forums ) and you are getting responses in those others but do not appear to be responding to them.
    You haven't provided any information in this version that would enable anyone to provide much more than the following possible information:
    To locate the serial number :
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    Serial number and activation chat support (non-CC) :
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )
    If that information doesn't help you get further alomg then it will help if you explain the software involved and what actions you have taken that are failing for you..

  • % is not getting correctly for the Grand Total Row in OBI10g

    Hi,We have a report in table view with the following structure.
    Name     Target     Act     %Ach
    ABC     100     50     50
    XYZ     200     10     5
    Total     300     60     27.5
    The value for the %Ach Total row should be 20% but in the report it is showing as 27.5.
    any one observed this ,how to correct this??
    Thanks

    Hi,
    To get grand total correctly..configure instanceconfig.xml and put..
    <ReportAggregateEnabled>true</ReportAggregateEnabled> between <serverinstace>..
    refer..
    http://obiee101.blogspot.com/2009/09/obiee-grand-totals-with-calculated.html
    Hope it solves ur problem

  • How to get correct opening blance data for the quarterly report in BOFC?

    Hi all,
    I  have a problem with getting the opening balance for the quarterly report.
    i would like to keep the beggining balance data for the end of previouse year. (eg: now is 2010, then keep the begginig balance at Dec.2009 for each quarterly reporrt through the year in 2009).
    however, for example in the second quarter, if i choose the beggining balance of Dec.2009 in the Consolidation definition, there is a problem that consolidation FS does not include the manual journal entry that ive entered at the first quarter such as goodwill.
    Do I need to make manual journal entry at all the quarterly reporting period if I want to set the beggining balance for the previouse year end?
    Could somebody please tell me how to remediate to this issue?
    Or how do you manage with the opening balance in BOFC?
    Thanks & Regards,
    Hitomi

    Hi Michael,
    HRMS appliocation
    database 10.2.0.4
    windows XP
    ebs 11.5.10.2
    One of our user using disooverer 4i desktop and administration edition on old windows 2000 machine and connecting to schema.
    We are decommision old windows 2000 machine.
    I have installed disooverer 4i desktop and administration edition on new windows XP VM box and trying to connect to same schema which was used with old
    desktop and asking me to create EUL. What is theat I should be doing to use new one same as old one?
    Old box is still there.
    Thanks.

  • How to get Case Sensitive Check Box at Search Page

    Hi Everyone,
    I am trying to get case sensitive check box at the bottom of the search page, for that we have to set any propert or we ahve to do anything else.
    Please Help!!!!
    Thanks,
    Amit

    Have never really thought of it. One thing you need to do is set the Case Insesitive Searching Option correclty in PeopleTools Options. I can't find any other setings. But it might have to do with the fields that are on your Search record. My guess is if any of the Search Fields are of type Character and format Mixedcase then the Case Sensitive check box will be displayed automatically.

  • Trying to get clean title transitions with CS5

    Hi -I have lot's of trouble trying to get a consistent, clean transition in CS5. Mulple systems, multple configs but here is an example of the latest.
    HP Z800
    Quadro FX 5800
    12 GB RAM
    2 x 6core XEON (X5680)
    Atto R380 RAID controller
    CalDigit HDOne Storage
    example:
    1. place title with a transparent drop shadow, fade in, the fade won't be smooth.  it will 'pop' at the end of the transition - the fade is smooth until the very end, and then jumps to opaque (or whatever opacity level is set for title/graphic)
    Rendering makes little difference, and in the case of the video behind it can sometimes result in additional blooming, jumping in opacity levels and so on.  For example if I have a cross dissolve from black on video clip, it will preview fine, but after rendering we will get color shifts, or opacity jumps instead of a smooth fade in.
    Changing from GPU to software will clear the video previews to resolve the rendered area problems, but then we are just back at unsmooth transitions of titles and so on.
    Have changed various rendering settings, codecs etc...
    any help?

    http://forums.adobe.com/message/2426130#2426130

  • Trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper

    trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper ad - after I install what I thought was an update since I already had MacKeeper, it would not allow me to continue without buying the new one. Make a long story short I switch to Firefox and deleted as much as I could of Safari (files, preferences etc) Now I'm at OS Yosemite X 10.10.2 and would like to get Safari up and running again - I've searched for Adware in applications etc but could not find it. Found what to do from the community, but before I go that route...Do I have to know where or if I actually have this spyware?    And if I were to reinstall  Maveric - would my files and such be undisturbed?  so that only Safari would be replaced?    I"M LOST .... (as if you couldn't tell)
    I've been working with Mac for 30 years or more and although I'm hands on taught the only thing I lack is the newer "buzz words" so if you can help me out - please make it simple ??  thanks

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Having trouble trying to open links on my recieved mail.  The only response I get when I click on the link is, "No associated application could be found".

    Having trouble trying to open links on my recieved mail.  The only response I get when I click on the link is, "No associated application could be found".
    How can I correct this problem?

    What type of file is it? What is the extension (the 3 letters after the . (DOT)) of the file?
    Could be it is a Windows Exe file and simply will not run on a Mac. Which is good because anyone that would send you a excute (.EXE) file is up to no good. just my opinion.

  • I am having a problem trying to get the new version of itunes to download correctly to my laptop. I have updated my ipad to the new ios 7, and windows is showing that it has been downloaded but when I connect my ipad, it is saying I have to download itune

    I really need HELP!!! I have a laptop that runs with windows vista, and I have been having issues trying to get it to download the new version of itunes that would be compatible to the new version of ios 7 that I have already updated on my ipad. I have downloaded this three times, it shows that the download is complete, but when I connect my ipad to my laptop it is still telling me that I have to download the new version again and it will not sync with my ipad until I do. Does anyone else have this issue and can anyone help me figure out how to correct it? I would be most grateful!!

    sign out from the creative cloud and then sign back in
    Sign in, Sign out | Creative Cloud desktop app

  • Trying to get into the app store and it asks for my password. The problem is that it is showing an Apple ID I don't use ghosted in. I can't figure out how to use my correct ID.

    Trying to get into the App Store to update some apss. It asks for my password but the problem is that it is showing ghosted an Apple ID I don't use. Can't figure out how to fix it.

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
    Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select  Other...
    A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
    Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
    The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
    Log out and log back in. Test.

  • I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    carolinechx wrote:
    i know the description may be a little bit too confusing
    Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read.

  • My iMessage for my Macbook Air is not working. It says no delivered with a red ! next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time. I have done about everythin

    My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • When trying to get updates it says that I am not conntected and to check my network.  How do I fix this?

    When trying to get an update, a message reads that it cannot connect and to check the network setting.  I can get the internet, so I dont know how the fix this. 

    Temporarily turn off the anti-virus and firewall software on your PC before attempting to get the update

Maybe you are looking for

  • AP Cheque Print(Void Cheque)

    Hi All, I am doing the AP Cheque print report. I have the requirement like the following. If the user will make a payment of 23 invoices(23 lines) per cheque then the first page will contain 22 lines(invoices) and the cheque of the first page should

  • Scrambled display after boot issues?

    This afternoon, Netscape crashed on me, and I decided to reboot the computer. It refused to boot-hung on the initial screen, with the grey background and Apple logo with no 'loading' indicator. I gave it about half an hour, since it sometimes hangs t

  • I can't create apple ID in app store

    I can't create apple ID in app store because it need to contact itune support.what should I do?

  • Just installed Photoshop CC and it will not update

    Just installed CC on a new machine and it will not update, says failed with a 49 at the end of the message, tried restarting and that did not help.  Did get lightroom to install and update without any problems.

  • Using the iplanet-am-static-group-dn attribute

    Hi, I'm trying to construct a user query filter that would return me all the users in a particular static group, in order to integrate with some Synchronisation Services in Plumtree Portal. I'm thinking of using the iplanet-am-static-group-dn attribu