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.
KristieAsked:
Who is Participating?
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 TorresSenior SQL Server DBACommented:
0
lcohanDatabase AnalystCommented:
did you tried:
select cast(round(15.4455663, 2) as numeric(36,2));
or
select cast(round(amount, 2) as numeric(36,2));
0
KristieAuthor Commented:
lcohan....where do I enter the expression in a parameter?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

KristieAuthor Commented:
Jose Torres...It's not possible even with a code?
0
Jose TorresSenior SQL Server DBACommented:
The parameter itself can not be formatted unless the available choices come from a sql query or generated list.
0
Jose TorresSenior SQL Server DBACommented:
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.
0
KristieAuthor Commented:
I have the format on the stored procedures but it does not limit what the user's can enter in.
0
Jose TorresSenior SQL Server DBACommented:
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
0
KristieAuthor Commented:
Jose Torres...I read the above article and is not what I am looking to accomplish.  Thank you for the feedback.
0
Jose TorresSenior SQL Server DBACommented:
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: ####.##)
1

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
SSRS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.