Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Business Intelligence
»
Need to add % sign for only few rows
Need to add % sign for only few rows
Rate Topic
Display Mode
Topic Options
Author
Message
vandana_j79
vandana_j79
Posted Friday, January 18, 2013 5:57 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, February 20, 2013 7:49 AM
Points: 9,
Visits: 47
Hi
I have SSRS (2008) Report which
line MTD YTD Total
Line 1- Balance 10000 200001 208987
Line 1- Volumne 100 200 330
Line 1- Avg 42 67 78
Line 2- Balance 10000 200001 208987
Line 2- Volumne 100 200 330
Line 2- Avg 42 67 78
Line 3- Balance 10000 200001 208987
Line 3- Balance 100 200 330
Line 3- Volumne 42 67 78
I want to add percentage sign only for Avg. Tried various things but nothing working. Anybody knows how to do this.
So Avg should be like 42%, 67%, 78%
All are numeric fields. Spread sheet attached having table
Many Thanks
Vandana
Post Attachments
Book1.xlsx
(
9 views,
9.32 KB
)
Post #1408849
Sean Lange
Sean Lange
Posted Friday, January 18, 2013 7:19 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 9:59 AM
Points: 8,599,
Visits: 8,238
Please see the first link in my signature about best practices when posting questions.
_______________________________________________________________
Need help? Help us help you.
Read the article at
http://www.sqlservercentral.com/articles/Best+Practices/61537/
for best practices on asking questions.
Need to split a string? Try Jeff Moden's
splitter
.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Post #1408904
abdulkalam.m
abdulkalam.m
Posted Monday, January 21, 2013 4:46 AM
Grasshopper
Group: General Forum Members
Last Login: Friday, February 22, 2013 2:57 AM
Points: 10,
Visits: 140
use below expression in Avg column
="%" & cstr(Avg.Value)
Post #1409481
abdulkalam.m
abdulkalam.m
Posted Monday, January 21, 2013 5:01 AM
Grasshopper
Group: General Forum Members
Last Login: Friday, February 22, 2013 2:57 AM
Points: 10,
Visits: 140
try below expression
=IIF(instr(Fields!Line.Value, "Avg")," %" & CSTR(MTD.value),MTD.value)
Post #1409490
Divya Agrawal
Divya Agrawal
Posted Tuesday, January 22, 2013 3:51 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 3:41 AM
Points: 140,
Visits: 474
vandana_j79 (1/18/2013)
Hi
I have SSRS (2008) Report which
line MTD YTD Total
Line 1- Balance 10000 200001 208987
Line 1- Volumne 100 200 330
Line 1- Avg 42 67 78
Line 2- Balance 10000 200001 208987
Line 2- Volumne 100 200 330
Line 2- Avg 42 67 78
Line 3- Balance 10000 200001 208987
Line 3- Balance 100 200 330
Line 3- Volumne 42 67 78
I want to add percentage sign only for Avg. Tried various things but nothing working. Anybody knows how to do this.
So Avg should be like 42%, 67%, 78%
All are numeric fields. Spread sheet attached having table
Many Thanks
Vandana
If you are calculating the average value and then showing in the report, just use the FormatPercent function in the expression.
--Divya
Post #1409904
mmartin1
mmartin1
Posted Wednesday, March 27, 2013 10:51 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Friday, May 17, 2013 4:43 PM
Points: 192,
Visits: 640
If you are calculating the average value and then showing in the report, just use the FormatPercent function in the expression.
--Divya
This is fine if the value is still a ratio, like .29. If the user already has 29 (multiplied .29 *100) then can do just a
CSTR(Fields!yourfield.value) + " %" in the cell's expression.
Post #1436040
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.