By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,396 Members | 2,501 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,396 IT Pros & Developers. It's quick & easy.

Transpose a Report

P: n/a
Excel has this cool little function where you can copy data, and then
paste it transposed so that which runs across the rows now runs down a
colum and visa versa. Is there a way in access to create a report that
would transpose the data from what is logical.

I have a query that has a field for the date (by month) and then
additional fields (15 of them) by which I enter in data. So in the
Table/Query it is formated such that when the data is entered you would
go across the row and enter in the date, and then enter in the
respective value for each of the fields your under.

I need to create a report that would allow me to show the date across
the top and the other fields running down the left with the values
under each date, such as a spreadsheet or cross tab query would do. As
you can see though from what I have explained a cross tab query will
not work, or at least I dont think it would becuase I would have to set
the dates as my column headings, all the other fields as my Row
Hadings, and am left with nothing for the value, because all the values
are actually associated with the row headings.

I hope this made sense and I hope someone can help because I am stumped.

Jun 24 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"JayDawg" <he******@cox.net> wrote in
news:11*********************@b68g2000cwa.googlegro ups.com:
Excel has this cool little function where you can copy data,
and then paste it transposed so that which runs across the
rows now runs down a colum and visa versa. Is there a way in
access to create a report that would transpose the data from
what is logical.

I have a query that has a field for the date (by month) and
then additional fields (15 of them) by which I enter in data.
So in the Table/Query it is formated such that when the data
is entered you would go across the row and enter in the date,
and then enter in the respective value for each of the fields
your under.

I need to create a report that would allow me to show the date
across the top and the other fields running down the left with
the values under each date, such as a spreadsheet or cross tab
query would do. As you can see though from what I have
explained a cross tab query will not work, or at least I dont
think it would becuase I would have to set the dates as my
column headings, all the other fields as my Row Hadings, and
am left with nothing for the value, because all the values are
actually associated with the row headings.

I hope this made sense and I hope someone can help because I
am stumped.


It doesnt make sense because even in Excel, you have only 1 cell
at the intersection of the row and column. So you would crosstab
the date to 14 of your 15 fields as row headings and use the
15th as the value

If you showed us some actual data it might be easier to
understand.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 24 '06 #2

P: n/a
I just signed up for this yesterday and am still a novice, how can I
show you the data?

Bob Quintal wrote:
"JayDawg" <he******@cox.net> wrote in
news:11*********************@b68g2000cwa.googlegro ups.com:
Excel has this cool little function where you can copy data,
and then paste it transposed so that which runs across the
rows now runs down a colum and visa versa. Is there a way in
access to create a report that would transpose the data from
what is logical.

I have a query that has a field for the date (by month) and
then additional fields (15 of them) by which I enter in data.
So in the Table/Query it is formated such that when the data
is entered you would go across the row and enter in the date,
and then enter in the respective value for each of the fields
your under.

I need to create a report that would allow me to show the date
across the top and the other fields running down the left with
the values under each date, such as a spreadsheet or cross tab
query would do. As you can see though from what I have
explained a cross tab query will not work, or at least I dont
think it would becuase I would have to set the dates as my
column headings, all the other fields as my Row Hadings, and
am left with nothing for the value, because all the values are
actually associated with the row headings.

I hope this made sense and I hope someone can help because I
am stumped.


It doesnt make sense because even in Excel, you have only 1 cell
at the intersection of the row and column. So you would crosstab
the date to 14 of your 15 fields as row headings and use the
15th as the value

If you showed us some actual data it might be easier to
understand.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com


Jun 24 '06 #3

P: n/a
Date By Month Sum Of PED Visits Sum Of PED AMA Sum Of PED
Elopes
Jan - 06 2577 54
2
Feb - 06 2894
60 5

Above is a representation of a few of the fields there are about ten
more Summary fileds from the query. Imagine thenext record would be
Mar - 06, Apr - 06, etc. each with its own values for the fields. What
I need in the report is to have the fields running down the left side
of the report, with the months running left to right on the top and the
data being in the data field of the report as it is here.

JayDawg wrote:
I just signed up for this yesterday and am still a novice, how can I
show you the data?

Bob Quintal wrote:
"JayDawg" <he******@cox.net> wrote in
news:11*********************@b68g2000cwa.googlegro ups.com:
Excel has this cool little function where you can copy data,
and then paste it transposed so that which runs across the
rows now runs down a colum and visa versa. Is there a way in
access to create a report that would transpose the data from
what is logical.

I have a query that has a field for the date (by month) and
then additional fields (15 of them) by which I enter in data.
So in the Table/Query it is formated such that when the data
is entered you would go across the row and enter in the date,
and then enter in the respective value for each of the fields
your under.

I need to create a report that would allow me to show the date
across the top and the other fields running down the left with
the values under each date, such as a spreadsheet or cross tab
query would do. As you can see though from what I have
explained a cross tab query will not work, or at least I dont
think it would becuase I would have to set the dates as my
column headings, all the other fields as my Row Hadings, and
am left with nothing for the value, because all the values are
actually associated with the row headings.

