Data for 12 Months by Person

MarieD

Registered User.
Local time
Today, 02:58
Joined
Dec 9, 2009
Messages
53
How would I get 12 months of data laid out like this in a report? I can design the report, but how do I get the individual data from a query? Would I have to make 12 queries for each month? Then how do I get that information into one report?

...........Jan Feb Mar Apr
Name 1 276 260 270 280
Name 2 170 180 145 130
Name 3 300 325 285 290
 
The crosstab query gives me the layout I need. How do I get the criteria to bring in the count each month individually? I've tried entering the ([Confirmed Date])=Year(Date()) but that is not working. Is there a formular that will recognize the month I am in (when running the query) and put that count under the correct month for each physician?
 
I've been working with this crosstab query and the data is exactly correct as the corsstab stands originally. My table has several years of data. How can I just pull out the months of year 2012?
 
Thanks to everyone who was looking at this with me....I figured it out. I created a separate query for just year 2012 and then crosstabed that query. January is showing up now, so if in March, February will show up...I will be in business.:)
 
Your Column Header field will be Format([Confirmed Date], "mmm")
 
Thanks to everyone who was looking at this with me....I figured it out. I created a separate query for just year 2012 and then crosstabed that query. January is showing up now, so if in March, February will show up...I will be in business.:)
I didn't see this post before I responded. You could have put 2012 as criteria in the Year([Confirmed Date]).
 
Putting Like "*2012*" in the Confirmed Date will not bring back every date listed. If there are two procedures dated 1/25/2012 for a physician and a particular patient, only one procedure is returned, making the count incorrect. Anyway to correct that in a query?
 
Have a read of my last post again. Note that Year() returns only the year portion of a date.
 
Yes, but I need all of the procedures for 2012, even if the dates are the same for the same physician and patient. The Cross Tab is ignoring these, but I need all of them to be counted as well. How can I make the Cross Tab recognize every procedure listed in the query? Example, in the select query, Dr. Smith has a procedure count of 279, but the cross tab query is bring back a count of 264. Checking on why... the cross tab is not counting Dr. Smith, Patient Dooley, Procedure ECG, 1/25/2012 and Dr. Smith, Patient Dooley, Procedure Echo, 1/25/2012. It is bringing back a count of 1 instead of 2.
 
Do you have any other criteria apart from the Year part?
 
No criteria in the cross tab query. 2012 is in the criteria in the Year ([Confirmed date]) column that the cross tab is pulling data from.
 
Is your crosstab query based on another query? If it is, does that query have any criteria? If the answer is No, upload a sample db and we'll take a look.
 

Users who are viewing this thread

Back
Top Bottom