crystal reports number to 1000 place

How do I format a number field so that it only go to the 1000 place? Example 1,000,500 would be 1,001. I am using Crystal XI
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this

(({YourField} + 500) \ 1000) * 1000

kcjstarlingAuthor Commented:
There is not a formating option to do this? I do not want to create a formual for every number field on the report?
Had never looked.

Right click the field
Choose the NUMBER TAB
Set Decimals to 1
Set rounding to  1000

You can format many fields at once
Just select them all then right click one of them

The same format is available under
That may only affect new fields and new reports.

OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

kcjstarlingAuthor Commented:
I had already done the above, the rounding does not drop the zeros so you end you with 1,001,000 instead of 1,001
The only way will be with a formula.

You can do this in the formatting.  On the Common tab, click the formula (X+2) button to the right of "Display String" (near the bottom) and enter the following formula.

CStr (Round (CurrentFieldValue / 1000), 0, ",")

 CurrentFieldValue is a generic name that you can use in formatting formulas for the current value in that field.  The advantage is that if you use that, you can use the same formula for more than one field, without having to use the specific field name.  So, you can select several numeric fields, right-click and select "Format Objects", and enter that formula for all of them at the same time.

 What you're doing is basically formatting the field manually by converting it to a string.  Note that the field value is still numeric, so you can do summaries on it, _however_, the field value will be the original value, so if, for example, you wanted an average of the altered values, you'd probably still need separate formulas for that, in which case you might as well just use those on the report, instead of using "Display String".  You might be able to get around that by doing a summary of the original values and then just dividing the result by 1,000 too.  I suppose it might depend on the type of summary and your data.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.