How can I have a rotating count of the last 6 months?
Additionally I would like to have the columns Calendar sequenced by Month Year.
This is my Crosstab table:
TRANSFORM Count([Inq_ID])-1 AS [Count]
SELECT Inquires.Section
FROM Inquires
WHERE (((Inquires.Section)<>"0") AND ((Inquires.[Date Sent]) Between DateSerial(Year(Date()),Month(Date())-5,1) And DateSerial(Year(Date()),Month(Date())+1,0)
GROUP BY Inquires.Section
ORDER BY Inquires.Section DESC
PIVOT Format([Date Sent],"mmm yyyy");
This is my output: (Each Column is "mmm yyyy")
"Aug 2014" "Jul 2014" "Jun 2014" "Nov 2014" "Oct 2014" "Sep 2014"
Thanks