W
webicky
I'm trying to make a query that will imitate a 2-layer pivot table (as
a- the pivot table takes a while to load up and b- i'd rather have the
data in a query anyway). Guessing that is a crosstab or a (pivot table
query, but could not find that). Access 2003
I have multiple repeated id's (17k),multiple repeated subgroups (at
least 25), 3 repeated types, and number of people (type/subgroup
specific). each id only has one type/subgroup - These are correctly
collapsed by the pivot table
Orig table
ID # Subgroup Type Num ppl
100 1 6 100
100 1 7 10
100 1 8 50
100 3 6 25
100 3 7 50
100 3 8 5
100 5 6 111
200 1 6 10
200 1 7 20
200 1 8 30
200 3 6 40
300 1 6 5
Pivot displays (correctly)
ID# (now unique) Type/Subgroup
6.1 6.3 6.5,, 7.1 7.3
100 100 25 111 10 50
200 10 40
300 5
Cross tab only allows me to get 1 piece of data, so I am thinking i
need to link two crosstabs? I'd like to NOT have to manually make
every group since there are more than 25*3 combinations.
Any help would be appreciated.
Thanks
a- the pivot table takes a while to load up and b- i'd rather have the
data in a query anyway). Guessing that is a crosstab or a (pivot table
query, but could not find that). Access 2003
I have multiple repeated id's (17k),multiple repeated subgroups (at
least 25), 3 repeated types, and number of people (type/subgroup
specific). each id only has one type/subgroup - These are correctly
collapsed by the pivot table
Orig table
ID # Subgroup Type Num ppl
100 1 6 100
100 1 7 10
100 1 8 50
100 3 6 25
100 3 7 50
100 3 8 5
100 5 6 111
200 1 6 10
200 1 7 20
200 1 8 30
200 3 6 40
300 1 6 5
Pivot displays (correctly)
ID# (now unique) Type/Subgroup
6.1 6.3 6.5,, 7.1 7.3
100 100 25 111 10 50
200 10 40
300 5
Cross tab only allows me to get 1 piece of data, so I am thinking i
need to link two crosstabs? I'd like to NOT have to manually make
every group since there are more than 25*3 combinations.
Any help would be appreciated.
Thanks