• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Super impose a line graph on a bar graph

Hi,

I have some data from 5 regions on a bar graph, it shows average values of deals for each region

I would like to somehow show the median values on the same graph to visually show the difference between Average deal size and median deal size

I have attached the file - its chart Avg vs Median and the data for median is in tab "Data" N16 - We are only interested in Totals for each region "ASP, EU, LA, ME, NA"

Many thanks
RD-Analysis-light.xlsx
0
Seamus2626
Asked:
Seamus2626
  • 3
  • 3
1 Solution
 
Glenn RayExcel VBA DeveloperCommented:
The total median deal size is actually in cell O14 on the "Data" sheet.  Do you want to see a horizontal line showing that value on the Avg. vs. Median chart?

-Glenn
0
 
Seamus2626Author Commented:
Yep, exactly....thanks Glenn
0
 
Glenn RayExcel VBA DeveloperCommented:
Here's my first attempt.  I have a gut feeling that there's a better method, but I was trying avoid modifying your original data set if at all possible.

It wasn't possible to create a line over the original chart because you used separate series.  So I created a new chart, first as a line chart for the regional data, then added a second series for the median.  I changed the chart type to column for the regional averages and changed the fill for each bar.   I had to manually create the "Median - 16.1" label, but I think there's a trick to getting that value added there.
line and column chart-Glenn
EE-RD-Analysis-light.xlsx
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Seamus2626Author Commented:
Thats brilliant Glenn! Please though, if there is a better method re-arranging my raw data, i would love to see it!
0
 
Glenn RayExcel VBA DeveloperCommented:
I did make a couple of modifications.  First, I added a series label cell for the Median Line above the series (Data sheet, G14).  Second, I created a standardized formula to pick up the median value on for those region-categories NOT "CMB", "FI", or "GBM".  These are in cells G16:G35 on the Data sheet.  

-Glenn
EE-RD-Analysis-light.xlsx
0
 
Seamus2626Author Commented:
Thats very kind of you Glenn!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now