Report not aggregating correctly. What am I missing?

I am writing a report in BI Publisher to the date a Voucher was paid, minus the date a Voucher was due, to see how many Vouchers we have paid 1-30 days late, 31-60 and 61-90 days late. I successfully wrote an expression in PS Query to generate the number of days late (or early), its it's own column in the query.
PS Query Results:
Vendor ID---------Vendor Name---------Voucher Number---------Voucher Amount---------Paid Date---------Due Date---------Calculation
0000012-----------ABC Supply------------0000000214---------------$2,456.23------------------12/20/2012-----12/10/2012------10
Now, I have a RTF template that has the Vendor ID, Vendor Name, and 4 columns with conditions. The four columns are all using the sum of the Voucher Amount. The first of the 4 columns has a condition that says if Calculation is between 1 and 30, then sum the amount, the second has a condition that says if Calculation is between 31 and 60, then sum the amount. And so on.
I have a repeating loop on the Vendor ID, because I only want to show 1 row for each Vendor, but want to then sum up all the voucher amounts and place them in the right columns based on the Calculation number.
What I'm getting is 1 row per Vendor (like I want), but it's only looking at the first row for that vendor in the query results, then placing the sum of all the vouchers for that vendor in the column that corresponds with the first row for that vendor.
For example, if Vendor 0000012 has 50 vouchers that total $150,000 its placing $150,000 under the 1-30 column (because the Calculation is 10) that I had setup, instead of looking at each voucher and summing it to its correct column.
How can I get 1 row per vendor, and get all the correct amounts to be placed in the correct column based on the calculation? Hopefully I have provided enough information. I was hoping to provide screenshots but there is not place for me to upload. Thanks in advance.
Jonathan
[email protected]
Edited by: 987043 on Feb 8, 2013 9:49 AM

Hi,
Refer below code, hope this will give you the desire output
<?for-each-group:VendorDetail;./Vendor_ID?> -- 'VendorDetail' is name of the group, change it according to your group name
<?for-each:current-group()?>
<?sum(current-group()/VoucherAmount)?>
<end for-each>
<?end for-each-group?>
Also you can send me your RTF & XML on [email protected]
Thanks,
Sandeep

