Groups | Blog | Home
all groups > sql server reporting services > july 2006 >

sql server reporting services : percent in diagramms


florian
7/25/2006 8:45:00 AM
Hi,

http://www.stammer.at/sql/sql.html

under this email adress you'll find a picture of 2 reports containing
bars.

My diagramm shows a qustion with up to 5 possible answers.

when I display just one question my diagramm works fine. I just like
the diagramm to go up to 100% and not end with the highest bar.(When
using the bars with the 100% every bar displays 100% instead of their
real values).

when I like to make a diagramm containing all Questions(they are
grouped in the diagramm) the percent calculation works fine in the
table (the percent values are situated in the last column of the table)
but not in the graph. All bars are at 100%.

below you can see the used formuala to calculate the percentage:
=(Fields!PPQ_Count.Value)/((Sum(Fields!PPQ_Count.Value))/100)

in my percent fields I just show 1 number after the comma with N2 but
now it is not possible to add & "%" in the table fields?

thanks for your help
florian
7/25/2006 9:20:15 AM
Yeah this is one of my questions. when adding the % sign my number
formater doesn't work any more. I then have the % sign added but lots
of numbers after the comma.


Ben Watts schrieb:

[quoted text, click to view]
Ben Watts
7/25/2006 11:14:06 AM
So you are trying to add the percent sign to your number?

[quoted text, click to view]

Ben Watts
7/25/2006 11:20:41 AM
You can turn that into a percent value using "P" in the fomat. And if you
keep doing it the same way and not using that format option you want to
multiply it by 100 instead of dividing it by a hundred. Put parenthesis
around your division and then mulitply all that by 100.

[quoted text, click to view]

Ben Watts
7/25/2006 12:31:03 PM
If you do use the P in the format box, then take away the 100. SSRS
automatically does that for you, when you choose p
[quoted text, click to view]

florian
7/25/2006 1:33:35 PM
any ideas to my other problems?

Ben Watts schrieb:

[quoted text, click to view]
florian
7/26/2006 1:06:51 AM
Ok using "p" does the trick in my tables but I'm still don't getting
the diagramm right. Can anybody help me with this?


florian schrieb:

[quoted text, click to view]
AddThis Social Bookmark Button