Solved

Displaying Percentage in SQL server 2005 reporting services

Posted on 2008-10-16
5
1,478 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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