Comparing quarters annually

F

fcmedina78

I am trying to compare different years results for stores by quarter. I tried
using two queries and then creating a report using both queries but it won't
group by store. Anyone have any ideas
 
K

KARL DEWEY

Try this using your table and field names --
SELECT Format([SaleDate],"q") AS Quarter, Format([SaleDate],"yyyy") AS
[Year], [Sales-1].Store_ID, Sum([Sales-1].Amount) AS SumOfAmount
FROM [Sales-1]
GROUP BY Format([SaleDate],"q"), Format([SaleDate],"yyyy"),
[Sales-1].Store_ID;
 

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