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

Problem with creating Groups for Null / No Values

Status
Not open for further replies.

anandviru

Technical User
Nov 16, 2011
6
US
I am creating a report to display No. of helpdesk tickets resolved by a Assignment team in the last 4 weeks

I have 2 Groups in my Report :

Group 1 : Priority
Group 2 : Assignment Team

The Report should look like this :

Priority 1 Team A 10 20 30 40
Priority 1 Team B 20 30 40 30
Priority 1 Team C 20 30 40 30

Priority 2 Team A 10 20 30 40
Priority 2 Team B 20 30 40 30
Priority 2 Team C 20 30 40 30

The Problem I'm facing is - if there is no any ticket for Priority 1 for any teams the report just displays

Priority 2 Team A 10 20 30 40
Priority 2 Team B 20 30 40 30
Priority 2 Team C 20 30 40 30

But I want it to display

Priority 1 Team A 0 0 0 0
Priority 1 Team B 0 0 0 0
Priority 1 Team C 0 0 0 0

Priority 2 Team A 10 20 30 40
Priority 2 Team B 20 30 40 30
Priority 2 Team C 20 30 40 30

Any help on getting this done is highly appreciated.
 
Are you able to get tables / datasets added to the database? If you got a table of Priorities set up, this could be linked to the activity using LEFT OUTER and you'd still get a slot when there was no activity. (But note that any selection on the second table must do an IsNull test first, otherwise you'll not get the dates with no records, null value for the second record.)

If you can't add a table, you'll be stuck with creating a 'Mock Crosstab'. Crosstabs are fine if you don't mind the absence of rows or columns with no data, but you said you wanted empty slots to show.

A 'Mock Crosstab' is something that looks like a Crosstab, but in fact you define each column yourself, normally as a running total. This would need to go in the report footer, because running totals count as the reports 'run' and they will not be complete until then. Crystal should have included an example along with the Crosstabs.

You can save a little time by doing a paste to a dummy report, changing the name and then pasting back. In Crystal 11.5, you can also duplicate formula fields using the Field Explorer.



[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top