Sign Up |  Live StatsLive Stats    Articles 34,880| Comments 154,875| Members 17,231, Newest 1stmanjeet| Online 303
Home Contact
 (Forgotten?): 
    A portrait by Bhagat Singh of Sikhiart.com

   
                                                                     Your Banner Here!    

 
 
  
  
Sikh Philosophy Network » Members Lounge » Information Technology » Report left to right not top to bottom

Report left to right not top to bottom

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 25 USD (6%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
The Bottom Line Aman Singh Sikh Sikhi Sikhism 0 25-Dec-2009 22:37 PM
At a Mine’s Bottom, Hints of Dark Matter Narayanjot Kaur SciTech 1 18-Dec-2009 23:03 PM
Getting to the Bottom of It: The Concept of Hell in Sikhism Narayanjot Kaur Sikh Sikhi Sikhism 10 20-Jul-2009 16:45 PM
How to align text within the txt label to bottom? Adnan Information Technology 2 28-Jul-2006 08:15 AM


Tags
report, left, right, top, bottom
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #11 (permalink)  
Old 28-Jul-2006, 08:19 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
You can create a query that normalizes your data

SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
ICPresented AS Measurement
UNION
SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate, ICAnswered
AS Measurement
UNION
SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
Measurement
UNION
SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
Measurement

then use the approach I suggested.

BTW, Date is not a good choice for a field name in Access (nor, for that
matter, for anything else). Date is a reserved word, and using it for your
own purposes can lead to all sorts of problems. If you cannot (or will not)
change the field name, at least use square brackets around it, as in my
example above.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Adam@nospam.com" wrote in message
news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
> Hi,
>
> No this is my fault, I haven't explained this very well at all.
>
> I have a table with data as below:
>
> Team ICPresented ICAnswered PCA20 PCA40 Date
> A 1235 1100 60% 70% Mar-06
> B 1446 1300 65% 72% Mar-06
> C 1289 1201 55% 61% Mar-06
> D 1564 1498 61% 70% Mar-06
> A 1531 1475 63% 68% Apr-06
> B 1101 1012 54% 61% Apr-06
> C 2101 1897 59% 64% Apr-06
> D 1905 1806 63% 71% Apr-06
>
> So I would like a report to then look like the below:
>
> Team A Mar-06 Apr-06
> ICPresented 1235 1531
> ICAnswered 1100 1475
> PCA20 60% 63%
> PCA40 70% 68%
>
> Team B
> ICPresented 1446 1101
> ICAnswered 1300 1012
> PCA20 65% 54%
> PCA40 72% 61%
>
> And so on etc...
>
> The months across the top would cover from Jan to Dec and there would
> be more categories going down on the left.
>
>
> Many Thanks for your continued help!
>
> Adam
>
>
>
> Douglas J Steele wrote:
>
> > Perhaps I don't understand your issue.
> >
> > Assuming you've got a table along the lines of:
> >
> > Category
> > MeaurementDate
> > Measurement
> >
> > you'd select Category as the Row heading (on the 2nd page of the

wizard),
> > MeasurementDate as the Column heading (on the 3rd page of the wizard),

then
> > Measurement on the 4th page of the wizard. Since you've only got one

value
> > to calculate, you can use Avg, First, Last, Max, Min or Sum as the

function.
> >
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> > "Adam@nospam.com" wrote in message
> > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
> > > Thats what I need but how do i do more than 2 categories??
> > >
> > >
> > >
> > > Douglas J Steele wrote:
> > >
> > > > What I understand is that you wanted months across the top, and 20

> > different
> > > > categories along the left. At the intersection of each category and

each
> > > > month, you want a value that will represent the measure for that

> > category
> > > > for that month.
> > > >
> > > > That's a cross-tab query...
> > > >
> > > > --
> > > > Doug Steele, Microsoft Access MVP
> > > > http://I.Am/DougSteele
> > > > (no e-mails, please!)
> > > >
> > > >
> > > > "Adam@nospam.com" wrote in message
> > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
> > > > > Hi Doug,
> > > > >
> > > > > Well there's around 20 fields that I'd like to line up on the

left,
> > > > > however a crosstab query, as far as I know, only lets you look at

a
> > > > > maximum of 2.
> > > > >
> > > > >
> > > > >
> > > > > Douglas J Steele wrote:
> > > > >
> > > > > > Based on your original post, it certainly sounds as though a

> > cross-tab
> > > > query
> > > > > > should fit the bill.
> > > > > >
> > > > > > What did you leave out of that original post?
> > > > > >
> > > > > > --
> > > > > > Doug Steele, Microsoft Access MVP
> > > > > > http://I.Am/DougSteele
> > > > > > (no e-mails, please!)
> > > > > >
> > > > > >
> > > > > > "Adam@nospam.com" wrote in message
> > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
> > > > > > > The crosstab wouldn't be sufficient though, as I have around

20
> > fields
> > > > > > > I want to include on the page.
> > > > > > >
> > > > > > >
> > > > > > > Kernow Girl wrote:
> > > > > > >
> > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab Query.

The
> > > > Help
> > > > > > screen
> > > > > > > > says this:
> > > > > > > > You use crosstab queries to calculate and restructure data

for
> > > > easier
> > > > > > > > analysis of your data. Crosstab queries calculate a sum,

> > average,
> > > > count,
> > > > > > or
> > > > > > > > other type of total for data that is grouped by two types of
> > > > > > information -
> > > > > > > > one down the left side of the datasheet and another across

the
> > top.
> > > > > > > > HTH - Dika
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11242-report-left-right-not-top-bottom.html
> > > > > > > >
> > > > > > > >
> > > > > > > > "Adam@nospam.com" wrote:
> > > > > > > >
> > > > > > > > > Hi All,
> > > > > > > > >
> > > > > > > > > I'm having to do a big database where I am reporting on

> > various
> > > > > > > > > departments over yearly periods, where there performance

is
> > split
> > > > > > > > > monthly and measured in the output report.
> > > > > > > > >
> > > > > > > > > I have various fields, including a month field.
> > > > > > > > >
> > > > > > > > > What I would like is to have a report output whereby the

> > fields go
> > > > > > down
> > > > > > > > > the left, the months run across the top of the page (jan

to
> > dec)
> > > > and
> > > > > > > > > the measures were then shown below that.
> > > > > > > > >
> > > > > > > > > I cannot see a way of doing this.
> > > > > > > > >
> > > > > > > > > Does anybody know how I could do this?
> > > > > > > > >
> > > > > > > > > Many Thanks
> > > > > > > > >
> > > > > > > > > Adam
> > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >

>


Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242






 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #12 (permalink)  
Old 28-Jul-2006, 08:19 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

Thanks Doug, what will this do? I presume this is SQL code to be used
in a query?

Please forgive my newbness!


