Solved

How to show zero on null running total

Posted on 2009-07-15
4
1,005 Views
Last Modified: 2012-05-07
I don't know much about CR and I'm trying to make a modifications to a report of outstanding balances for 30 days, 60 days, 90 days, etc. For each time period there is a running total but if there are no records for that total, it will display nothing. I would think there would be some simple option to have it show 0.00 instead of nothing but this seems to elude me.

How can I have the running total field display 0.00 if there are no records for that field? Keep in mind this is an old CR 8.5.
0
Comment
Question by:pnicorp
4 Comments
 
LVL 5

Accepted Solution

by:
dhobale earned 300 total points
ID: 24862740
Create a new formula in formula editor for this field.

eg. if YourRunningTotalField = 0 then "0.00" else YourRunningTotal

and insert this formula field on your report instead of the existing running total.
0
 
LVL 5

Assisted Solution

by:jgbreeden
jgbreeden earned 200 total points
ID: 24863701
if nulls are the problem it would be
if isnull(YourRunningTotalField) then 0 else YourRunningTotal
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 24864355
Another idea would be to create a new formula field and total it

If IsNull({YourField}) then
    0
else
    {YourField}

mlmcc
0
 
LVL 1

Author Comment

by:pnicorp
ID: 24864405
Looks like I had the right idea, I was just trying to modify the running total field instead of creating a new field and referencing the running total. dhobale gave me the push in the right direction I needed but jgbreeden was also correct in that I needed to use IsNull. Here's an example of what I ended up using:

If IsNull({#30Days}) Then 0.00 Else {#30Days}

Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now