Solved

Most Current Date Max date

Posted on 2008-10-31
5
2,010 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

11 Experts available now in Live!

Get 1:1 Help Now