|
-
August 18th, 2004, 04:18 AM
#1
Question about Null value in cross tab
Dear all,
I have a question about formula in crystal report.
I have created a cross tab. In the group field, the null value will display blank.
How can it display other text if it is null instaed of blank?
Thanks alot
-
August 18th, 2004, 10:39 AM
#2
Hi,
Right Click the summary field, select "Format Field", go to "Common" Tab.
You can find X-2 for "Display" String option. Click that button and write the following formula
If IsNull(CurrentFieldValue) = True then
0.00
else
CurrentFieldValue
This will display 0 if that field contains Null and the actual value if it is not null.
Hope this will work.
-
August 18th, 2004, 09:57 PM
#3
Hi
Thank you for your reply
I have modify the formula from you and place it in the right place.
However, it doesn't work.
The blank group title has not be changed to the text that I expected.
Do you have any suggestion?
-
August 19th, 2004, 11:05 AM
#4
Is that field is blank or null? If it is blank, just check with blank space instead of checking null.
-
August 19th, 2004, 11:20 PM
#5
I have checked both of it
but still cannot work
Here is my code
for the null value:
if IsNull({table.field}) then
"Unspecific"
else
CurrentFieldValue
for checking space
if {table.field}=" " then
"Unspecific"
else
CurrentFieldValue
both of them are shown nothing is the cross tab field
Do u have any other suggestion?
Thanks for your help!!!!
-
August 19th, 2004, 11:27 PM
#6
I have an other question to ask you
I want to change the subtotal to other currency
and the exchange rate is store in other table
I don't know how to get the exchange rate for each of the countries
How can i do this by the formula?
-
August 19th, 2004, 11:28 PM
#7
you are so nice and very helpful~~~
-
August 20th, 2004, 12:40 PM
#8
Thanks,
For the first question, Hope you have written the formula in "Display String" (Format)section.
Try to check CurrentFieldValue instead of {table.field}.
I checked with zero, it worked.
For the second question, if you have any linking field like country code, country name use that field to link with the other table which contains the exchange rate. Write the formula by using that field.
-
August 20th, 2004, 10:32 PM
#9
Thank you for reply!
I also check it with non-null value
it also works!
however, when I check it with null value, it shows nothing~
I have check it with sql statement, it is null value in the database
How come this happens??
Thanks~
-
August 20th, 2004, 10:38 PM
#10
I have a new question again.
The crystal report have not show the record that is zero
How can I show the zero record??
Thanks very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|