I hope this made sense and I hope someone can help because I
am stumped.


It doesnt make sense because even in Excel, you have only 1 cell
at the intersection of the row and column. So you would crosstab
the date to 14 of your 15 fields as row headings and use the
15th as the value

If you showed us some actual data it might be easier to
understand.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com


Jun 24 '06 #4

P: n/a
"JayDawg" <he******@cox.net> wrote in
news:11*********************@r2g2000cwb.googlegrou ps.com:

Month Visits AMA lopes
Jan - 06 2577 54 2
Feb - 06 2894 60 5

Above is a representation of a few of the fields there are
about ten more Summary fileds from the query. Imagine thenext
record would be Mar - 06, Apr - 06, etc. each with its own
values for the fields. What I need in the report is to have
the fields running down the left side of the report, with the
months running left to right on the top and the data being in
the data field of the report as it is here.

The hard part for you is going to be getting the data in the
proper format for a crosstab to work. Lets take a step back for
a second and examine how the data should have been stored, and
how we can query it to set it up right.

Ideally, the data should be in a table with three fields
Date, Fieldname, value.
Jan 06 PED Visits 2577
Jan 06 PED AMA 54
Jan 06 PED Elopes 2
Feb 06 PED Visits 2894
Feb 06 PED AMA 60
Feb 06 PED Elopes 5
....

If your source table is set up properly, it would be set up
something like this
Date, PED type, data, other data, more data, quantity
and each PED Type has become one of your fields, you are easily
on the way, just make a crosstab query directly from the table
Otherwise to get the crosstab you'll need to set up a query like
this:

SELECT Month,"PED_Visits" as fieldname, [SumOfPED VISITS] as
value from Query
UNION SELECT Month,"PED_AMA" as fieldname, [SumOfPED AMA] as
value from Query
UNION SELECT Month,"PED_Elopes" as fieldname, [SumOfPED VISITS]
as value from Query

and on down for your 15 fields, then build the crosstab query
from that query.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Jun 24 '06 #5

P: n/a
Thanks for the info Bob I will have to try the union query, I guess I
failed to share with you that the original table has additional fields
that are used for other reports. There is actually 24 records for each
day of the month as the date is tracked hourly. What I have here is
data that is summarized by grouping the dates by month.

Bob Quintal wrote:
"JayDawg" <he******@cox.net> wrote in
news:11*********************@r2g2000cwb.googlegrou ps.com:

Month Visits AMA lopes
Jan - 06 2577 54 2
Feb - 06 2894 60 5

Above is a representation of a few of the fields there are
about ten more Summary fileds from the query. Imagine thenext
record would be Mar - 06, Apr - 06, etc. each with its own
values for the fields. What I need in the report is to have
the fields running down the left side of the report, with the
months running left to right on the top and the data being in
the data field of the report as it is here.

The hard part for you is going to be getting the data in the
proper format for a crosstab to work. Lets take a step back for
a second and examine how the data should have been stored, and
how we can query it to set it up right.

Ideally, the data should be in a table with three fields
Date, Fieldname, value.
Jan 06 PED Visits 2577
Jan 06 PED AMA 54
Jan 06 PED Elopes 2
Feb 06 PED Visits 2894
Feb 06 PED AMA 60
Feb 06 PED Elopes 5
...

If your source table is set up properly, it would be set up
something like this
Date, PED type, data, other data, more data, quantity
and each PED Type has become one of your fields, you are easily
on the way, just make a crosstab query directly from the table
Otherwise to get the crosstab you'll need to set up a query like
this:

SELECT Month,"PED_Visits" as fieldname, [SumOfPED VISITS] as
value from Query
UNION SELECT Month,"PED_AMA" as fieldname, [SumOfPED AMA] as
value from Query
UNION SELECT Month,"PED_Elopes" as fieldname, [SumOfPED VISITS]
as value from Query

and on down for your 15 fields, then build the crosstab query
from that query.

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com


Jun 24 '06 #6

P: n/a
On 23 Jun 2006 17:19:27 -0700, "JayDawg" <he******@cox.net> wrote:
Excel has this cool little function where you can copy data, and then
paste it transposed so that which runs across the rows now runs down a
colum and visa versa. Is there a way in access to create a report that
would transpose the data from what is logical.

I have a query that has a field for the date (by month) and then
additional fields (15 of them) by which I enter in data. So in the
Table/Query it is formated such that when the data is entered you would
go across the row and enter in the date, and then enter in the
respective value for each of the fields your under.

I need to create a report that would allow me to show the date across
the top and the other fields running down the left with the values
under each date, such as a spreadsheet or cross tab query would do. As
you can see though from what I have explained a cross tab query will
not work, or at least I dont think it would becuase I would have to set
the dates as my column headings, all the other fields as my Row
Hadings, and am left with nothing for the value, because all the values
are actually associated with the row headings.

I hope this made sense and I hope someone can help because I am stumped.


Take a look at
http://support.microsoft.com/?kbid=202176#6
HOW TO: Transpose Data in a Table or Query in Access 2000

Jun 25 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.