Douglas J Steele wrote:
> You can create a query that normalizes your data
>
> SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
> ICPresented AS Measurement
> UNION
> SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate, ICAnswered
> AS Measurement
> UNION
> SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
> Measurement
> UNION
> SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
> Measurement
>
> then use the approach I suggested.
>
> BTW, Date is not a good choice for a field name in Access (nor, for that
> matter, for anything else). Date is a reserved word, and using it for your
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> own purposes can lead to all sorts of problems. If you cannot (or will not)
> change the field name, at least use square brackets around it, as in my
> example above.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Adam@nospam.com" wrote in message
> news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
> > Hi,
> >
> > No this is my fault, I haven't explained this very well at all.
> >
> > I have a table with data as below:
> >
> > Team ICPresented ICAnswered PCA20 PCA40 Date
> > A 1235 1100 60% 70% Mar-06
> > B 1446 1300 65% 72% Mar-06
> > C 1289 1201 55% 61% Mar-06
> > D 1564 1498 61% 70% Mar-06
> > A 1531 1475 63% 68% Apr-06
> > B 1101 1012 54% 61% Apr-06
> > C 2101 1897 59% 64% Apr-06
> > D 1905 1806 63% 71% Apr-06
> >
> > So I would like a report to then look like the below:
> >
> > Team A Mar-06 Apr-06
> > ICPresented 1235 1531
> > ICAnswered 1100 1475
> > PCA20 60% 63%
> > PCA40 70% 68%
> >
> > Team B
> > ICPresented 1446 1101
> > ICAnswered 1300 1012
> > PCA20 65% 54%
> > PCA40 72% 61%
> >
> > And so on etc...
> >
> > The months across the top would cover from Jan to Dec and there would
> > be more categories going down on the left.
> >
> >
> > Many Thanks for your continued help!
> >
> > Adam
> >
> >
> >
> > Douglas J Steele wrote:
> >
> > > Perhaps I don't understand your issue.
> > >
> > > Assuming you've got a table along the lines of:
> > >
> > > Category
> > > MeaurementDate
> > > Measurement
> > >
> > > you'd select Category as the Row heading (on the 2nd page of the

> wizard),
> > > MeasurementDate as the Column heading (on the 3rd page of the wizard),

> then
> > > Measurement on the 4th page of the wizard. Since you've only got one

> value
> > > to calculate, you can use Avg, First, Last, Max, Min or Sum as the

> function.
> > >
> > >
> > > --
> > > Doug Steele, Microsoft Access MVP
> > > http://I.Am/DougSteele
> > > (no e-mails, please!)
> > >
> > >
> > > "Adam@nospam.com" wrote in message
> > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
> > > > Thats what I need but how do i do more than 2 categories??
> > > >
> > > >
> > > >
> > > > Douglas J Steele wrote:
> > > >
> > > > > What I understand is that you wanted months across the top, and 20
> > > different
> > > > > categories along the left. At the intersection of each category and

> each
> > > > > month, you want a value that will represent the measure for that
> > > category
> > > > > for that month.
> > > > >
> > > > > That's a cross-tab query...
> > > > >
> > > > > --
> > > > > Doug Steele, Microsoft Access MVP
> > > > > http://I.Am/DougSteele
> > > > > (no e-mails, please!)
> > > > >
> > > > >
> > > > > "Adam@nospam.com" wrote in message
> > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
> > > > > > Hi Doug,
> > > > > >
> > > > > > Well there's around 20 fields that I'd like to line up on the

> left,
> > > > > > however a crosstab query, as far as I know, only lets you look at

> a
> > > > > > maximum of 2.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Douglas J Steele wrote:
> > > > > >
> > > > > > > Based on your original post, it certainly sounds as though a
> > > cross-tab
> > > > > query
> > > > > > > should fit the bill.
> > > > > > >
> > > > > > > What did you leave out of that original post?
> > > > > > >
> > > > > > > --
> > > > > > > Doug Steele, Microsoft Access MVP
> > > > > > > http://I.Am/DougSteele
> > > > > > > (no e-mails, please!)
> > > > > > >
> > > > > > >
> > > > > > > "Adam@nospam.com" wrote in message
> > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
> > > > > > > > The crosstab wouldn't be sufficient though, as I have around

> 20
> > > fields
> > > > > > > > I want to include on the page.
> > > > > > > >
> > > > > > > >
> > > > > > > > Kernow Girl wrote:
> > > > > > > >
> > > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab Query.

> The
> > > > > Help
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> > > > > > > screen
> > > > > > > > > says this:
> > > > > > > > > You use crosstab queries to calculate and restructure data

> for
> > > > > easier
> > > > > > > > > analysis of your data. Crosstab queries calculate a sum,
> > > average,
> > > > > count,
> > > > > > > or
> > > > > > > > > other type of total for data that is grouped by two types of
> > > > > > > information -
> > > > > > > > > one down the left side of the datasheet and another across

> the
> > > top.
> > > > > > > > > HTH - Dika
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Adam@nospam.com" wrote:
> > > > > > > > >
> > > > > > > > > > Hi All,
> > > > > > > > > >
> > > > > > > > > > I'm having to do a big database where I am reporting on
> > > various
> > > > > > > > > > departments over yearly periods, where there performance

> is
> > > split
> > > > > > > > > > monthly and measured in the output report.
> > > > > > > > > >
> > > > > > > > > > I have various fields, including a month field.
> > > > > > > > > >
> > > > > > > > > > What I would like is to have a report output whereby the
> > > fields go
> > > > > > > down
> > > > > > > > > > the left, the months run across the top of the page (jan

> to
> > > dec)
> > > > > and
> > > > > > > > > > the measures were then shown below that.
> > > > > > > > > >
> > > > > > > > > > I cannot see a way of doing this.
> > > > > > > > > >
> > > > > > > > > > Does anybody know how I could do this?
> > > > > > > > > >
> > > > > > > > > > Many Thanks
> > > > > > > > > >
> > > > > > > > > > Adam
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >

> >


Reply With Quote
  #13 (permalink)  
Old 28-Jul-2006, 08:19 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

Sorry, I can see this now.

I will try this shortly and let you know how it goes! If I have a space
inbetween my field names, I know its a sin, should I use the square
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
brackets around the field name?


