Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Filtering out the Group records on a condition Post Reply Post New Topic
Author Message
Nav522
Senior Member
Senior Member


Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Quote Nav522 Replybullet Topic: Filtering out the Group records on a condition
    Posted: 28 Jun 2018 at 8:01am
I have a report where i'm trying to filter out the records in a group but the formula is not working

Selection Formula(Group) I have now in Group record filter is

ProcessDt in ProcessDt and SUM(CALCAMT) = SUM(RETAMT)

Data is below

I have grouping on PID

Scenario#1

Detail :ProcessDt PID TransID CALCAMT RETAMT DIFF
           5/25     1234   DU   1500    3000   
           5/25 1234    RC    0      3000              
           5/25   1234   DU    1500    3000

Data I wanna see on GF is below
GF          5/25   1234       $3000 $3000 $0     


Scenario#2

Detail :ProcessDt PID TransID CALCAMT RETAMT DIFF
           5/28     7658   DU     390      190   
           5/28 7658      RC    0     190              
           5/28   7658    DU     190    190
           5/28    7658   DU    0       190

Data I wanna see on GF is below
GF     5/28    7658        $190    $190    $0
      

Edited by Nav522 - 28 Jun 2018 at 8:20am
IP IP Logged
Sastry
Moderator
Moderator
Avatar

Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Quote Sastry Replybullet Posted: 24 Jul 2018 at 12:52am
Hi

Go in Report-- Group selection formulas and try below

SUM(CALCAMT,{PID}) = SUM(RETAMT,{PID})

Also not getting how you want to filter on ProcessDt, it is a column and you can't compare values in a column without previous() or Next().

Thanks,
Sastry
Thanks,
Sastry
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.