G
Guest
Question: Is there a workaround to "emulate" a 2-level crosstab in Access?
Issue:
I'm getting in data every data, which is used to make up a kind of
comparison report on commercial delinquencies, the data comes in raw table
form something like this...
DATE - CUSTOMERID - COLLECTIONTYPE - 1-30 $ - 30-59 $ ... (up to 120+ $)
12/1/05 - CUSTOMER1 - ACTIVE - $500 - $200 - ...
12/1/05 - CUSTOMER1 - MAJORACCT - $100 - $0 - ...
12/1/05 - CUSTOMER2 - ACTIVE - $200 - $100 - ...
12/1/05 - CUSTOMER2 - BANKRUPTCY - $600 - $40 - ...
....
and so on
What I would like to be able to do with this data, is consolidate it into a
single row that I can write out to Excel, something like so:
DATE - CUSTOMERID - 1-30_Active - 1-30_MajorAcct - 1-30_Bankruptcy - 30-59...
12/1/05 - CUSTOMER1 - $500 - $100 - $0 - $200 - ...
12/1/05 - CUSTOMER2 - $200 - $0 - $600 - $100 - ...
Basically, what I'm wanting to do is break it down for each date/customer
into its "bucket" (1-30, 30-59, etc) and then on collection type (Active,
MajorAcct, etc) and have the output all in one nice little row that I can
query on, write out to Excel, etc.
Crosstabs make this job a lot easier, but from my understanding you can only
have one column/value row. So doing this in one query wouldn't be possible I
don't believe. Any other ideas?
Issue:
I'm getting in data every data, which is used to make up a kind of
comparison report on commercial delinquencies, the data comes in raw table
form something like this...
DATE - CUSTOMERID - COLLECTIONTYPE - 1-30 $ - 30-59 $ ... (up to 120+ $)
12/1/05 - CUSTOMER1 - ACTIVE - $500 - $200 - ...
12/1/05 - CUSTOMER1 - MAJORACCT - $100 - $0 - ...
12/1/05 - CUSTOMER2 - ACTIVE - $200 - $100 - ...
12/1/05 - CUSTOMER2 - BANKRUPTCY - $600 - $40 - ...
....
and so on
What I would like to be able to do with this data, is consolidate it into a
single row that I can write out to Excel, something like so:
DATE - CUSTOMERID - 1-30_Active - 1-30_MajorAcct - 1-30_Bankruptcy - 30-59...
12/1/05 - CUSTOMER1 - $500 - $100 - $0 - $200 - ...
12/1/05 - CUSTOMER2 - $200 - $0 - $600 - $100 - ...
Basically, what I'm wanting to do is break it down for each date/customer
into its "bucket" (1-30, 30-59, etc) and then on collection type (Active,
MajorAcct, etc) and have the output all in one nice little row that I can
query on, write out to Excel, etc.
Crosstabs make this job a lot easier, but from my understanding you can only
have one column/value row. So doing this in one query wouldn't be possible I
don't believe. Any other ideas?