Adam@nospam.com wrote:
> Thanks Doug, what will this do? I presume this is SQL code to be used
> in a query?
>
> Please forgive my newbness!
>
>
> Douglas J Steele wrote:
> > You can create a query that normalizes your data
> >
> > SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
> > ICPresented AS Measurement
> > UNION
> > SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate, ICAnswered
> > AS Measurement
> > UNION
> > SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
> > Measurement
> > UNION
> > SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
> > Measurement
> >
> > then use the approach I suggested.
> >
> > BTW, Date is not a good choice for a field name in Access (nor, for that
> > matter, for anything else). Date is a reserved word, and using it for your
> > own purposes can lead to all sorts of problems. If you cannot (or will not)
> > change the field name, at least use square brackets around it, as in my
> > example above.
> >
> > --
> > Doug Steele, Microsoft Access MVP
> > http://I.Am/DougSteele
> > (no e-mails, please!)
> >
> >
> > "Adam@nospam.com" wrote in message
> > news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
> > > Hi,
> > >
> > > No this is my fault, I haven't explained this very well at all.
> > >
> > > I have a table with data as below:
> > >
> > > Team ICPresented ICAnswered PCA20 PCA40 Date
> > > A 1235 1100 60% 70% Mar-06
> > > B 1446 1300 65% 72% Mar-06
> > > C 1289 1201 55% 61% Mar-06
> > > D 1564 1498 61% 70% Mar-06
> > > A 1531 1475 63% 68% Apr-06
> > > B 1101 1012 54% 61% Apr-06
> > > C 2101 1897 59% 64% Apr-06
> > > D 1905 1806 63% 71% Apr-06
> > >
> > > So I would like a report to then look like the below:
> > >
> > > Team A Mar-06 Apr-06
> > > ICPresented 1235 1531
> > > ICAnswered 1100 1475
> > > PCA20 60% 63%
> > > PCA40 70% 68%
> > >
> > > Team B
> > > ICPresented 1446 1101
> > > ICAnswered 1300 1012
> > > PCA20 65% 54%
> > > PCA40 72% 61%
> > >
> > > And so on etc...
> > >
> > > The months across the top would cover from Jan to Dec and there would
> > > be more categories going down on the left.
> > >
> > >
> > > Many Thanks for your continued help!
> > >
> > > Adam
> > >
> > >
> > >
> > > Douglas J Steele wrote:
> > >
> > > > Perhaps I don't understand your issue.
> > > >
> > > > Assuming you've got a table along the lines of:
> > > >
> > > > Category
> > > > MeaurementDate
> > > > Measurement
> > > >
> > > > you'd select Category as the Row heading (on the 2nd page of the

> > wizard),
> > > > MeasurementDate as the Column heading (on the 3rd page of the wizard),

> > then
> > > > Measurement on the 4th page of the wizard. Since you've only got one

> > value
> > > > to calculate, you can use Avg, First, Last, Max, Min or Sum as the

> > function.
> > > >
> > > >
> > > > --
> > > > Doug Steele, Microsoft Access MVP
> > > > http://I.Am/DougSteele
> > > > (no e-mails, please!)
> > > >
> > > >
> > > > "Adam@nospam.com" wrote in message
> > > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
> > > > > Thats what I need but how do i do more than 2 categories??
> > > > >
> > > > >
> > > > >
> > > > > Douglas J Steele wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> > > > >
> > > > > > What I understand is that you wanted months across the top, and 20
> > > > different
> > > > > > categories along the left. At the intersection of each category and

> > each
> > > > > > month, you want a value that will represent the measure for that
> > > > category
> > > > > > for that month.
> > > > > >
> > > > > > That's a cross-tab query...
> > > > > >
> > > > > > --
> > > > > > Doug Steele, Microsoft Access MVP
> > > > > > http://I.Am/DougSteele
> > > > > > (no e-mails, please!)
> > > > > >
> > > > > >
> > > > > > "Adam@nospam.com" wrote in message
> > > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
> > > > > > > Hi Doug,
> > > > > > >
> > > > > > > Well there's around 20 fields that I'd like to line up on the

> > left,
> > > > > > > however a crosstab query, as far as I know, only lets you look at

> > a
> > > > > > > maximum of 2.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Douglas J Steele wrote:
> > > > > > >
> > > > > > > > Based on your original post, it certainly sounds as though a
> > > > cross-tab
> > > > > > query
> > > > > > > > should fit the bill.
> > > > > > > >
> > > > > > > > What did you leave out of that original post?
> > > > > > > >
> > > > > > > > --
> > > > > > > > Doug Steele, Microsoft Access MVP
> > > > > > > > http://I.Am/DougSteele
> > > > > > > > (no e-mails, please!)
> > > > > > > >
> > > > > > > >
> > > > > > > > "Adam@nospam.com" wrote in message
> > > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
> > > > > > > > > The crosstab wouldn't be sufficient though, as I have around

> > 20
> > > > fields
> > > > > > > > > I want to include on the page.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Kernow Girl wrote:
> > > > > > > > >
> > > > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab Query.

> > The
> > > > > > Help
> > > > > > > > screen
> > > > > > > > > > says this:
> > > > > > > > > > You use crosstab queries to calculate and restructure data

> > for
> > > > > > easier
> > > > > > > > > > analysis of your data. Crosstab queries calculate a sum,
> > > > average,
> > > > > > count,
> > > > > > > > or
> > > > > > > > > > other type of total for data that is grouped by two types of
> > > > > > > > information -
> > > > > > > > > > one down the left side of the datasheet and another across

> > the
> > > > top.
> > > > > > > > > > HTH - Dika
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > "Adam@nospam.com" wrote:
> > > > > > > > > >
> > > > > > > > > > > Hi All,
> > > > > > > > > > >
> > > > > > > > > > > I'm having to do a big database where I am reporting on
> > > > various
> > > > > > > > > > > departments over yearly periods, where there performance

> > is
> > > > split
> > > > > > > > > > > monthly and measured in the output report.
> > > > > > > > > > >
> > > > > > > > > > > I have various fields, including a month field.
> > > > > > > > > > >
> > > > > > > > > > > What I would like is to have a report output whereby the
> > > > fields go
> > > > > > > > down
> > > > > > > > > > > the left, the months run across the top of the page (jan

> > to
> > > > dec)
> > > > > > and
> > > > > > > > > > > the measures were then shown below that.
> > > > > > > > > > >
> > > > > > > > > > > I cannot see a way of doing this.
> > > > > > > > > > >
> > > > > > > > > > > Does anybody know how I could do this?
> > > > > > > > > > >
> > > > > > > > > > > Many Thanks
> > > > > > > > > > >
> > > > > > > > > > > Adam
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > >
> > > > > > >
> > > > >
> > >


Reply With Quote
  #14 (permalink)  
Old 28-Jul-2006, 08:19 AM
BruceM's Avatar BruceM
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

If a field name contains a space, you must surround it with brackets.

