SSRS Parameters

Where can I setup a parameter format?  

For example:
I have a float parameter labeled "amount", when I preview the report, VS allows me to enter in 15.4455663.  I need the format to be 15.45.

Thank you in advance.
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.

Jose TorresCertified Database AdministratorCommented:
lcohanDatabase AnalystCommented:
did you tried:
select cast(round(15.4455663, 2) as numeric(36,2));
select cast(round(amount, 2) as numeric(36,2));
KristieAuthor Commented:
lcohan....where do I enter the expression in a parameter?
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

KristieAuthor Commented:
Jose Torres...It's not possible even with a code?
Jose TorresCertified Database AdministratorCommented:
The parameter itself can not be formatted unless the available choices come from a sql query or generated list.
Jose TorresCertified Database AdministratorCommented:
If the precision of the user input is important you may need to take the parameter and rounded as Icohan suggested in your report query or stored procedure.
KristieAuthor Commented:
I have the format on the stored procedures but it does not limit what the user's can enter in.
Jose TorresCertified Database AdministratorCommented:
You will need to create customized SSRS Parameter Validation to test what the user entered and inform them that their entry is out of range.
You will need to write code in the report properties, add a hidden parameter that contains the ssrs code execution result and conditional expression in dataset.
Take a look as this as an example sure there are others on the web to choose from
Easy Step by Step SSRS Parameter Validation Using Code & Conditional DataSet
KristieAuthor Commented:
Jose Torres...I read the above article and is not what I am looking to accomplish.  Thank you for the feedback.
Jose TorresCertified Database AdministratorCommented:
Thats the closest you can get.  As I mentioned before you cant format the value in the parameter and there is no decimal data type as an option for parameter only int or float.
You can consider calling the report from external code which will allow you to force the user to enter the values in the format you need.
You can also code the parameter prompt to something like "Amount (Format: ####.##)

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

From novice to tech pro — start learning today.