+ Reply to Thread
Results 1 to 7 of 7

Chart jagged, irregular data - maybe a pivot table?

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    Orange, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Chart jagged, irregular data - maybe a pivot table?

    I use Excel only for the most basic operations and tasks and am far from an advanced user. I have a requirement to chart some data and I'm having a difficult time figuring out how to accomplish it without manually pre-processing all the records (rows).

    I need to chart the percentages of statuses per day on a set of leads we received. In other words, we received a variable number of leads each day and each lead as a status or disposition. I need a line graph that will show me the percentage of leads for each status for that day. Here is some sample data:

    Please Login or Register  to view this content.
    As you can see each day can have a subset of available statuses. In other words, there are 8 potential statuses (not represented in the sample above) but the data I have will only list the statuses that have at least one lead attribute to it.

    I would like to condition or process this data so that I end up with a line graph that would show, for example, the "WON" status with the following values:
    7/18/2010 50.0%
    7/19/2010 44.4%
    7/20/2010 20.0%

    and for "Ready to Order":
    7/18/2010 8.3%
    7/19/2010 0% <-- ** Note the 0% inserted when there is no data
    7/20/2010 20.0%


    That's about the best explanation I can give. Hopefully it's clear enough that you understand what I'm after. I'll really appreciate some help on this if it's even possible.

    Thanks,
    Steve
    Last edited by pmdprt; 09-07-2010 at 06:33 PM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Maybe a pivot table is the solution?

    I'd agree, seems like a pivot table is the right solution:
    1. Please title your thread with something that makes it more useful for others searching the forum (although nothing obvious springs to mind - I'm just trying to stop you getting mod-bashed)
    2. Upload an example and we'll see what we can do (assuming you do 1)

    hth
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  3. #3
    Registered User
    Join Date
    09-07-2010
    Location
    Orange, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Chart jagged, irregular data - maybe a pivot table?

    I tried to come up with a better title but couldn't think of anything. I tried again and hopefully have made an improvement. Thanks for the suggestion though, I appreciate it.

    I have attached a sample file to this reply.
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Chart jagged, irregular data - maybe a pivot table?

    Hi pmdprt
    See the attached with a Pivot Table included on your sample. Right Click anywhere on the Pivot Table Total Column to display the dropdown. Click on Show Values as and look at your options. If the one I've attached isn't exactly correct try other Show Values As or Summarize Value As options.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Chart jagged, irregular data - maybe a pivot table?

    Tweaking Marvin's upload, I think you need to:
    right-click a status
    go to field settings
    put a tick in 'show items with no data'

    or (probably more useful for charting) drag date received to the column headers area

    You would need to replicate your data from the pivot table with simple formulae like:
    G15=G3 copied down and across to give you more control over the formatting of the chart than pivot charts will allow

    hth

  6. #6
    Registered User
    Join Date
    09-07-2010
    Location
    Orange, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Chart jagged, irregular data - maybe a pivot table?

    Cool, thanks for the help guys!!

    I made Cheeky's suggested changes to show blank value and that gave me an equal status set for each date, good.

    You're correct Cheeky, I do need to break the data out but when I try to do a simple copy (or access the Total column in a formula) it results in the following function call:
    PHP Code: 
    =GETPIVOTDATA("Count",G2,"Date Received",DATE(2010,7,18),"Status","CUSTOMER-Won"
    As you can imagine this prevents me from "click-drag-replicating" the formula for all needed fields.

    I finally "cooked" the pivot table down to dumb cell data by using Paste Special > Values.

    I now have a lot of tweaking to do to try and find a way to chart this the way I want. Thanks for the help getting me this far, I need to learn pivot tables as they seem pretty powerful.

    Thanks again,
    Steve

  7. #7
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Chart jagged, irregular data - maybe a pivot table?

    if you select a cell in a pivot table whilst writing a formula it will give you the getpivotdata syntax (this can be quite handy) if you just type in the cell address you can treat it like a regular drag-across formula

    If you give a picture of qhat you actually want to see (paint is your friend) we might be able to make it simpler.

    hth

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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