Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Retrived All data based on filter Post Reply Post New Topic
Author Message
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Topic: Retrived All data based on filter
    Posted: 17 Mar 2015 at 7:59am

Hello,

I have date like this

Patient Code
x1        150.1
x1        170.5
x1        ABC
x1        230.00
x1        001.5

I need data specific to patients who has both 150.1,ABC codes. If I filter "code" I am not getting data.

When I use group by and create formulas
@code1: if code1 = '150.1' then 1 else 0
@code1: if code2 = 'ABC' then 1 else 0

In group selection I use sum(code1) = 0 and sum(code2)= 0 I am getting data I am looking for. However when I ran the report for huge amount of data report is running relatively.

Can you show me another way to solve this besides Aliasing or group by ?
chand
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Mar 2015 at 8:33am
can you write a stored proc or command as your data source?
IP IP Logged
achandana01
Groupie
Groupie
Avatar

Joined: 20 Jul 2011
Online Status: Offline
Posts: 59
Quote achandana01 Replybullet Posted: 17 Mar 2015 at 10:57am
yes I can write command.
chand
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.