Crystal Reports 8.5 decimal values does not show - crystal-reports

I have a problem that my crystal report shows the decimal values as 00 every thing is fine but it does not display proper value
e.g.
If i have 0.235 it shows 0.000 If i have 2.356 it shows 2.000
Whats the matter behind it the database field is text based

You are facing this issue because your rounding is set to 1.
Right Click on field.
Click on Format Field.
Go to Numbers Tab.
Click on Customize
Under Number Tab Change Rounding To 0.001 or of you own desire.

Related

MS Access - Right Align Formatted number on a Form

If I use Standard format for a number in a control then I can Align Right and it appears on the far right of the control in the Form. However, I am using numbers in millions and so want to format the number so that, for example, 50,123,456 will appear as 50.123. So I use format #,,.0 with decimal places set to 3. If I set alignment to left, it aligns to the left of the field on the form, Align Center and it appears in the center. But Align Right and there is a large space to the right of the number, like padding. Is there a way to get the formatted number to hit right up to the right side on the form?
Replace the ControlSource with the expression:
[Amount]/1000
Set property Format to: Fixed
Set property DecimalCount to: 0
The formating option might not be the right approach to getting the needed solution. Do the following instead
Put the format to general number.
Put the decimal places value to 0.
Then go to VBA and add the following code to the after update event of the control
Private Sub allocatedamount_AfterUpdate()
Me.allocatedamount = Left((Me.allocatedamount / 1000000), 6)
End Sub
In this case i added the code to the after update evnt of the control on the form named allocatedamount
I have attached two images.
This code will work for numbers between 10 million and 99 million, where it is between 100 million and 999 million you will have to add another zero to the constant 1000000 used in the VBA code,so that will entail using an If statement to first determine if the value is between 10 million and 99 million or 100 million to 999 million.

Change summary type in Crystal Report cross tab to pick the exact value of the formula field

My problem here is that I want to display the value in formula (summary) as shown in the first image exactly. But I am forced to choose from the list of options (sum, average, count....)
Can this be done?

Crystal report to rounding

I have a currency field in my report that displays some values. I then do a summary of these values and it gets rounded off.
For eg., if my summary value is 40.706 it gets rounded to 40.71 which is fine, but when my value is 40.704, it gets rounded as 40.70 (this is correct according to rounding principles) but I want it to show as 40.71 since it is a currency.
Is there a way to do this ?
Try to add a 0.004 (or 0.005 if you want also that happened for 40.700) to you original value then round it.

Specify number of decimals in crystal reports chart axis

Am I just blind or is this basic feature very hidden?
I'm creating a chart in Crystal Reports XI which has value on the x-axis and distinct count on y-axis (aka histogram).
The problem is this: I get two decimal places on the x-axis values even though the numbers are integers. How can I specify the number of decimals for the x-axis? Right clicking gives no format option as right clicking data fields usually does.
Edit:
This is the look of the axis tab in the chart expert. No number format or auto range for the x axis.
It may have changed as i'm on the latest version of Crystal. Does yours not look like this?
In crystal Xi , chart expert , tab axes, untick auto range, and choose number format
(screenshot refused to new users, sorry mate)
Hope this helps
For Crystal report 13 write the crystal report formula
ToText({fieldname}, 0, "")
0 truncates the decimal, and "" removes the thousands separator.

Changing the position of a picture at run time in Crystal Report

Is there any way to change the position of a picture at run time in Crystal Report through conditional formatting or something like that?
thanks
You can control the x-axis position (as is the case with most other fields) by right-clicking on the picture, selecting 'Size and Position' and entering a formula for "X:" that returns a number as the position.
If that's not enough control, you can add multiple copies of the picture to your report anywhere you may want them to appear. Then, conditionally suppress those that are not in the position you want on the final report run via a suppression formula.