"Adam@nospam.com" wrote in message
news:1150197613.498169.206770@g10g2000cwb.googlegr oups.com...
> Sorry, I can see this now.
>
> I will try this shortly and let you know how it goes! If I have a space
> inbetween my field names, I know its a sin, should I use the square
> brackets around the field name?
>
>
> Adam@nospam.com wrote:
>> Thanks Doug, what will this do? I presume this is SQL code to be used
>> in a query?
>>
>> Please forgive my newbness!
>>
>>
>> Douglas J Steele wrote:
>> > You can create a query that normalizes your data
>> >
>> > SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
>> > ICPresented AS Measurement
>> > UNION
>> > SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate,
>> > ICAnswered
>> > AS Measurement
>> > UNION
>> > SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
>> > Measurement
>> > UNION
>> > SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
>> > Measurement
>> >
>> > then use the approach I suggested.
>> >
>> > BTW, Date is not a good choice for a field name in Access (nor, for
>> > that
>> > matter, for anything else). Date is a reserved word, and using it for
>> > your
>> > own purposes can lead to all sorts of problems. If you cannot (or will
>> > not)
>> > change the field name, at least use square brackets around it, as in my
>> > example above.
>> >
>> > --
>> > Doug Steele, Microsoft Access MVP
>> > http://I.Am/DougSteele
>> > (no e-mails, please!)
>> >
>> >
>> > "Adam@nospam.com" wrote in message
>> > news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
>> > > Hi,
>> > >
>> > > No this is my fault, I haven't explained this very well at all.
>> > >
>> > > I have a table with data as below:
>> > >
>> > > Team ICPresented ICAnswered PCA20 PCA40 Date
>> > > A 1235 1100 60% 70% Mar-06
>> > > B 1446 1300 65% 72% Mar-06
>> > > C 1289 1201 55% 61% Mar-06
>> > > D 1564 1498 61% 70% Mar-06
>> > > A 1531 1475 63% 68% Apr-06
>> > > B 1101 1012 54% 61% Apr-06
>> > > C 2101 1897 59% 64% Apr-06
>> > > D 1905 1806 63% 71% Apr-06
>> > >
>> > > So I would like a report to then look like the below:
>> > >
>> > > Team A Mar-06 Apr-06
>> > > ICPresented 1235 1531
>> > > ICAnswered 1100 1475
>> > > PCA20 60% 63%
>> > > PCA40 70% 68%
>> > >
>> > > Team B
>> > > ICPresented 1446 1101
>> > > ICAnswered 1300 1012
>> > > PCA20 65% 54%
>> > > PCA40 72% 61%
>> > >
>> > > And so on etc...
>> > >
>> > > The months across the top would cover from Jan to Dec and there would
>> > > be more categories going down on the left.
>> > >
>> > >
>> > > Many Thanks for your continued help!
>> > >
>> > > Adam
>> > >
>> > >
>> > >
>> > > Douglas J Steele wrote:
>> > >
>> > > > Perhaps I don't understand your issue.
>> > > >
>> > > > Assuming you've got a table along the lines of:
>> > > >
>> > > > Category
>> > > > MeaurementDate
>> > > > Measurement
>> > > >
>> > > > you'd select Category as the Row heading (on the 2nd page of the
>> > wizard),
>> > > > MeasurementDate as the Column heading (on the 3rd page of the
>> > > > wizard),
>> > then
>> > > > Measurement on the 4th page of the wizard. Since you've only got
>> > > > one
>> > value
>> > > > to calculate, you can use Avg, First, Last, Max, Min or Sum as the
>> > function.
>> > > >
>> > > >
>> > > > --
>> > > > Doug Steele, Microsoft Access MVP
>> > > > http://I.Am/DougSteele
>> > > > (no e-mails, please!)
>> > > >
>> > > >
>> > > > "Adam@nospam.com" wrote in message
>> > > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
>> > > > > Thats what I need but how do i do more than 2 categories??
>> > > > >
>> > > > >
>> > > > >
>> > > > > Douglas J Steele wrote:
>> > > > >
>> > > > > > What I understand is that you wanted months across the top, and
>> > > > > > 20
>> > > > different
>> > > > > > categories along the left. At the intersection of each category
>> > > > > > and
>> > each
>> > > > > > month, you want a value that will represent the measure for
>> > > > > > that
>> > > > category
>> > > > > > for that month.
>> > > > > >
>> > > > > > That's a cross-tab query...
>> > > > > >
>> > > > > > --
>> > > > > > Doug Steele, Microsoft Access MVP
>> > > > > > http://I.Am/DougSteele
>> > > > > > (no e-mails, please!)
>> > > > > >
>> > > > > >
>> > > > > > "Adam@nospam.com" wrote in message
>> > > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
>> > > > > > > Hi Doug,
>> > > > > > >
>> > > > > > > Well there's around 20 fields that I'd like to line up on the
>> > left,
>> > > > > > > however a crosstab query, as far as I know, only lets you
>> > > > > > > look at
>> > a
>> > > > > > > maximum of 2.
>> > > > > > >
>> > > > > > >
>> > > > > > >
>> > > > > > > Douglas J Steele wrote:
>> > > > > > >
>> > > > > > > > Based on your original post, it certainly sounds as though
>> > > > > > > > a
>> > > > cross-tab
>> > > > > > query
>> > > > > > > > should fit the bill.
>> > > > > > > >
>> > > > > > > > What did you leave out of that original post?
>> > > > > > > >
>> > > > > > > > --
>> > > > > > > > Doug Steele, Microsoft Access MVP
>> > > > > > > > http://I.Am/DougSteele
>> > > > > > > > (no e-mails, please!)
>> > > > > > > >
>> > > > > > > >
>> > > > > > > > "Adam@nospam.com" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
>> > > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
>> > > > > > > > > The crosstab wouldn't be sufficient though, as I have
>> > > > > > > > > around
>> > 20
>> > > > fields
>> > > > > > > > > I want to include on the page.
>> > > > > > > > >
>> > > > > > > > >
>> > > > > > > > > Kernow Girl wrote:
>> > > > > > > > >
>> > > > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab
>> > > > > > > > > > Query.
>> > The
>> > > > > > Help
>> > > > > > > > screen
>> > > > > > > > > > says this:
>> > > > > > > > > > You use crosstab queries to calculate and restructure
>> > > > > > > > > > data
>> > for
>> > > > > > easier
>> > > > > > > > > > analysis of your data. Crosstab queries calculate a
>> > > > > > > > > > sum,
>> > > > average,
>> > > > > > count,
>> > > > > > > > or
>> > > > > > > > > > other type of total for data that is grouped by two
>> > > > > > > > > > types of
>> > > > > > > > information -
>> > > > > > > > > > one down the left side of the datasheet and another
>> > > > > > > > > > across
>> > the
>> > > > top.
>> > > > > > > > > > HTH - Dika
>> > > > > > > > > >
>> > > > > > > > > >
>> > > > > > > > > > "Adam@nospam.com" wrote:
>> > > > > > > > > >
>> > > > > > > > > > > Hi All,
>> > > > > > > > > > >
>> > > > > > > > > > > I'm having to do a big database where I am reporting
>> > > > > > > > > > > on
>> > > > various
>> > > > > > > > > > > departments over yearly periods, where there
>> > > > > > > > > > > performance
>> > is
>> > > > split
>> > > > > > > > > > > monthly and measured in the output report.
>> > > > > > > > > > >
>> > > > > > > > > > > I have various fields, including a month field.
>> > > > > > > > > > >
>> > > > > > > > > > > What I would like is to have a report output whereby
>> > > > > > > > > > > the
>> > > > fields go
>> > > > > > > > down
>> > > > > > > > > > > the left, the months run across the top of the page
>> > > > > > > > > > > (jan
>> > to
>> > > > dec)
>> > > > > > and
>> > > > > > > > > > > the measures were then shown below that.
>> > > > > > > > > > >
>> > > > > > > > > > > I cannot see a way of doing this.
>> > > > > > > > > > >
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
>> > > > > > > > > > > Does anybody know how I could do this?
>> > > > > > > > > > >
>> > > > > > > > > > > Many Thanks
>> > > > > > > > > > >
>> > > > > > > > > > > Adam
>> > > > > > > > > > >
>> > > > > > > > > > >
>> > > > > > > > >
>> > > > > > >
>> > > > >
>> > >

>



