473,387 Members | 1,798 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.

Crosstab Summary for Month & Year

I am trying to create a report that will give me q total count by
month to date, and then another by year to date. Example:

Discharges By Type Month To Date Year To Date
Voluntary Quit 8 18
Involuntary Quit 2 11
Successful Completion 28 37

The "to date" value is supplied by the user at runtime. I know how to
do each type in seperate subreports that sit side by side, but they
would be autonomous. When one report had a value that the other did
not (for example, if there were no Voluntary Quits in a month, but
there were some for the year), the report rows wouldn't line up. Does
anyone know of a way I could get BOTH values in a single corsstab?

Any direction would be appreciated.

Catherine
Nov 13 '05 #1
2 2497
Ca***************@yahoo.com (Catherine) wrote in
news:7e*************************@posting.google.co m:
I am trying to create a report that will give me q total count
by month to date, and then another by year to date. Example:

Discharges By Type Month To Date Year To Date
Voluntary Quit 8 18
Involuntary Quit 2 11
Successful Completion 28 37

The "to date" value is supplied by the user at runtime. I
know how to do each type in seperate subreports that sit side
by side, but they would be autonomous. When one report had a
value that the other did not (for example, if there were no
Voluntary Quits in a month, but there were some for the year),
the report rows wouldn't line up. Does anyone know of a way I
could get BOTH values in a single corsstab?

Any direction would be appreciated.

Catherine


I wouldn't consider using a crosstab. I'd just build two summary
queries, one returning the dischargetypes and yeartodate counts,
and the second for the monthly counts, then create a third query
that left joins the one with more categories to the one with
less, since the month is a subset of the year.

If you have a situation where you have holes in both queries,
create a union of all the categories and left join to each count
query.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #2
Do a Right Join (or Left Join, depending on what order to reference the
queries) between the two queries. Obviously YTD will include everything MTD
does plus, probably, more, so you want the option that includes ALL records
from YTD and only those records from MTD where the joined fields are equal.

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

"Catherine" <Ca***************@yahoo.com> wrote in message
news:7e*************************@posting.google.co m...
I am trying to create a report that will give me q total count by
month to date, and then another by year to date. Example:

Discharges By Type Month To Date Year To Date
Voluntary Quit 8 18
Involuntary Quit 2 11
Successful Completion 28 37

The "to date" value is supplied by the user at runtime. I know how to
do each type in seperate subreports that sit side by side, but they
would be autonomous. When one report had a value that the other did
not (for example, if there were no Voluntary Quits in a month, but
there were some for the year), the report rows wouldn't line up. Does
anyone know of a way I could get BOTH values in a single corsstab?

Any direction would be appreciated.

Catherine

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Luis | last post by:
Hi, I am trying to create a stored procedures (SQL 7.0), to provide data in a crosstab format. (I'm using Crystal Reports 8.5, but the Crosstab capabilities are terrible, so I have to do as...
2
by: Helpdesk Man | last post by:
Hello SQL and Crystal Reports friends, I am trying to make a report and need some help please. It is a helpdesk database. Jobs are logged, and then closed. Each of these events is...
3
by: Paula | last post by:
I need to do a summary using a crosstab query. The data has a Date field (Not named "Date"). I can do the Row Heading and Value but am having trouble with the Column Heading. The summary Columns...
3
by: KevLow | last post by:
Hi, Hope some kind soul can help me out here.. I'm trying to programmatically modify the column headings of a crosstab query such that it can be dynamic based on user specified period (Month...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
5
by: bruce24444 | last post by:
What I have is a database which tracks assigned files to a certain people which is generated by a form and then recorded into a table. Table are as follows “Staff” “Loss_Type” and...
1
by: bruce24444 | last post by:
First of all I'm new to the forum and am working on my first database. So far I think I've done not too bad but have hit a stumbling block for which I'm not sure how to get around. What I have is...
4
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.