Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

getting latest date data in the crystal report cross tab

Posted on 2011-09-08
2
Medium Priority
?
279 Views
Last Modified: 2012-05-12
Hello Guys,
I have an issue with the cross tab.
My Data in the DB looks like

       Test                           result                     collection_date
        test1                             3.5                         01-03-2011
        test1                            1.1                           01-14-2011
        test2                              8.0                         05-08-2011
        test2                              11.9                        05-13-2011
I am building the cross tab As
 Rows=test
 Column=Collection_date
data in the crosstab=Result
so my question is- i only need the last value for each month to be printed in the report which is cross tab, How can i make this?
0
Comment
Question by:RaoVP
2 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 36504135
I think you will have to select the data you want through SQL.

I can't think of  a way to get it through the cross tab.

mlmcc
0
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 total points
ID: 36504179
This sort of requirement can't be done in CR formulas.
You have to sort out the data either in the database or by using a SQL command, so that only the relevant records are selected.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Loops Section Overview
Suggested Courses
Course of the Month12 days, 10 hours left to enroll

971 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