Reply With Quote
  #15 (permalink)  
Old 28-Jul-2006, 08:19 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

Hi,

I'm trying this now however its saying "Query input must contain at
least one table or query".

This error message appears when I run the Union query and when I try
and make a crosstab query from that Union query.


BruceM wrote:
> If a field name contains a space, you must surround it with brackets.
>
> "Adam@nospam.com" wrote in message
> news:1150197613.498169.206770@g10g2000cwb.googlegr oups.com...
> > Sorry, I can see this now.
> >
> > I will try this shortly and let you know how it goes! If I have a space
> > inbetween my field names, I know its a sin, should I use the square
> > brackets around the field name?
> >
> >
> > Adam@nospam.com wrote:
> >> Thanks Doug, what will this do? I presume this is SQL code to be used
> >> in a query?
> >>
> >> Please forgive my newbness!
> >>
> >>
> >> Douglas J Steele wrote:
> >> > You can create a query that normalizes your data
> >> >
> >> > SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
> >> > ICPresented AS Measurement
> >> > UNION
> >> > SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate,
> >> > ICAnswered
> >> > AS Measurement
> >> > UNION
> >> > SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
> >> > Measurement
> >> > UNION
> >> > SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
> >> > Measurement
> >> >
> >> > then use the approach I suggested.
> >> >
> >> > BTW, Date is not a good choice for a field name in Access (nor, for
> >> > that
> >> > matter, for anything else). Date is a reserved word, and using it for
> >> > your
> >> > own purposes can lead to all sorts of problems. If you cannot (or will
> >> > not)
> >> > change the field name, at least use square brackets around it, as in my
> >> > example above.
> >> >
> >> > --
> >> > Doug Steele, Microsoft Access MVP
> >> > http://I.Am/DougSteele
> >> > (no e-mails, please!)
> >> >
> >> >
> >> > "Adam@nospam.com" wrote in message
> >> > news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
> >> > > Hi,
> >> > >
> >> > > No this is my fault, I haven't explained this very well at all.
> >> > >
> >> > > I have a table with data as below:
> >> > >
> >> > > Team ICPresented ICAnswered PCA20 PCA40 Date
> >> > > A 1235 1100 60% 70% Mar-06
> >> > > B 1446 1300 65% 72% Mar-06
> >> > > C 1289 1201 55% 61% Mar-06
> >> > > D 1564 1498 61% 70% Mar-06
> >> > > A 1531 1475 63% 68% Apr-06
> >> > > B 1101 1012 54% 61% Apr-06
> >> > > C 2101 1897 59% 64% Apr-06
> >> > > D 1905 1806 63% 71% Apr-06
> >> > >
> >> > > So I would like a report to then look like the below:
> >> > >
> >> > > Team A Mar-06 Apr-06
> >> > > ICPresented 1235 1531
> >> > > ICAnswered 1100 1475
> >> > > PCA20 60% 63%
> >> > > PCA40 70% 68%
> >> > >
> >> > > Team B
> >> > > ICPresented 1446 1101
> >> > > ICAnswered 1300 1012
> >> > > PCA20 65% 54%
> >> > > PCA40 72% 61%
> >> > >
> >> > > And so on etc...
> >> > >
> >> > > The months across the top would cover from Jan to Dec and there would
> >> > > be more categories going down on the left.
> >> > >
> >> > >
> >> > > Many Thanks for your continued help!
> >> > >
> >> > > Adam
> >> > >
> >> > >
> >> > >
> >> > > Douglas J Steele wrote:
> >> > >
> >> > > > Perhaps I don't understand your issue.
> >> > > >
> >> > > > Assuming you've got a table along the lines of:
> >> > > >
> >> > > > Category
> >> > > > MeaurementDate
> >> > > > Measurement
> >> > > >
> >> > > > you'd select Category as the Row heading (on the 2nd page of the
> >> > wizard),
> >> > > > MeasurementDate as the Column heading (on the 3rd page of the
> >> > > > wizard),
> >> > then
> >> > > > Measurement on the 4th page of the wizard. Since you've only got
> >> > > > one
> >> > value
> >> > > > to calculate, you can use Avg, First, Last, Max, Min or Sum as the
> >> > function.
> >> > > >
> >> > > >
> >> > > > --
> >> > > > Doug Steele, Microsoft Access MVP
> >> > > > http://I.Am/DougSteele
> >> > > > (no e-mails, please!)
> >> > > >
> >> > > >
> >> > > > "Adam@nospam.com" wrote in message
> >> > > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
> >> > > > > Thats what I need but how do i do more than 2 categories??
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > Douglas J Steele wrote:
> >> > > > >
> >> > > > > > What I understand is that you wanted months across the top, and
> >> > > > > > 20
> >> > > > different
> >> > > > > > categories along the left. At the intersection of each category
> >> > > > > > and
> >> > each
> >> > > > > > month, you want a value that will represent the measure for
> >> > > > > > that
> >> > > > category
> >> > > > > > for that month.
> >> > > > > >
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> >> > > > > > That's a cross-tab query...
> >> > > > > >
> >> > > > > > --
> >> > > > > > Doug Steele, Microsoft Access MVP
> >> > > > > > http://I.Am/DougSteele
> >> > > > > > (no e-mails, please!)
> >> > > > > >
> >> > > > > >
> >> > > > > > "Adam@nospam.com" wrote in message
> >> > > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
> >> > > > > > > Hi Doug,
> >> > > > > > >
> >> > > > > > > Well there's around 20 fields that I'd like to line up on the
> >> > left,
> >> > > > > > > however a crosstab query, as far as I know, only lets you
> >> > > > > > > look at
> >> > a
> >> > > > > > > maximum of 2.
> >> > > > > > >
> >> > > > > > >
> >> > > > > > >
> >> > > > > > > Douglas J Steele wrote:
> >> > > > > > >
> >> > > > > > > > Based on your original post, it certainly sounds as though
> >> > > > > > > > a
> >> > > > cross-tab
> >> > > > > > query
> >> > > > > > > > should fit the bill.
> >> > > > > > > >
> >> > > > > > > > What did you leave out of that original post?
> >> > > > > > > >
> >> > > > > > > > --
> >> > > > > > > > Doug Steele, Microsoft Access MVP
> >> > > > > > > > http://I.Am/DougSteele
> >> > > > > > > > (no e-mails, please!)
> >> > > > > > > >
> >> > > > > > > >
> >> > > > > > > > "Adam@nospam.com" wrote in message
> >> > > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
> >> > > > > > > > > The crosstab wouldn't be sufficient though, as I have
> >> > > > > > > > > around
> >> > 20
> >> > > > fields
> >> > > > > > > > > I want to include on the page.
> >> > > > > > > > >
> >> > > > > > > > >
> >> > > > > > > > > Kernow Girl wrote:
> >> > > > > > > > >
> >> > > > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab
> >> > > > > > > > > > Query.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> >> > The
> >> > > > > > Help
> >> > > > > > > > screen
> >> > > > > > > > > > says this:
> >> > > > > > > > > > You use crosstab queries to calculate and restructure
> >> > > > > > > > > > data
> >> > for
> >> > > > > > easier
> >> > > > > > > > > > analysis of your data. Crosstab queries calculate a
> >> > > > > > > > > > sum,
> >> > > > average,
> >> > > > > > count,
> >> > > > > > > > or
> >> > > > > > > > > > other type of total for data that is grouped by two
> >> > > > > > > > > > types of
> >> > > > > > > > information -
> >> > > > > > > > > > one down the left side of the datasheet and another
> >> > > > > > > > > > across
> >> > the
> >> > > > top.
> >> > > > > > > > > > HTH - Dika
> >> > > > > > > > > >
> >> > > > > > > > > >
> >> > > > > > > > > > "Adam@nospam.com" wrote:
> >> > > > > > > > > >
> >> > > > > > > > > > > Hi All,
> >> > > > > > > > > > >
> >> > > > > > > > > > > I'm having to do a big database where I am reporting
> >> > > > > > > > > > > on
> >> > > > various
> >> > > > > > > > > > > departments over yearly periods, where there
> >> > > > > > > > > > > performance
> >> > is
> >> > > > split
> >> > > > > > > > > > > monthly and measured in the output report.
> >> > > > > > > > > > >
> >> > > > > > > > > > > I have various fields, including a month field.
> >> > > > > > > > > > >
> >> > > > > > > > > > > What I would like is to have a report output whereby
> >> > > > > > > > > > > the
> >> > > > fields go
> >> > > > > > > > down
> >> > > > > > > > > > > the left, the months run across the top of the page
> >> > > > > > > > > > > (jan
> >> > to
> >> > > > dec)
> >> > > > > > and
> >> > > > > > > > > > > the measures were then shown below that.
> >> > > > > > > > > > >
> >> > > > > > > > > > > I cannot see a way of doing this.
> >> > > > > > > > > > >
> >> > > > > > > > > > > Does anybody know how I could do this?
> >> > > > > > > > > > >
> >> > > > > > > > > > > Many Thanks
> >> > > > > > > > > > >
> >> > > > > > > > > > > Adam
> >> > > > > > > > > > >
> >> > > > > > > > > > >
> >> > > > > > > > >
> >> > > > > > >
> >> > > > >
> >> > >

