SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Bar Chart in Table, 10% is longer than 40% and 25% is same length as 40%


Bar Chart in Table, 10% is longer than 40% and 25% is same length as 40%

Author
Message
computer.mike
computer.mike
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 173
So I have a simple table... Month, Budget, Actual, Varaince Percent

I created a chart based on the same dataset with "Variance Percent" in the data field of the chart and no series and and "Month" as the category. It looks fine.

I removed the "Month" from the chart and drop in the table. I get bars with the correct numbers, (one bar for each month and the marker is displaying the Variance Percent corectly), but the bars aren't porportioned properly. 10% is same length as 50%. And I have a 45% that is longer than 25%. I thin the scale might be differnet for each bar.

Anyone know how to fix?
peterzeke
peterzeke
SSChasing Mays
SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)SSChasing Mays (658 reputation)

Group: General Forum Members
Points: 658 Visits: 1766
Mike:

It sounds like you haven't set the Maxiumum scale to the same value (y axis, typically) for the embedded chart, consequently, your graphs aren't visually reliable when comparing values. Couple different ways to handle this. One simple way is to set the maximum scale to 1 (assuming your variance is a decimal measured between 0 and 1) -- typically you'd set this on the Y-axis.

If your variance can be greater than 100%, then you'll need to calculate the max variance, and set that value to the maximum scale value in the embedded chart. One approach is to calculate the max variance in a cell in the footer of the table that holds the embedded chart. Then, in your embedded chart, you'd reference this cell as the maximum scale: e.g., Maximum = ReportItems!MaxVariance.value.

To see what I'm talking about, check out SSW's Rules to Better SQL Reporting Services (http://www.ssw.com.au/ssw/standards/Rules/RulesToBetterSQLReportingServices.aspx). Click on item 18 on their webpage (or do a find for "scaled") -- this will bring you to the section called "Do you use expressions to show the correct scale on charts?". By the way, this URL is a very long page, so it might take a couple of moments to load (lots of pics related to report layout).


Hopefully these tips address the problem you are encountering.
--Pete



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search