+ Reply to Thread
Results 1 to 9 of 9

Pareto Chart

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Pareto Chart

    Hi,

    I have created a Pareto chart (see attached file).

    Now I need to include the Country in the chart. So what (I think) I'm looking for is a Stacked column chart which shows one column for each SalesPerson, which will be stacked showing the breakdown per country. I still need to have the Cumulative % displayed as in the attached file as a Line chart.

    Any ideas on how this can be done?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Pareto Chart

    Any ideas? Anyone!?

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Pareto Chart

    I don't know pivot tables, so I cannot comment on a solution that uses pivot tables.

    It seems to me that, to get results based on both salesperson and country, you will need an additional column (or columns depending on how many unique countries are represented). A simple =SUMIFS() function (http://office.microsoft.com/en-us/ex...in=HP010342656 ) could be used to calculate total for sales for each salesperson in each country. Then a column compute cumulative sales. Then create the combination chart with the first n series as column or stacked column (probably depends on whether any salesperson has sales in multiple countries) and the final series (cumulative series) as line.
    Attached Files Attached Files
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Pareto Chart

    Thanks, MrShorty.

    I'd really prefer the Pivot Table to be able to handle this but it's not looking like it can be done.

    I'll have a play around with your suggestion and see if I can get somewhere...

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Pareto Chart

    I don't understand how you're including the country data.

    Like, your sales people are all either in one country or the other; they're not posting sales in both.

    More importantly, since Pareto charts require that the horizontal axis be sorted according to their value, it's not obvious to me how you can visualize the US and UK sales as part of the same chart.

    I don't really understand what OP is asking for.

  6. #6
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Pareto Chart

    Quote Originally Posted by ben_hensel View Post
    I don't understand how you're including the country data.

    Like, your sales people are all either in one country or the other; they're not posting sales in both.

    More importantly, since Pareto charts require that the horizontal axis be sorted according to their value, it's not obvious to me how you can visualize the US and UK sales as part of the same chart.

    I don't really understand what OP is asking for.
    Hi Ben,

    Thanks for your reply.

    The data I used for the sample is not the data I'm actually working on. So maybe I didn't choose the best example. I've amended it to make it more like what I'm dealing with. Sorry for the confusion.

    What I'm essentially asking is: Can a Stacked column chart, that is based on Pivot Table data, be used in a Pareto chart? If you look at the revised example I've attached, I'd like one line chart to get it's values from the Total Cumulative % column G but the nearest I can get is the two lines I've inserted which obviously this isn't what I'm looking for...
    Attached Files Attached Files

  7. #7
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pareto Chart

    The problem is that pivot charts never plot the Grand Totals. That means that you with a regular pivot table you'd have to create a new calculated item that adds UK and US together - but you can't do that because you're using the same field twice in the data area.

    If you have PowerPivot, you can create a new measure that shows the total orders for all countries, but it will be shown in both UK and US fields (you can hide one using Sets but the legend will still show the country name in the chart).

    You could alternatively create two calculated columns (either in PP or in your source data) that calculate the UK and US orders for every row, and then simply use these fields in the pivot (see attached). That however assumes your real data only has two countries (or a few at most).
    Attached Files Attached Files
    Remember what the dormouse said
    Feed your head

  8. #8
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Cork, Ireland
    MS-Off Ver
    Excel 365
    Posts
    149

    Re: Pareto Chart

    Quote Originally Posted by romperstomper View Post
    The problem is that pivot charts never plot the Grand Totals. That means that you with a regular pivot table you'd have to create a new calculated item that adds UK and US together - but you can't do that because you're using the same field twice in the data area.

    If you have PowerPivot, you can create a new measure that shows the total orders for all countries, but it will be shown in both UK and US fields (you can hide one using Sets but the legend will still show the country name in the chart).

    You could alternatively create two calculated columns (either in PP or in your source data) that calculate the UK and US orders for every row, and then simply use these fields in the pivot (see attached). That however assumes your real data only has two countries (or a few at most).

    Thank you SO much. The last option you mentioned will work perfectly for me. There will only be 3 possible 'countries' so adding those new columns to the source data won't be a problem. I had tried to use a Calculated Item but as you say, I ran into the wall you described above. Never thought of amending the source data!

    Thanks again!

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Pareto Chart

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 2 Legends for Pareto Chart?
    By mycon73 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-30-2011, 09:53 PM
  2. Pareto chart
    By arnab0711 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-06-2010, 02:08 PM
  3. Pareto Chart, set line chart origin at zero
    By ExcelFed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2008, 05:08 PM
  4. [SOLVED] how do you create a Pareto Chart
    By ktdu4 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-04-2006, 10:35 PM
  5. Auto Pareto Chart
    By Robert_L. in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-03-2006, 03:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1