> >


Reply With Quote
  #16 (permalink)  
Old 28-Jul-2006, 08:19 AM
BruceM's Avatar BruceM
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

I have been following this thread, but only jumped in when I knew I had a
quick answer to a specific question. I thought it might save some time. I
will wait for Douglas to respond to the question about the query, as I am
not that familiar with union queries.

"Adam@nospam.com" wrote in message
news:1150200986.990550.301690@y43g2000cwc.googlegr oups.com...
> Hi,
>
> I'm trying this now however its saying "Query input must contain at
> least one table or query".
>
> This error message appears when I run the Union query and when I try
> and make a crosstab query from that Union query.
>
>
> BruceM wrote:
>> If a field name contains a space, you must surround it with brackets.
>>
>> "Adam@nospam.com" wrote in message
>> news:1150197613.498169.206770@g10g2000cwb.googlegr oups.com...
>> > Sorry, I can see this now.
>> >
>> > I will try this shortly and let you know how it goes! If I have a space
>> > inbetween my field names, I know its a sin, should I use the square
>> > brackets around the field name?
>> >
>> >
>> > Adam@nospam.com wrote:
>> >> Thanks Doug, what will this do? I presume this is SQL code to be used
>> >> in a query?
>> >>
>> >> Please forgive my newbness!
>> >>
>> >>
>> >> Douglas J Steele wrote:
>> >> > You can create a query that normalizes your data
>> >> >
>> >> > SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
>> >> > ICPresented AS Measurement
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
>> >> > UNION
>> >> > SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate,
>> >> > ICAnswered
>> >> > AS Measurement
>> >> > UNION
>> >> > SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20
>> >> > AS
>> >> > Measurement
>> >> > UNION
>> >> > SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40
>> >> > AS
>> >> > Measurement
>> >> >
>> >> > then use the approach I suggested.
>> >> >
>> >> > BTW, Date is not a good choice for a field name in Access (nor, for
>> >> > that
>> >> > matter, for anything else). Date is a reserved word, and using it
>> >> > for
>> >> > your
>> >> > own purposes can lead to all sorts of problems. If you cannot (or
>> >> > will
>> >> > not)
>> >> > change the field name, at least use square brackets around it, as in
>> >> > my
>> >> > example above.
>> >> >
>> >> > --
>> >> > Doug Steele, Microsoft Access MVP
>> >> > http://I.Am/DougSteele
>> >> > (no e-mails, please!)
>> >> >
>> >> >
>> >> > "Adam@nospam.com" wrote in message
>> >> > news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
>> >> > > Hi,
>> >> > >
>> >> > > No this is my fault, I haven't explained this very well at all.
>> >> > >
>> >> > > I have a table with data as below:
>> >> > >
>> >> > > Team ICPresented ICAnswered PCA20 PCA40 Date
>> >> > > A 1235 1100 60% 70% Mar-06
>> >> > > B 1446 1300 65% 72% Mar-06
>> >> > > C 1289 1201 55% 61% Mar-06
>> >> > > D 1564 1498 61% 70% Mar-06
>> >> > > A 1531 1475 63% 68% Apr-06
>> >> > > B 1101 1012 54% 61% Apr-06
>> >> > > C 2101 1897 59% 64% Apr-06
>> >> > > D 1905 1806 63% 71% Apr-06
>> >> > >
>> >> > > So I would like a report to then look like the below:
>> >> > >
>> >> > > Team A Mar-06 Apr-06
>> >> > > ICPresented 1235 1531
>> >> > > ICAnswered 1100 1475
>> >> > > PCA20 60% 63%
>> >> > > PCA40 70% 68%
>> >> > >
>> >> > > Team B
>> >> > > ICPresented 1446 1101
>> >> > > ICAnswered 1300 1012
>> >> > > PCA20 65% 54%
>> >> > > PCA40 72% 61%
>> >> > >
>> >> > > And so on etc...
>> >> > >
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
>> >> > > The months across the top would cover from Jan to Dec and there
>> >> > > would
>> >> > > be more categories going down on the left.
>> >> > >
>> >> > >
>> >> > > Many Thanks for your continued help!
>> >> > >
>> >> > > Adam
>> >> > >
>> >> > >
>> >> > >
>> >> > > Douglas J Steele wrote:
>> >> > >
>> >> > > > Perhaps I don't understand your issue.
>> >> > > >
>> >> > > > Assuming you've got a table along the lines of:
>> >> > > >
>> >> > > > Category
>> >> > > > MeaurementDate
>> >> > > > Measurement
>> >> > > >
>> >> > > > you'd select Category as the Row heading (on the 2nd page of the
>> >> > wizard),
>> >> > > > MeasurementDate as the Column heading (on the 3rd page of the
>> >> > > > wizard),
>> >> > then
>> >> > > > Measurement on the 4th page of the wizard. Since you've only got
>> >> > > > one
>> >> > value
>> >> > > > to calculate, you can use Avg, First, Last, Max, Min or Sum as
>> >> > > > the
>> >> > function.
>> >> > > >
>> >> > > >
>> >> > > > --
>> >> > > > Doug Steele, Microsoft Access MVP
>> >> > > > http://I.Am/DougSteele
>> >> > > > (no e-mails, please!)
>> >> > > >
>> >> > > >
>> >> > > > "Adam@nospam.com" wrote in message
>> >> > > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
>> >> > > > > Thats what I need but how do i do more than 2 categories??
>> >> > > > >
>> >> > > > >
>> >> > > > >
>> >> > > > > Douglas J Steele wrote:
>> >> > > > >
>> >> > > > > > What I understand is that you wanted months across the top,
>> >> > > > > > and
>> >> > > > > > 20
>> >> > > > different
>> >> > > > > > categories along the left. At the intersection of each
>> >> > > > > > category
>> >> > > > > > and
>> >> > each
>> >> > > > > > month, you want a value that will represent the measure for
>> >> > > > > > that
>> >> > > > category
>> >> > > > > > for that month.
>> >> > > > > >
>> >> > > > > > That's a cross-tab query...
>> >> > > > > >
>> >> > > > > > --
>> >> > > > > > Doug Steele, Microsoft Access MVP
>> >> > > > > > http://I.Am/DougSteele
>> >> > > > > > (no e-mails, please!)
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > "Adam@nospam.com" wrote in message
>> >> > > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
>> >> > > > > > > Hi Doug,
>> >> > > > > > >
>> >> > > > > > > Well there's around 20 fields that I'd like to line up on
>> >> > > > > > > the
>> >> > left,
>> >> > > > > > > however a crosstab query, as far as I know, only lets you
>> >> > > > > > > look at
>> >> > a
>> >> > > > > > > maximum of 2.
>> >> > > > > > >
>> >> > > > > > >
>> >> > > > > > >
>> >> > > > > > > Douglas J Steele wrote:
>> >> > > > > > >
>> >> > > > > > > > Based on your original post, it certainly sounds as
>> >> > > > > > > > though
>> >> > > > > > > > a
>> >> > > > cross-tab
>> >> > > > > > query
>> >> > > > > > > > should fit the bill.
>> >> > > > > > > >
>> >> > > > > > > > What did you leave out of that original post?
>> >> > > > > > > >
>> >> > > > > > > > --
>> >> > > > > > > > Doug Steele, Microsoft Access MVP
>> >> > > > > > > > http://I.Am/DougSteele
>> >> > > > > > > > (no e-mails, please!)
>> >> > > > > > > >
>> >> > > > > > > >
>> >> > > > > > > > "Adam@nospam.com" wrote in
>> >> > > > > > > > message
>> >> > > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
>> >> > > > > > > > > The crosstab wouldn't be sufficient though, as I have
>> >> > > > > > > > > around
>> >> > 20
>> >> > > > fields
>> >> > > > > > > > > I want to include on the page.
>> >> > > > > > > > >
>> >> > > > > > > > >
>> >> > > > > > > > > Kernow Girl wrote:
>> >> > > > > > > > >
>> >> > > > > > > > > > Hi Adam - it sounds like what you want is a
>> >> > > > > > > > > > Cross-Tab
>> >> > > > > > > > > > Query.
>> >> > The
>> >> > > > > > Help
>> >> > > > > > > > screen
>> >> > > > > > > > > > says this:
>> >> > > > > > > > > > You use crosstab queries to calculate and
>> >> > > > > > > > > > restructure
>> >> > > > > > > > > > data
>> >> > for
>> >> > > > > > easier
>> >> > > > > > > > > > analysis of your data. Crosstab queries calculate a
>> >> > > > > > > > > > sum,
>> >> > > > average,
>> >> > > > > > count,
>> >> > > > > > > > or
>> >> > > > > > > > > > other type of total for data that is grouped by two
>> >> > > > > > > > > > types of
>> >> > > > > > > > information -
>> >> > > > > > > > > > one down the left side of the datasheet and another
>> >> > > > > > > > > > across
>> >> > the
>> >> > > > top.
>> >> > > > > > > > > > HTH - Dika
>> >> > > > > > > > > >
>> >> > > > > > > > > >
>> >> > > > > > > > > > "Adam@nospam.com" wrote:
>> >> > > > > > > > > >
>> >> > > > > > > > > > > Hi All,
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > I'm having to do a big database where I am
>> >> > > > > > > > > > > reporting
>> >> > > > > > > > > > > on
>> >> > > > various
>> >> > > > > > > > > > > departments over yearly periods, where there
>> >> > > > > > > > > > > performance
>> >> > is
>> >> > > > split
>> >> > > > > > > > > > > monthly and measured in the output report.
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > I have various fields, including a month field.
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > What I would like is to have a report output
>> >> > > > > > > > > > > whereby
>> >> > > > > > > > > > > the
>> >> > > > fields go
>> >> > > > > > > > down
>> >> > > > > > > > > > > the left, the months run across the top of the
>> >> > > > > > > > > > > page
>> >> > > > > > > > > > > (jan
>> >> > to
>> >> > > > dec)
>> >> > > > > > and
>> >> > > > > > > > > > > the measures were then shown below that.
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > I cannot see a way of doing this.
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > Does anybody know how I could do this?
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > Many Thanks
>> >> > > > > > > > > > >
>> >> > > > > > > > > > > Adam
>> >> > > > > > > > > > >
>> >> > > > > > > > > > >
>> >> > > > > > > > >
>> >> > > > > > >
>> >> > > > >
>> >> > >
>> >

>



Reply With Quote
  #17 (permalink)  
Old 28-Jul-2006, 08:20 AM
Adam@nospam.com's Avatar Adam@nospam.com
Guest
 
Posts: n/a
   
   
Re: Report left to right not top to bottom

  Donate Today!  
Oh my words... I got this working.

It looks awesome! You are a legend my friend!


Douglas J Steele wrote:
> You can create a query that normalizes your data
>
> SELECT Team, "ICPresented" AS Category, [Date] AS MeasurementDate,
> ICPresented AS Measurement
> UNION
> SELECT Team, "ICAnswered" AS Category, [Date] AS MeasurementDate, ICAnswered
> AS Measurement
> UNION
> SELECT Team, "PCA20" AS Category, [Date] AS MeasurementDate, PCA20 AS
> Measurement
> UNION
> SELECT Team, "PCA40" AS Category, [Date] AS MeasurementDate, PCA40 AS
> Measurement
>
> then use the approach I suggested.
>
> BTW, Date is not a good choice for a field name in Access (nor, for that
> matter, for anything else). Date is a reserved word, and using it for your
> own purposes can lead to all sorts of problems. If you cannot (or will not)
> change the field name, at least use square brackets around it, as in my
> example above.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Adam@nospam.com" wrote in message
> news:1150188239.936005.196300@u72g2000cwu.googlegr oups.com...
> > Hi,
> >
> > No this is my fault, I haven't explained this very well at all.
> >
> > I have a table with data as below:
> >
> > Team ICPresented ICAnswered PCA20 PCA40 Date
> > A 1235 1100 60% 70% Mar-06
> > B 1446 1300 65% 72% Mar-06
> > C 1289 1201 55% 61% Mar-06
> > D 1564 1498 61% 70% Mar-06
> > A 1531 1475 63% 68% Apr-06
> > B 1101 1012 54% 61% Apr-06
> > C 2101 1897 59% 64% Apr-06
> > D 1905 1806 63% 71% Apr-06
> >
> > So I would like a report to then look like the below:
> >
> > Team A Mar-06 Apr-06
> > ICPresented 1235 1531
> > ICAnswered 1100 1475
> > PCA20 60% 63%
> > PCA40 70% 68%
> >
> > Team B
> > ICPresented 1446 1101
> > ICAnswered 1300 1012
> > PCA20 65% 54%
> > PCA40 72% 61%
> >
> > And so on etc...
> >
> > The months across the top would cover from Jan to Dec and there would
> > be more categories going down on the left.
> >
> >
> > Many Thanks for your continued help!
> >
> > Adam
> >
> >
> >
> > Douglas J Steele wrote:
> >
> > > Perhaps I don't understand your issue.
> > >
> > > Assuming you've got a table along the lines of:
> > >
> > > Category
> > > MeaurementDate
> > > Measurement
> > >
> > > you'd select Category as the Row heading (on the 2nd page of the

