Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Distinct values from a table Post Reply Post New Topic
Author Message
jerryleguer
Newbie
Newbie


Joined: 01 Oct 2007
Location: Puerto Rico
Online Status: Offline
Posts: 1
Quote jerryleguer Replybullet Topic: Distinct values from a table
    Posted: 01 Oct 2007 at 11:50am
Table
 
ID  IDQUOTE   STATE    DATE
1          55           4        1/15/2006
2          55           5        2/15/2006
3          55           6        3/15/2006
4          56           5        12/15/2007
5          57           5         12/15/2007
 
 
I WANT TO PRESENT IN THE REPORT IDQUOTE AND DATE ONLY WHERE THE STATE IS 5.
 
I CREATED A FORMULA FOR THE DATE COLUMN THAT IS NAMED @DATE5 AND THE FORMULA IS: IF STATE = 5 THEN DATE.
 
WHAT IS PRESENTED IN THE REPORT IS
 
IDQUOTE       DATE
55                 
55
55                 3/15/2006
56                12/15/2007
57                12/15/2007
 
THIS IS WHAT IS PRESENTED IN THE REPORT. I DONT WANT THE TWO ROWS WITH THE 55 IDQUOTE TO APPEAR. HOW CAN I DO THAT?
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 01 Oct 2007 at 11:57am
The problem is that you are still allowing the non "5" states into the report and just setting their dates to null. Rather than using a formula for displaying the date field, use a record selection formula so that the non "5" states don't even get selected.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
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.020 seconds.