i have to crystal report made from Dataset,and we have to one formula field
i wrote Add() but that formula field show cancatination like 10+20=1020
i realize they need to convert that field in sight formula how to overcome this one?
anybody help me ?
Advance wishes...
You can try using CStr in the formula
CStr(10)+CStr(20)
Related
Pardon my ignorance in advance, I'm a complete novice at Crystal Reports.
I need to select all records where a specific field (employee.term_date) is null. I don't seem to be able to use ISNULL with a date/time field.
The following will select all records that contain a value in employee.term_date, but I am looking for the opposite - all records where this field is null.
Is there any easy way to use NOT in the statement below, or is there a better way to accomplish this?
{employee.term_date} > DateTime(1900,1,1,0,0,0)
Thanks in advance for any assistance!
Try below way
Not(CStr({employee.term_date}) like "")
Note: Not a tested condition...
So I made a Crystal Report with some custom Group headers(ie. Created a formula field based off database data then used it in a group header). The Formula specifically that seems to be giving me trouble is:
IF {Quote.Field1} = true THEN "Incremental Sales Assist"
ELSE IF {Quote.Field2} = "Yes" THEN "Fulfillment"
ELSE "Sales Assist"
When the report generates it appears to ignore the else.
If you expand the tree where the arrow is with no text next to it, it does provide the correct data that should be grouped with "Sales Assists" I just don't understand why the text is not showing there...Has anyone else encountered anything like this? Is it a crystal bug or can I just not do this? Any assistance is greatly appreciated.
I had the same issue as the above and was getting a blank value for the last output of the IF statement.
I resolved it by recreating the Formula Field as a SQL Expression Field then using that as my grouping field.
can anyone please help me with this? I am trying to sort my report by a formula field i created but since it's a formula field it doesn't show on record sort expert.
is there a way to do this? thanks alot
You could always have the sort be performed on the server and then select to keep the original sort order in the grouping expert.
I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
{Table_Foo.value_Bar} / 10
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
Crystal Report Provides an easy to use default thousand separator for numeric Fields. You can use it by checking Thousand Separator from Field Properties.
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.
I am doing a crystal report.. In which there is a field Discount I am not getting the sum of that field while right click->Summery->Sum. I am getting other field like OrderAmount... In crystal report all data are coming.But not getting the sum for Discount.It is just showing the count of rows as Discount. Pls help...
Try using formula section of Crystal Report. Create a formula for finding the sum. Use the formula in place of Summary.
It might be look like
Formula=Sum(val({ReportField}). Change the Crystal Syntax to BasicSyntax from dropdownbox on top.