I feel your pain. I have been going through the same thing. Grouping by month in an Access Report is very easy, and I have tried to do the same thing with Report Builder and have had no luck. It seems like it should be such an easy thing to do and that there should be some experienced Report Builder users out there who can do this.
I'm not ready to give up yet, so if you or anyone else out there has found the answer I would be happy to hear about it.
Here is some SQL ( MS SQL ) that will return the count of invoices by month
select
datename( m, sb_invoice_date),
count(sb_invoice_date)
from
sb_invoice
where
sb_invoice_date > getdate() - 365
group by
year( sb_invoice_date),
month( sb_invoice_date),
datename( m, sb_invoice_date)
order by
year( sb_invoice_date),
month( sb_invoice_date)
change according to your needs\database environment
eg:
February 23942
March 28009
April 26122
May 27207
June 31282
July 28805
August 27697
September 28117
October 25483
November 28136
December 24410
January 21013
February 1984
Thank you, thank you, THANK YOU, so much! So simple, but I couldn't figure
it out. I can't tell you how much it means to me that I finally have a
solution to this problem.
May all the blessings of the world shower down upon you.
Malinda
www.Malinda-Bruce.com
305 964 0611 H
305 772 3687 C
MalindaBruce.Photoshop.com
I think it is a matter of what software you are accustomed to using. I do
use sql server express 2008 for database and I also use mysql. I bought
ColdFusion and it came with ColdFusion Report builder, so that is what I am
using to create reports. I use ColdFusion to communicate with the databases
with Flex 3 as my front end.
Thank you again for your help.
Malinda
www.Malinda-Bruce.com
305 964 0611 H
305 772 3687 C
MalindaBruce.Photoshop.com
Hi.Hope this would solve your problem.I am explaining with the help of an example.Suppose we have a Sales table having SalesId, ContactId and SalesTotal. If we need a summary report, which will display total SalesTotal group by its ContactId. This can be done using a simple query:
SELECT IFNULL(`ContactId` , "GRAND TOTAL") AS 'CONTACT ID', SUM(`SalesTotal`) AS `TOTAL` FROM Sales GROUP BY `ContactId` WITH ROLLUP | ||||||||||
Output:
You can't use the ORDER BY clause with the WITH ROLLUP. They are mutually exclusive. Thanks |
North America
Europe, Middle East and Africa
Asia Pacific