Solved

Most Current Date Max date

Posted on 2008-10-31
5
2,012 Views
Last Modified: 2013-11-15
need to retreive prices current date
0
Comment
Question by:082156r
  • 2
5 Comments
 
LVL 17

Expert Comment

by:MIKE
ID: 22855264
You can do in a variety of ways. How are you wanting to do it? Within Crystal itself? Using SQL?

If within Crystal,...use the GROUP SELECT EXPERT and put your MAX logic there...or you can use RECORD SELECT EXPERT...and pull based on actual DATES....

What exactly are you trying to accomplish?
0
 
LVL 26

Accepted Solution

by:
Kurt Reinhardt earned 500 total points
ID: 22855734
This is a pretty common requirement (show me the most recent/current records), but it's not handled very elegantly in Crystal Reports.  CRXIuser2005 asked a very good question and your answer will help determine the most efficient solution.   Another important question is "are you using a SQL-based database, like SQL Server?"

If you're trying to do this in Crystal Reports AND are reporting against a SQL-based database, the most efficient method is to create a SQL Expression field that identifies the most recent records.  You can then filter the report based on the expression field.  The benefit to doing this is that you pull only the records you need from the database rather than pulling all records and then suppressing them after the fact with conditional suppression or group select formulas.

I've attached a presentation with an example, starting on Slide 29.
The-Power-and-Possibilities-of-S.pdf
0
 
LVL 17

Expert Comment

by:MIKE
ID: 22864682
I would just add that for "efficiency sake" I would recommend using SQL Expression as these are the fastest. If you don't know how to create SQL Logic in SQL Server you may need the help of your SQL Programmer.

I've used  Expressions on many occasions to extract a single data base object and the amount of LOGIC that can be placed within these Expressions is limitless....

M
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now