Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Post Reply Post New Topic
Author Message
dletourn
Newbie
Newbie


Joined: 02 Dec 2010
Location: United States
Online Status: Offline
Posts: 2
Quote dletourn Replybullet Topic: Formula Help
     Posted: 02 Dec 2010 at 8:31am
Hi there, new to this forum!

I am running an open aging report for my accounting dept. and in crystal reports it shows everything, including invoices that have already been paid.  I think there is a way to sort out this info, but I don't know the formula.  Here is a sample of the data:
Vend_No Vchr_No Vchr_Chk_Cd Vchr_Chk_Type Ap_Opn_Dt Vchr_Dt
76G 27854 V 1 20080806 20080731
76G 27854 X 3 20081117 20080731
76G 28201 V 1 20080916 20080831
76G 28201 X 3 20090120 20080831
76G 28711 V 1 20081111 20081031
76G 28711 X 3 20090209 20081031
you can see that there is a Vchr_No that is duplicated when something is paid.  How can i sort out everything that has been paid to show only open items.

thanks!
Danielle
IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 02 Dec 2010 at 8:45am
Is it the first 5 characters of the vchr_no that are duplicates ?  Can you use the vchr_chk_type and suppress the rows with either the 1's or the 3's ? 
IP IP Logged
dletourn
Newbie
Newbie


Joined: 02 Dec 2010
Location: United States
Online Status: Offline
Posts: 2
Quote dletourn Replybullet Posted: 02 Dec 2010 at 10:16am
well, the only problem with doing it that way is that it will still leave me all the 1's or 3's (depending on which i suppress) but what i really want is for the duplicated to be removed entirely.  In other words, if i suppress all the 3's, which are payments, i am still left will all the 1's, whether they have actually been paid or not.  See what i mean?

Thanks for your response though!
Danielle
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Posted: 02 Dec 2010 at 12:08pm
Maybe you can first group them by the first 5 characters of the vchr_no and then checking whether any of the groups have more than 1 item (assuming vchr_no's are unique)

The formula itself would probably amount to group_count = 1 or something.


Edited by Keikoku - 02 Dec 2010 at 12:13pm
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum