Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Pivoted reports


Pivoted reports

Author
Message
GrassHopper
GrassHopper
SSC-Enthusiastic
SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)

Group: General Forum Members
Points: 193 Visits: 534
I want my report to be pivoted.

my data

product - amt - month - Year
abc - 9.99 - 7 - 2013
abc - 39.99 - 7 - 2013
abc - 19.99 - 7 - 2013
abc - 5.99 - 8 - 2013
abc - 9.99 - 8 - 2013
abc - 29.99 - 8 - 2013
zzz - 7.99 - 7 - 2013
zzz - 19.99 - 7 - 2013
zzz - 9.99 - 7 - 2013
zzz - 13.99 - 8 - 2013
zzz - 17.99 - 8 - 2013
zzz - 59.99 - 8 - 2013


results I want in my report is this:

product - sumamt - month - Year - sumamt - month - year
abc - 70.00 - 7 - 2013 - 46.00 - 8 - 2013
zzz - 38.00 - 7 - 2013 - 92.00 - 8 - 2013



WendellB
WendellB
SSC Veteran
SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)

Group: General Forum Members
Points: 251 Visits: 1634
An Access crosstab query will do some of what you are after, but it won't produce the format you are after as it only allows one column header. The pivot tools in Access are generally inferior to what you can do in Excel, so my suggestion would be to produce your report in Excel rather than Access. It's also important to know your version of Access as the tools vary depending on the version - some features have been removed in 2013 for example.

Wendell
Colorful Colorado
You can't see the view if you don't climb the mountain!
GrassHopper
GrassHopper
SSC-Enthusiastic
SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)SSC-Enthusiastic (193 reputation)

Group: General Forum Members
Points: 193 Visits: 534
my version is 2010



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search