I'm working on a report in SSRS 2008 R2 that is a simple table of employees, sorted by date values of their current contract end dates. Currently, the dataset is unsorted, but the report uses two sort conditions on the Tablix is sorted so that:
1. All employees with no current contract are listed first (in descending order by how long they've been without a contract)
2. All employees with current contracts are listed in ascending order of when their contract expires.
So currently, the report renders like this:
Employee | Contract End |
Emp 1 | 6/1/2012 |
Emp 2 | 8/1/2012 |
Emp 3 | 3/1/2013 |
Emp 4 | 6/1/2013 |
The trouble is, some employees have multiple open contracts, and the report shows them like this:
Employee | Contract End |
Emp 1 | 6/1/2012 |
Emp 2 | 8/1/2012 |
Emp 3 | 3/1/2013 |
Emp 4 | 6/1/2013 |
Emp 3 | 12/31/2013 |
Is there any way to group the entries for the same employee sequentially, ignoring the existing sort on Contract End Date? I want the report to render like this:
Employee | Contract End |
Emp 1 | 6/1/2012 |
Emp 2 | 8/1/2012 |
Emp 3 | 3/1/2013 |
Emp 3 | 12/31/2013 |
Emp 4 | 6/1/2013 |
Any ideas???