SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Formatting, Formatting, Formatting!


Formatting, Formatting, Formatting!

Author
Message
aaa121
aaa121
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1321 Visits: 783
Hi All,

I wish I could understand how the formatting of numeric values works in SSRS.

I have a numeric value for example 21.1254045578 and I need to display this as 21.12%. Can someone please tell me how I can do this?

Thanks.
Lookup_BI
Lookup_BI
Say Hey Kid
Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)Say Hey Kid (686 reputation)

Group: General Forum Members
Points: 686 Visits: 642
Try this in expression

Round(21.1254045578,2)& "%"

Results is as
= 21.13%

Hopefully this is close enough for you Smile

“I haven't failed, I've found 10,000 ways that don't work”........Thomas Alva Edison
aaa121
aaa121
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1321 Visits: 783
Thanks for your help.
Old SQL Newbie
Old SQL Newbie
Old Hand
Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)Old Hand (314 reputation)

Group: General Forum Members
Points: 314 Visits: 184
Or how about this?
Right click the field, select Properties- Format Tab, put P2 in the format code field.
Here are some links to microsoft cheat sheets.
• FORMAT STRINGS
• Standard Numeric Format Strings [ http://msdn2.microsoft.com/en-us/library/aa720653(printer).aspx ]
• Custom Numeric Format Strings [ http://msdn2.microsoft.com/en-us/library/aa719871(printer).aspx ]
• Standard DateTime Format Strings [ http://msdn2.microsoft.com/en-us/library/aa720651(printer).aspx ]
• Custom DateTime Format Strings [ http://msdn2.microsoft.com/en-us/library/aa719856(printer).aspx ]
james_clampit
james_clampit
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 9
Hello all i need help i want someone to tell me SSN format how i can get SSN
i will really appreciate if any member can bill me out of this i will be very greatful
any member that know site i can even get SSN will be fantastic i look fordward if help
can come from anybody that can help
Thank you and God bless .
James
:-)
Daniel Bowlin
Daniel Bowlin
SSCrazy Eights
SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)

Group: General Forum Members
Points: 8032 Visits: 2629
You really should have posted this in a new thread rather than posting it at the end of a 2 year old thread.

In the properties for the text box (not the Text Box Properties dialog box, but the regular advanced properties for the textbox) you will find a Number Format property. Put ###-##-#### into that property and you should be good to go.
james_clampit
james_clampit
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 9
Hi there can you please tell me which site is perfect to search for SSN
please kindly explain the Format for me so that i can understand better
is this the Format i should use to get SSN (###-##-####) ?
thank you for your responded i looked forward to hearing from you soon
once again big thanks to you for replying me back
James
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search