Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Eliminating consecutive records Post Reply Post New Topic
Author Message
flazaro28
Newbie
Newbie


Joined: 30 Apr 2009
Location: Poland
Online Status: Offline
Posts: 35
Quote flazaro28 Replybullet Topic: Eliminating consecutive records
     Posted: 30 Apr 2009 at 8:52am

Consider this scenario

 
userid    eventtype
 
1          click
1         action
3         click
3         click
4         click
 
 
I need to design a report in such a way that any user id which has eventype click followed by action should be supressed
 
and remaining eventtypes other than that should be considered
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 Apr 2009 at 9:20am
You could conditionally suppress the detail section as:
(table.userid= next(table.userid) and table.eventtype="click" and next(table.eventtype)="action") or (table.userid= previous(table.userid) and table.eventtype="action" and previous(table.eventtype)="click")
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