all groups > sql server reporting services > june 2005 >
You're in the

sql server reporting services

group:

Percentage Calulation in RS



Percentage Calulation in RS Tom
6/16/2005 3:38:05 PM
sql server reporting services: Hey all,

I need to calculate % bases on 2 columns (Col1 and Col2), and my result that
I want is in Col3(%). Please see the layout below. Is that possible?

Col1 Col2 Col3(%)
-------------------------------------
A 5 50%
B 2 20%
C 3 30%
D 0 0%
Total 10 100%

Thanks in advance!


Calculate Percentage
Re: Percentage Calulation in RS tosonali
6/16/2005 5:59:03 PM
[quoted text, click to view]

Assuming you have Tabular report Design,
Expression in Col3 can be -
= Reportitems!textbox2.value/Reportitems!textbox34.value
and Format field with %
(My formula syntax can be wrong, use textbox reading syntax)
AddThis Social Bookmark Button