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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Treat the first record only.

Status
Not open for further replies.

MarsianStar

Technical User
Nov 22, 2007
35
CA
Crystal 11, Heat, SQL server,
tables calllog assignmts

For each call there is either one assignment and it is resolved by first level.
Or it was reassigned to second level.

I would like to list the re-assigned calls only along with rest of the assignments.


sample data

CallID Date Resolution ResolutionNotes

11234 Nov-1 Reassigned Need Admin Rights
11234 Nov-1 Resolved Provided Admin Rights

11235 Nov-2 Reassigned Hardware Failure
11235 Nov-2 Reassigned Building Maintenance issue
11235 Nov-3 Resolved Socket replaced

11236 Nov-2 Resolved Reset Printer, tested OK.

I do not want to see call 11236 but would like to see the other two.

Thanks in advance for your help.
 
Insert a group on {table.callID} and then create a formula {@reassigned}:

if {table.resolution} = "Reassigned" then 1

Then go to report->selecton formula->GROUP and enter:

sum({@reassigned},{table.callID}) > 0

If you need to use any calculations across calls, you will need to use running totals, since non-group selected records will contribute to the more usual inserted summaries.

-LB
 
I will try that and let you know, thanks a lot for you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top