Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Row Visability based on group

Status
Not open for further replies.

sardine53

Programmer
Jul 4, 2003
79
US
SSRS 2008

I am attempting to convert a report from Crystal and would love assistance with my issue.
The groups are ID and Date. I need to only display the Comment from the most recent date for each ID and hide the rest.

ID Row Date Comment
123 1 1/3/13 Remind me to call
123 2 1/3/13 the prospect
123 3 4/5/13 I got an appointment *
123 4 4/5/13 with Joe Smith *
456 1 2/7/13 Met Sam Jones at
456 2 2/7/13 the diner for lunch
456 3 4/16/13 When to an evening *
456 4 4/16/13 baseball game with *
456 5 4/16/13 Sam *

Is this possible? Thanks in advance!
 
You could do it in the SQL source...

SELECT * FROM [Comments] CCC
WHERE [Date] = (SELECT Max([Date] FROM [Comments] AAA WHERE AAA.Date = CCC.Date
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top