Results 1 to 2 of 2

Pivot table - SUM of COUNTS?

Threaded View

nick_danger Pivot table - SUM of COUNTS? 03-06-2008, 03:32 PM
steven1001 You can do it quite easily. ... 03-10-2008, 11:43 PM
  1. #1
    Registered User
    Join Date
    03-04-2008
    Posts
    5

    Pivot table - SUM of COUNTS?

    Here's the premise:

    Vehicle crashes have stored with them many fields of data. Each row of my table contains (for example) location, crash type, speed, year occurred, vehicle type and details on up to four drivers/pedestrians involved (by a set of columns that repeat four times). Each driver's age is recorded in a column called AGE with values ranging from 0 to 900 or left blank depending on how many drivers were involced.

    Here's a rudimentary example of what it looks like using commas as column breaks (you'll have to use your imagination):

    YR,AGE,AGE,AGE,AGE
    2005,18,22
    2001,16,64,28,27
    2008,78
    1997,35,12

    So I have four AGE columns displaying ages of drivers. In a pivot table, I want to SUM the COUNTS of each age within all of the four columns by the year the crash occurred. So the table has to be smart enough to know that for every crash that occurred in 2005, XX drivers (of up to four possible drivers) were XX years old.

    As it stands so far, I can get a pivot table (and subsequent graph) to show me a multi-year breakdown per driver column by age (AGE, AGE2, AGE3, AGE4) or even by age groups that I determine (AGE5), but I can't get it to combine the counts from each AGE column into a singular column representing that particular age.

    The icing on the cake would be to be able to define my own age groups as well using preset criteria (less than, greater than, etc.) because the age data can be so variable.

    I hope I supplied enough info.
    Attached Images Attached Images

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