Register  Login  
  September 9, 2010  
Forum    
Forum Minimize
 
ForumForumDiscussionsDiscussionsSQLChartSQLChartPercentage valuesPercentage values
Previous Previous
 
Next Next
New Post
 12/14/2009 5:39 PM
 

Hi Paul,

I have a results table as show below:

 

Age Range      Contactable Not Contactable
0-13 387 460
13-17     2435 2436
18-22     15766 18403
23-27     11183 13573
28-32     7803 8591
33-37     5702 5393
38-42     5259 4630
43-47     4571 3499
48-52     3633 2636
53-57     2861 2024
58-62     2872 2077
63-67     1810 1179
68-72     753 484
73-100    456 302

from which SQL Chart gives me a stacked column chart where the x-Axis is Age Range and in which I use Display Data Labels to show the figures in each part of the stack.  I have just been asked to convert these figures to percentage values.  Is there a way that I can do this and still retain the overall figures?

Many thanks

Barry

 

New Post
 12/15/2009 2:20 PM
 

Barry,

The issue is retaining the over figures -- by this I believe you want the values?  So instead of 45.6% you would display 387 for the 0-13 age range- but show 45.6 for contactable and 54.4 for the not contactable -- correct?  if so, this is not possible in a single chart with SQLChart.  You could create this with the Charting Engine, but this would require coding a specific module.

To create the percent chart you could just calculate the percentages in the select ... and then display that ... all the bars will then be the same height (100%) ...so  not quite sure this is what you are after.

Paul.

New Post
 12/15/2009 6:33 PM
 

Paul wrote
 

So instead of 45.6% you would display 387 for the 0-13 age range- but show 45.6 for contactable and 54.4 for the not contactable -- correct?  if so, this is not possible in a single chart with SQLChart.  You could create this with the Charting Engine, but this would require coding a specific module.

 Yes, for the 0-13 age range, the y-axis would show 847, the first part of the stack would be level with 387 on the y-axis but would show a data label of 45.6%, the top part of the stack would rise between 347 and 847 and the data label would show 54.4%

Paul wrote
 

To create the percent chart you could just calculate the percentages in the select ... and then display that ... all the bars will then be the same height (100%) ...so  not quite sure this is what you are after.

It might not be exactly what I'm after, but it would show the relative percentages per age range, so I'll do that in another chart just below the original chart, then persuade the customer that it's a better way of showing it ;)

Thanks Paul.

Barry

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsSQLChartSQLChartPercentage valuesPercentage values

Print  

  Home | Blog | Forum | Subscriptions | Free Modules   Page generated in 0.0400576 seconds.
  Copyright 2010 by TressleWorks   Terms Of Use | Privacy Statement