I am trying to rewrite some Crystal 9.0 reports in SSRS 2005
My Select query is as follows:
I then want to group by Client_Ref and show the record with the latest DateStart. In Crystal I grouped by Client_Ref and then defined a group selection formula:
thus returning only one line for each client (the record with the latest DateStart).
I cannot see how to do this in SSRS. Any help gratefully received.
My Select query is as follows:
Code:
SELECT Table1.Client_Ref, Table2.DateStart,
FROM Table1 LEFT OUTER JOIN Table2 ON Table1.Client_Ref = Table2.Client_Ref
WHERE (TABLE2.DateStart <= '2008-11-30')
I then want to group by Client_Ref and show the record with the latest DateStart. In Crystal I grouped by Client_Ref and then defined a group selection formula:
Code:
{DateStart}= Maximum ({DateStart},{Table1.Client_Ref})
thus returning only one line for each client (the record with the latest DateStart).
I cannot see how to do this in SSRS. Any help gratefully received.