473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Transpose a Report

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
6 4932
"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
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
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tuong Do | last post by:
Hi I have a table with data like this ID Type 1 A 1 B 1 C 2 A 2 C
1
by: jenny.rhodes | last post by:
Hello, Please can anyone guide me on how to transpose an access table where I have many records per id eg UserID Question Answer 1 1 a 1 2 d 1 3 ...
1
by: Jenny | last post by:
Hello, Please can anyone guide me on how to transpose an access table where I have many records per id eg UserID Question Answer 1 1 a 1 2 d
7
by: sangeetha | last post by:
Hi, i need to transpose a nx1 matrix to 1xn matrix inorder to multiply with nxn matrix in c language ... can anyone help in this coding ..the nx1 matrix is pi the data type is double *pi..this is...
7
by: Leszek Gruszka | last post by:
I wrote an aplication that write something into tableA in sql2000. I want to write the same, but transposed into tableB. Someone can help me? Any example? *** Sent via Developersdex...
3
by: Gerard Brunick | last post by:
My way is ugly. These has to be a better way. Thanks, Gerard
0
by: shantanu | last post by:
I am trying to convert a macro code to c# that will copy the values of a column and paste to anather through paste special. Everything is working fine but the transpose meathod to paste the column...
4
by: TSGB | last post by:
I need to do the following: If you look at a tabular regular report you'll see what I need but transposed. The title on the left in one single column and the data on its right side Like ...
2
by: prads | last post by:
Hello, Can anybody tell me how i shud go about to perform the transpose of a nonsquare matrix array. Pls give me an idea so that i can write one based on that and then post queries if errors r...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.