Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Bar Chart in Table, 10% is longer than 40% and 25% is same length as 40% Expand / Collapse
Posted Thursday, December 20, 2012 11:15 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 10, 2014 12:20 PM
Points: 33, 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?
Post #1399076
Posted Friday, December 21, 2012 8:52 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, August 26, 2016 6:37 PM
Points: 332, Visits: 1,766

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 ( 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.

Post #1399461
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse