on 07-19-2011 10:58 PM
I designed a report and checked my totals with no problem on one location, but needed to add misc charges on another location. Because my transaction file added the misc charges to each item line of the invoice, I added a table that would include the misc charges at the invoice level. When I did that, one invoice of the location that was working is now duplicating. All the remaining invoices are fine. This record has nothing to do with the misc charges. Can anyone tell me how to figure out why the one record is duplicating?
Sounds like multiple misc. charges per invoice. Do a sum of those charges.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried to change the joins up with no luck.
I can't do a sum of the charges because the transaction file repeats the misc charges on each line even though each invoice has only one charge. I used a running total to get the correct amount of miscellaneous charges and that's when some of the records duplicated. There are only two customers which have miscellaeous charges. I'm wondering if I can make a formula specific to those two customers.
Hi
Yes, that is better Idea. If you want to display zero in place of Misc for other csutomers then follow this formula :
If in [xxxx,yyyy] Then {runningTotal Misc} else 0 or If you want to suppress the entire line in your report then go in section expart and write suppress condition like : if in [xxxx,yyyy] Then false else true
Thanks,
Sastry
This is what I tried:
if {TransDetailCustomerView.CustNo} in [acct,acct] then Sum ({TransDetailCustomerView.InvoiceNet}, {TransDetailCustomerView.InvoiceNo})+{#MISC CHARGES}
else
Sum ({TransDetailCustomerView.InvoiceNet}, {TransDetailCustomerView.InvoiceNo})
I used a running total for the misc charges and it worked on the location where there are actually misc charges, but then it still duplicates some records on the others.
Since the misc charges repeat in the transaction file how would I write a formula to only select misc charges one time per invoice? That would allow me to remove the table that has invoice summary info and not item info.
I didn't have duplicate records before I added the summary table.
Hi
It could be because of table linking. What is the join you are using ? Try to change the joing type and check.
Thanks,
Sastry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.