Crystal and using Null values

I just completed a huge project which involved showing hits where related records did not exist and I too utilized the ISNULL function with various amounts of success in Crystal.  I found it easier to replace the NULL values in one formula and then call that formula later.  Example:  X =  IF ISNULL(value) then 0 else value.  Once this was done, I used X everywhere I would have used the value.
Â
I found that in some cases, it was easier to use the a Calc field in the BAQ to get around using the ISNULL statement in Crystal.  Date Values were the worst.  For those, I took a date field which always existed and added or subtracted enough days to provide relationships that I knew would fail when doing comparisons.
Â
Just be careful.  A null is not the same as a blank which is not the same as a space character which is not the same as a zero.  One dead give-away on your report is when formula results show up as white space on your previewed report when you were expecting a zero.
Â
Example:Â Â Show the difference in days between an expected Due Date for a Purchase Order and the Receipt Date.
Â
Due         Receipt        Result
2/1/08Â Â Â Â Â 2/2/08Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 1
2/1/08Â Â Â Â Â (no record)
2/1/08Â Â Â Â Â 2/1/08Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0
Â
I hope this helps,
GlenÂ

--- On Wed, 9/10/08, Late, Travis <tlate@...> wrote:

From: Late, Travis <tlate@...>
Subject: [Vantage] Crystal and using Null values
To: vantage@yahoogroups.com
Date: Wednesday, September 10, 2008, 11:25 AM






I'm trying to create a report that shows Jobs with no print date. Does
anyone know the formula that I will use to get this to display
correctly. I'm using fields in the JobHead. I know the field that
requires the formula will be TravelerLastPrinted . Does anyone know how
to use the isnull function for this or should I be using something else?

Thanks,

Travis Late

ERP Project Manager

M-B Companies, Inc

1200 Park Street

Chilton, WI 53014

Phone: 920-898-1560 Ext.152

Cell: 920-960-0062

Email: tlate@m-bco. com <mailto:tlate@m-bco. com>

[Non-text portions of this message have been removed]


















[Non-text portions of this message have been removed]
I'm trying to create a report that shows Jobs with no print date. Does
anyone know the formula that I will use to get this to display
correctly. I'm using fields in the JobHead. I know the field that
requires the formula will be TravelerLastPrinted. Does anyone know how
to use the isnull function for this or should I be using something else?



Thanks,



Travis Late

ERP Project Manager

M-B Companies, Inc

1200 Park Street

Chilton, WI 53014

Phone: 920-898-1560 Ext.152

Cell: 920-960-0062

Email: tlate@... <mailto:tlate@...>





[Non-text portions of this message have been removed]
the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com, "Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
This is the formula that I have in, but it is bringing back an error
that highlights the jobhead.travelerlastprinted and says the remaining
text does not appear to be part of the formula.







{?Plant}={JobHead.Plant}and {JobHead.JobClosed}=false and
isnull{JobHead.TravelerLastPrinted}



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of brad.ebright
Sent: Wednesday, September 10, 2008 10:33 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Crystal and using Null values



the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>





[Non-text portions of this message have been removed]
Add brackets () around the ({JobHead.TravelerLastPrinted}) field.

Chris

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 8:38 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Crystal and using Null values

This is the formula that I have in, but it is bringing back an error
that highlights the jobhead.travelerlastprinted and says the remaining
text does not appear to be part of the formula.

{?Plant}={JobHead.Plant}and {JobHead.JobClosed}=false and
isnull{JobHead.TravelerLastPrinted}

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of brad.ebright
Sent: Wednesday, September 10, 2008 10:33 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Crystal and using Null values

the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ,
"Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]
That worked! Thanks Chris



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Chris Crosta
Sent: Wednesday, September 10, 2008 10:45 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Crystal and using Null values



Add brackets () around the ({JobHead.TravelerLastPrinted}) field.

Chris

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 8:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

This is the formula that I have in, but it is bringing back an error
that highlights the jobhead.travelerlastprinted and says the remaining
text does not appear to be part of the formula.

{?Plant}={JobHead.Plant}and {JobHead.JobClosed}=false and
isnull{JobHead.TravelerLastPrinted}

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of brad.ebright
Sent: Wednesday, September 10, 2008 10:33 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Crystal and using Null values

the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ,
"Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Travis,

Does your report return any results? If not add a formula field to you
report with the following formula



totext({JobHead.TravelerLastPrinted})



Then replace isnull{JobHead.TravelerLastPrinted} in you select statement
with {your formula}=""



You should get all the unprinted records.



Chris



_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 9:18 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Crystal and using Null values



That worked! Thanks Chris

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Chris Crosta
Sent: Wednesday, September 10, 2008 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

Add brackets () around the ({JobHead.TravelerLastPrinted}) field.

Chris

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 8:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

This is the formula that I have in, but it is bringing back an error
that highlights the jobhead.travelerlastprinted and says the remaining
text does not appear to be part of the formula.

{?Plant}={JobHead.Plant}and {JobHead.JobClosed}=false and
isnull{JobHead.TravelerLastPrinted}

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of brad.ebright
Sent: Wednesday, September 10, 2008 10:33 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Crystal and using Null values

the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ,
"Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Chris,



The original formula you supplied did display the correct information.



Thanks,

Travis



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Chris Crosta
Sent: Wednesday, September 10, 2008 12:19 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Crystal and using Null values



Travis,

Does your report return any results? If not add a formula field to you
report with the following formula

totext({JobHead.TravelerLastPrinted})

Then replace isnull{JobHead.TravelerLastPrinted} in you select statement
with {your formula}=""

You should get all the unprinted records.

Chris

_____

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 9:18 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

That worked! Thanks Chris

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Chris Crosta
Sent: Wednesday, September 10, 2008 10:45 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

Add brackets () around the ({JobHead.TravelerLastPrinted}) field.

Chris

-----Original Message-----
From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of Late, Travis
Sent: Wednesday, September 10, 2008 8:38 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Re: Crystal and using Null values

This is the formula that I have in, but it is bringing back an error
that highlights the jobhead.travelerlastprinted and says the remaining
text does not appear to be part of the formula.

{?Plant}={JobHead.Plant}and {JobHead.JobClosed}=false and
isnull{JobHead.TravelerLastPrinted}

From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ] On
Behalf
Of brad.ebright
Sent: Wednesday, September 10, 2008 10:33 AM
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Re: Crystal and using Null values

the correct way to use that operator is isnull({fieldname})
I believe that is how you would use that, but i could be wrong.

Also, if you want to search for non-null fields, it would be not
isnull({fieldname})

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com>
<mailto:vantage%40yahoogroups.com> ,
"Late, Travis" <tlate@...> wrote:
>
> I'm trying to create a report that shows Jobs with no print date.
Does
> anyone know the formula that I will use to get this to display
> correctly. I'm using fields in the JobHead. I know the field that
> requires the formula will be TravelerLastPrinted. Does anyone know
how
> to use the isnull function for this or should I be using something
else?
>
>
>
> Thanks,
>
>
>
> Travis Late
>
> ERP Project Manager
>
> M-B Companies, Inc
>
> 1200 Park Street
>
> Chilton, WI 53014
>
> Phone: 920-898-1560 Ext.152
>
> Cell: 920-960-0062
>
> Email: tlate@... <mailto:tlate@...>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]