Similar Messages

  • My Mother in law messed up my Adobe reader some how to the point that it is no longer in my computer. I have tried to download it from the internet but it is not working. What am I missing? what else do I need to do? I am not even able to watch youtube...

    My Mother in law messed up my Adobe reader some how to the point that it is no longer in my computer. I have tried to download it from the internet but it is not working. What am I missing? what else do I need to do? I am not even able to watch youtube...

    Soccerdm,
    a direct download of Adobe Reader X 10.1.4 (which seems to be the most recent standalone version that runs on Mac OS X 10.5.8) is here.

  • ITunesU pages do not display correctly, theme colors are missing ?

    Our iTunesU pages do not display correctly, theme colors are missing ?

    Having the same problem with our iTunes U page.

  • Track did not download correctly, what to do to reimport it without paying for it?

    track did not download correctly, what to do to reimport it without paying for it?

    Ok. Problem resoved.

  • IAhave am iPad 1. I downloaded PrintCentral Pro and also the Bonjour Printer Wizard as prompted. I still can not print. What am I missing?  I am new to this...Please help.  Thank you!

    I have an iPad 1. I downloaded PrintCentral Pro and also the Bonjour Printer Wizard as prompted. I still can not print. What am I missing?  I am new to this...Please help.  Thank you!

    Depending on what you are trying to print you may have to print from within the app.  For example, to print an email or web page you have to open what you want to print from print central pro.  If your printer is not a supported printer there is another app from the same developer that allows you to print from your iPad to your printer via a wired pc.  You may want to drop them an email.  They have pretty good customer service and respond to emails very quickly.

  • Is anyone out there finding OSX Lion a disappointment compared to previous Mac OS?  After nearly 20 yrs of using and enthusing about AppleMac, I am suddenly not enthused.  What am I missing?

    Is anyone out there finding OSX Lion a disappointment compared to previous Mac OS?  After nearly 20 yrs of using and enthusing about AppleMac, I am suddenly not enthused.  What am I missing?

    You're not heavy on specifics on what you don't like.
    Most people have little technical expertise but are wanting more and more, requiring more complex computers, ideally ending up with one from Star Trek where you basically don't have to know anything how to really use a computer and it just provides you with the exact answer you need to a not particularly well-phrased query.  If you're missing things like configuration options and the rest, well frankly I think many people are happy not to have to make complicated decisions for themselves such as in which opening do they insert a system installer disc.

  • I'm able to transfer iPhotos from Mac to MacPro but data I've added to photos does not transfer. What am I missing? Tried using Thunderbolt, AirDrop, Flash drive with no success.

    I'm able to transfer iPhotos from Mac to MacPro but data I've added to photos does not transfer. What am I missing? Tried using Thunderbolt, AirDrop, Flash drive with no success. Do I have to use iCloud for 800 vacation photos or re-enter all the data after transfer? 

    There is no support for mirroring or syncing iPhoto libraries or Aperture libraries.  You can however export partial Aperture libraries on one mac and merge them into other libraries on a second Mac.
    To transfer your edited photos open your photolibrary in Aperture and and collect the edited photos in an album. Then select the album and use the command "File export > Album as new library". This will export all edited photos as a new Aperture library. Copy this library to your other Mac and import it with "File < Import > Library to your other photolibrary on that computer (assuming you are having the same Aperture version on both macs). When merging the new library into your Aperture library, opt to keep the newer versions from the imported library.  iPhoto 9.5.1 will be able to open these merged Aperture 3.5.1 libraries.

  • I installed Yosemite, upgraded my library as prompted and iPhoto still will not open.  What am I missing?

    I installed Yosemite, upgraded my library as prompted and iPhoto still will not open.  What am I missing?

    Juanwaye wrote:
    I am trying to install iphoto from ilife 11 on my imac. When I install the program iphoto will not execute. It tells me I need to update the software. I click on upgrade and it tell me the software is up todate. The iphoto still will not open. What am I not doing?
    Backup your library, doenload the 9.1 update and apply it
    LN

  • CR XI landscape report not printing correctly on one particular server

    Post Author: BronxJedi
    CA Forum: General
    I have a report that was designed in Crystal XI (11.5.0.313) that is not previewing or printing correctly when the users access it on our production server. The report is designed as a landscape report, for an 8.5x11 size paper; however, when this report is previewed on the production server all of the data is pushed over to the left, as though the computer is trying to cram it all into a portrait-sized layout. Furthermore, when viewing the Document Properties of the report in preview it says that the page size is 11x17!
    This report, I should mention, is part of a web application designed in Visual Studio. When users select a report to run the application actually displays the report as a PDF document in an Adobe Reader window. So, when I mention "preview" in this post it is not the Crystal Reports print preview window but rather an Adobe Reader window previewing the report as a PDF document.
    None of the other landscape reports in this application are demonstrating this same problem. Also, the report in question previews and prints perfectly fine when it is run on other computers or servers.
    Currently, we have eliminated design flaws in the report as a suspect because all of the pertinent properties in the report's design are set properly. We have also eliminated the users' printer settings as the culprit because the problem exists no matter who attempts to print that particular report and no matter what printer is chosen.
    Right now we are operating under the assumption that the problem lies within the server (which is a new box that just replaced one which died...the hardware on this new box is different, I am told by our server guy, but everything else was mirrored from the old box); however, we are unsure of what to examine in our attempts to fix it.
    The production server is running Win 2003 Server, R2, SP2 and there are no apparent printer drivers installed on the production server. We are using Adobe Reader 8.0 on all machines that can access this report.
    If anybody out there has had this same problem or knows of anything else we can check (either on the production server or within the report's design) we'd appreciate it. Why would only this particular report be exhibiting this problem and why on Earth would the Adobe Document Properties think that the page size is 11x17?
    Thank you,
    Sean

    Once you find an erroneous report, can the report be re-run over the same data (same parameters, same underlying data records after record selection) and the error duplicated?
    Can you dump the data read by Crystal in the Detail section of the report?  (Verify the data is as expected...)
    Can you post the stored procedure?  (Please wrap it in  markup to keep it readable.  A sample of both crosstabs wrapped in the markup would be helpful, too.)
    Carl

  • Transaction Register Report not printing Correctly

    Hi,
    In Accounts Receivables Transaction Register Report is not printing correctly..
    Once I issue print job for Transaction Register Report...Blank page is coming..
    what is the cause..please suggest

    Does the print work properly with other reports? If so, I suggest you run the report in debug mode. Please check (Note: 226013.1 - How to run AR RXi reports in debug mode) for more details.
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=226013.1

  • Crystal report not showing correctly in firefox after windows update

    From the past six months, crystal reports has been displayed without the print toolbar and the formatting is completely lost in firefox. Previously we found that when we uninstall the windows updates KB2836942, KB2836943, KB2836946, KB2836947, the problem is resolved. But with more and more windows updates that are automatically updated on the servers, it is getting practically impossible to track which windows update creates the problem. There is absolutely no issue in Chrome, IE and Opera; it is only with firefox that this problem occurs; so we feel it is more of a firefox issue than a windows update problem. It is not just in one machine, but we found the same issue at all our customer's servers (more than 10). The servers are a mix of windows 2008, windows 2012 with iis 7. We also observed the same problem on windows 7 machines. We have been recommending firefox as the best browser for our software to all our customers, and with this problem cropping up, we are badly handicapped. Kindly let us know how to sort this issue. We have provided the link below for your perusal. When you open it in chrome it works fine, but on firefox it does not display correctly:
    http://54.209.141.3/Reports/Report.aspx?reportname=RptProductWiseSalesDetails.rpt&paramlist=@FromDat,01/01/2011;@ToDat,01/26/2014;@BranchSlno,1;@FranchiseSlno,1;@FirstCol,B;@DateType,B;@SaleChannel,A;@ProductTypeSlno,0;@ProductSlno,6;@ColorSlno,0;@FinancierSlno,0;@ChannelTypeSlno,0;@ChannelSlno,0;@SalesPersonSlno,0;@SaleStatus,L;@BillingType,A;@LoginUser,admin;@LoginBranch,Keerthi%20Triumph%20Bangalore;@Franchise,Triumph;@AddCustomerDetail,0;@SaleCodeSuffix,&loadfromsql=0

    Those four updates all relate to the .Net framework, and involve how an ASP.Net application recognizes different browsers.
    * http://support.microsoft.com/kb/2836942
    * http://support.microsoft.com/kb/2836943
    * http://support.microsoft.com/kb/2836946
    * http://support.microsoft.com/kb/2836947
    Each contains this Note:
    <blockquote>There is a configuration switch to be used to revert back to the old behavior: <br>
    <pre>&lt;appSettings>
    &lt;add key="aspnet:UseLegacyBrowserCaps" value="true" />
    &lt;/appSettings></pre>
    </blockquote>
    I think the downside of turning off the changes is that IE 11 will not be well supported.
    That's all I know so far...

  • I have an iPhone 4 on contract and its not working correctly , what should I do ?

    I have an iPhone 4 on contract , I only have this 5 and a half months and the iPhone is not working correctly and i do not have insurance .. What should I do ??

    It sounds like you did not purchase it at the Apple store? That doesn't matter - you can still take it to Apple to troubleshoot it.
    You can also try to troubleshoot it with the help of the folks here - if you want to do that, let me know and I'll ask that your post be moved to the iPhone forum where you're more likely to get knowledgeable answers, ok.

  • My laptop sound is not working correctly what to do?

    HP Pavilion DV6-3031tx os is windows 7 64 bit and i have taken my laptop in dubai can i get the warrant in india.?

    Hi,
    Please do NOT post many threads for same problem. What do you mean "not working correctly" ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Report not rendering correctly

    Post Author: Fahvray
    CA Forum: General
    I am creating a Crystal Report for a VB.Net application. It seems after adding text items in the page header, the text in the report does not render correctly. The actual data appears ok, just text items appear to be shifted up, so that only the bottom of the text is visible.
    If I remove the page header items, it works fine.
    I have other reports in this application that work fine. And this report seems to work ok on other developer's machines.
    I have removed and reinstalled Visual Studio, including the Crystal Reports section.
    Any ideas?

    Post Author: sharonmtowler
    CA Forum: General
    does it appear that can grow is set on the text objects?

  • LabVIEW 8.5 - error: M&A Explorer or Instrument I/O Assistant is not installed correctly: what to do?

    Dear NI creators and users,
    I freshly installed the LabVIEW 8.5 and the default set of device drivers (on a new Windows XP machine), all of which I downloaded as disk images from our university central repository (we have a site-wide license). The first thing I tried to place in my first VI was the "Instrument I/O Assistant" and I got this message: "Measurement and Automation Explorer or Instrument I/O Assistant is not installed correctly. Please install these from the LabVIEW Driver CD." I tried to repair the installation, but no change. The M&A Explorer comes up fine, when I select it from the Tools menu, so I doubt, that the problem is there. Needless to say, the "Instrument I/O Assistant" throws the same error when double-clicked in the template file.
    Does anybody have a similar or the same experience? What can I do to solve this problem? Perhaps I should add that the computer with LabVIEW is intentionally not connencted to the internet, so in case the solution involves an update, I would very much appreciate some guidance to an off-line update
    Many thanks to all for any helpful remarks.
    Daniel
    Solved!
    Go to Solution.

    Hi Daniel,
    the following knowledge base contains some information how to troubleshoot: 
    http://digital.ni.com/public.nsf/allkb/DC808866AF7D5C0986256FCE006E9BAB?OpenDocument 
    Maybe you didn't install the NI-VISA or NI-488.2 driver. 
    I wish you Merry Christmas and a Happy New Year.
    With best regards 
    Ralf N.
    Applications Engineering
    Germany 
    PS:
    If that wouldn't work for you, download the latest driver-CD from our website and install it. ( It may take a while.  )
    http://joule.ni.com/nidu/cds/view/p/id/1079/lang/de 
    I'd recommend to use an USB-harddisk for transferring the files.  
    Message Edited by ralfn on 12-23-2008 02:29 AM

Maybe you are looking for