Force Crystal to display record " " if no record exists

I currently have a report that is generated from views within my MySQL database. These views summarise  various figures to allow a quick view of overall performance. When I run my report, if there are no records for a particular area I am reporting on, the whole record for that 'day' doesn't appear.

My question is; Is there any way to force Crystal to display, say "0" if no records are found just so the other figures are displayed?

It could be that I am looking at this in the wrong way. My view "counts" available records as the field I am counting is text and not a number. I can 'sum' numbers fine and it will display '0' if no records are found but I have this issue with text where I count.

Any input would be much appreciated.


Who is Participating?
mlmccConnect With a Mentor Commented:
You need to create a table in the database that has all the values you want then use it as the master table and left join your query to it.

If the data doesn't exist in Crystal for the most part you cannot have Crystal check for it and add it.

There is a trick if the missing information is dates.

SpeedFingolfConnect With a Mentor Commented:
As far as a I know, there is no way of doing what you are trying to do.

I think the best thing you could do is to send all the data that Crystal will use to a DB temp table that will be filled through "a process". That process should be a program that check for missing values in the figures you are displaying and filling those "holes" with any data you want... and then creating a formula in Crystal to force it not to show that ficticious value.
wykabryanConnect With a Mentor Commented:
well you could create a formula based on the column that you are counting.  something like this..

if isnull(column) then 0 else column
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.