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

Conditional crosstab column heading 1

Status
Not open for further replies.

desperateUser

Technical User
Aug 4, 2005
47
CA
I have a table reporting on Bureaus. There are some records where the Bureau column is NULL. I've put the following formula in the column heading on the crosstab. The results show the Bureaus as needed, but where the null values are all I get is a blank cell. Is there something wrong with my formula?

I'm using CR 9.0

Code:
if {FARBAccSum;1.Bureau} = "NULL" then "No Bureau" else {FARBAccSum;1.Bureau}
Thanks in advance for any help.

Penelope
 
If they are really null, then the syntax would be:

if isnull({FARBAccSum;1.Bureau}) then
"No Bureau" else
{FARBAccSum;1.Bureau}

If they might be blank or null then use:

if isnull({FARBAccSum;1.Bureau}) or
trim({FARBAccSum;1.Bureau}) = "" then
"No Bureau" else
{FARBAccSum;1.Bureau}

-LB
 
lbass - Thank you so much. Works beautifully and now I can move on with my life! You are a huge asset to Tek-tips.

Penelope
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top