> wizard),
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> > > MeasurementDate as the Column heading (on the 3rd page of the wizard),

> then
> > > Measurement on the 4th page of the wizard. Since you've only got one

> value
> > > to calculate, you can use Avg, First, Last, Max, Min or Sum as the

> function.
> > >
> > >
> > > --
> > > Doug Steele, Microsoft Access MVP
> > > http://I.Am/DougSteele
> > > (no e-mails, please!)
> > >
> > >
> > > "Adam@nospam.com" wrote in message
> > > news:1150120880.150823.269720@h76g2000cwa.googlegr oups.com...
> > > > Thats what I need but how do i do more than 2 categories??
> > > >
> > > >
> > > >
> > > > Douglas J Steele wrote:
> > > >
> > > > > What I understand is that you wanted months across the top, and 20
> > > different
> > > > > categories along the left. At the intersection of each category and

> each
> > > > > month, you want a value that will represent the measure for that
> > > category
> > > > > for that month.
> > > > >
> > > > > That's a cross-tab query...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11242
> > > > >
> > > > > --
> > > > > Doug Steele, Microsoft Access MVP
> > > > > http://I.Am/DougSteele
> > > > > (no e-mails, please!)
> > > > >
> > > > >
> > > > > "Adam@nospam.com" wrote in message
> > > > > news:1150118416.326584.230600@j55g2000cwa.googlegr oups.com...
> > > > > > Hi Doug,
> > > > > >
> > > > > > Well there's around 20 fields that I'd like to line up on the

> left,
> > > > > > however a crosstab query, as far as I know, only lets you look at

> a
> > > > > > maximum of 2.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Douglas J Steele wrote:
> > > > > >
> > > > > > > Based on your original post, it certainly sounds as though a
> > > cross-tab
> > > > > query
> > > > > > > should fit the bill.
> > > > > > >
> > > > > > > What did you leave out of that original post?
> > > > > > >
> > > > > > > --
> > > > > > > Doug Steele, Microsoft Access MVP
> > > > > > > http://I.Am/DougSteele
> > > > > > > (no e-mails, please!)
> > > > > > >
> > > > > > >
> > > > > > > "Adam@nospam.com" wrote in message
> > > > > > > news:1150116370.199385.39530@j55g2000cwa.googlegro ups.com...
> > > > > > > > The crosstab wouldn't be sufficient though, as I have around

> 20
> > > fields
> > > > > > > > I want to include on the page.
> > > > > > > >
> > > > > > > >
> > > > > > > > Kernow Girl wrote:
> > > > > > > >
> > > > > > > > > Hi Adam - it sounds like what you want is a Cross-Tab Query.

> The
> > > > > Help
> > > > > > > screen
> > > > > > > > > says this:
> > > > > > > > > You use crosstab queries to calculate and restructure data

> for
> > > > > easier
> > > > > > > > > analysis of your data. Crosstab queries calculate a sum,
> > > average,
> > > > > count,
> > > > > > > or
> > > > > > > > > other type of total for data that is grouped by two types of
> > > > > > > information -
> > > > > > > > > one down the left side of the datasheet and another across

> the
> > > top.
> > > > > > > > > HTH - Dika
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > "Adam@nospam.com" wrote:
> > > > > > > > >
> > > > > > > > > > Hi All,
> > > > > > > > > >
> > > > > > > > > > I'm having to do a big database where I am reporting on
> > > various
> > > > > > > > > > departments over yearly periods, where there performance

> is
> > > split
> > > > > > > > > > monthly and measured in the output report.
> > > > > > > > > >
> > > > > > > > > > I have various fields, including a month field.
> > > > > > > > > >
> > > > > > > > > > What I would like is to have a report output whereby the
> > > fields go
> > > > > > > down
> > > > > > > > > > the left, the months run across the top of the page (jan

> to
> > > dec)
> > > > > and
> > > > > > > > > > the measures were then shown below that.
> > > > > > > > > >
> > > > > > > > > > I cannot see a way of doing this.
> > > > > > > > > >
> > > > > > > > > > Does anybody know how I could do this?
> > > > > > > > > >
> > > > > > > > > > Many Thanks
> > > > > > > > > >
> > > > > > > > > > Adam
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > >

> >


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Recent Discussions
sikhism Benti Chaupai - Keertan...
Today 14:06 PM
18 Replies, 283 Views
sikhism Undercover Mosque
Today 13:14 PM
1 Replies, 57 Views
sikhism Eighteen Super-Natural...
Today 13:11 PM
31 Replies, 3,474 Views
sikhism Mysticism In Religion:...
Today 12:57 PM
3 Replies, 1,002 Views
sikhism What Prayer Does to Your...
Today 12:21 PM
3 Replies, 281 Views
sikhism Four Steps To God
Today 12:11 PM
2 Replies, 236 Views
sikhism Fools Who Wrangle Over...
Today 11:46 AM
917 Replies, 77,948 Views
sikhism Incidental Happiness...
Today 10:24 AM
1 Replies, 80 Views
sikhism Meditate - How, What,...
Today 08:30 AM
41 Replies, 1,193 Views
sikhism Are Nihangs: A Legacy...
Today 08:12 AM
15 Replies, 271 Views
sikhism Sukhmani Sahib Astpadi 8...
Today 06:38 AM
0 Replies, 28 Views
sikhism Is Hindu/Sikh a Valid...
Today 02:20 AM
82 Replies, 1,483 Views
sikhism Amazing truth!
Yesterday 22:20 PM
0 Replies, 74 Views
sikhism Black money: Indians...
Yesterday 21:40 PM
1 Replies, 62 Views
sikhism Sikh temple brawl a...
Yesterday 20:33 PM
0 Replies, 70 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 14:25 PM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 1.73662 seconds with 30 queries