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

cross tab...

Status
Not open for further replies.

abhi900

IS-IT--Management
Jul 1, 2010
117
AU
Hi Experts,

I have a cross tab, where I was calculating count of status

Ex:The report should look like below

groups||status
---------------------------------
A||5
B ||0
C ||5
D ||0
E ||0
F ||5

I am getting

groups||status
---------------------------------
A||5
C ||5
F ||5

the cross tab suppresses all the values containing 0 from count of the status. but i do want to list them as well..irrespective...

How can I achieve this? Any thoughts will be greatly appreciated.
 
Are you able to get tables / datasets added to the database? If you got a table of A / B/ C slots 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 LEFT OUTER does not work if you also do a selection on the table receiving the LEFT OUTER link.)

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.

Each running total will count the record if it was within the criteria

[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