Sumarize data by quarter between dates

C

caligirl061477

I am trying to total data between two dates and then plot on a chart. Right
now I have a query as follows:
Start Date / Term Date / Total Sq Ft by North / Total Sq Ft by South
1/1/00 10/31/00 5000 1000
3/1/00 10/31/00 1000 1000

What I need is
Qtr / Total Sq Ft by North / Total Sq Ft by South
1QTR 2000 / 5000 / 1000
2QTR 2000 / 6000 / 2000
4QTR 2000 / 0 / 0
 
K

KARL DEWEY

Use a totals query with date formated on QTR.
SELECT Format([Start Date], "yyyyq") AS YearQTR, Format([Start Date], "q" &
"QTR " & "yyyy") AS QTR_Year, Sum([Total Sq Ft by North]) AS QTR_North,
Sum([Total Sq Ft by South]) AS QTR_South
FROM Your Table
GROUP BY Format([Start Date], "yyyyq");
 
C

caligirl061477

I need to be more specific. I'm confusing myself by trying to use an example
of what I am trying to do. I will use a new post to explain the help I need.
Thank you!!

KARL DEWEY said:
Use a totals query with date formated on QTR.
SELECT Format([Start Date], "yyyyq") AS YearQTR, Format([Start Date], "q" &
"QTR " & "yyyy") AS QTR_Year, Sum([Total Sq Ft by North]) AS QTR_North,
Sum([Total Sq Ft by South]) AS QTR_South
FROM Your Table
GROUP BY Format([Start Date], "yyyyq");
--
KARL DEWEY
Build a little - Test a little


caligirl061477 said:
I am trying to total data between two dates and then plot on a chart. Right
now I have a query as follows:
Start Date / Term Date / Total Sq Ft by North / Total Sq Ft by South
1/1/00 10/31/00 5000 1000
3/1/00 10/31/00 1000 1000

What I need is
Qtr / Total Sq Ft by North / Total Sq Ft by South
1QTR 2000 / 5000 / 1000
2QTR 2000 / 6000 / 2000
4QTR 2000 / 0 / 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top