Solved

Displaying Percentage in SQL server 2005 reporting services

Posted on 2008-10-16
5
1,476 Views
Last Modified: 2012-05-05
I am trying to create a table to show some basic information followed by a percentage. How do I round my percentages to only display whole numbers?

=Fields!Expr1.value/(Count(Fields!Expr1.value))*100  is what I am using to display my percents.  

 Thanks.
0
Comment
Question by:LP_Tech
  • 3
5 Comments
 
LVL 26

Accepted Solution

by:
Zberteoc earned 50 total points
ID: 22731041
For the column that displays the percentage in the properties change the format to P0.
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 22731046
That is P zero.
0
 

Author Comment

by:LP_Tech
ID: 22731067
I noticed when I changed the formating to P0 I had to remove the *100

Thanks for the quick answer!
0
 

Expert Comment

by:Putoch
ID: 23421873
Hi there, just wondering, if the value is null, how do you get rid of NaN on the Percentage value area? instead of having 0?
Thanks
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 23424340
You can wrap the field value in a testing function similar to ISNULL in SQL and replace the NULL values with something, I think the IsNothing is the function. You can do:

IIF(IsNothing(field.Value),0,field.Value)


0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am showing a way to read/import the excel data in table using SQL server 2005... Suppose there is an Excel file "Book1" at location "C:\temp" with column "First Name" and "Last Name". Now to import this Excel data into the table, we will use…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question