Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
AggQ Help with Dates
Stephanie Paul 
     
3 years ago
Hi, I'm having trouble grouping my total spent transaction into monthly totals.  I have taken Expert 11 and a few other query courses, but for some reason my transactions are adding up, but I can seem to groups them into totals by month. I've tried changing the date format to YYY-MM and I've tried separate queries, but I'm not getting anywhere.  Any help would be appreciated.
Stephanie Paul OP  @Reply  
     
3 years ago

Stephanie Paul OP  @Reply  
     
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
Save this query as a normal Select query then use that query to create your aggregate query.
Stephanie Paul OP  @Reply  
     
3 years ago

Stephanie Paul OP  @Reply  
     
3 years ago

Stephanie Paul OP  @Reply  
     
3 years ago
Still getting the same output Kevin.  I suspect it's something simple, just can't seem to figure it out.
Stephanie Paul OP  @Reply  
     
3 years ago
I need them to be grouped by SBU and also the month; do you think that's what the problem is?  I tried a query without SBUs and just then totals and months and it's still separates the orders.
Stephanie Paul OP  @Reply  
     
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
How is ActDate formatted? The day may be forcing them to be ungrouped.
Stephanie Paul OP  @Reply  
     
3 years ago
I even made the table format YYYY-MM thinking maybe that's why it wasn't working. Maybe I'll go back to the regular format date on the table and try the two query method again, maybe that'll work
Kevin Yip  @Reply  
     
3 years ago
YYYY-MM is just format, not what it really is.  If you format the date 10/28/23 to look like 2023-10, it still has the value of 10/28/23, and that's why your query doesn't work.  To sum by year-month in the manner you described, you need to group by columns that actually contain only the year and month.  See my example pictured below.  I use the Year() and Month() functions to create two calculated columns for year and month, group by them, then sum the value field:
Kevin Yip  @Reply  
     
3 years ago

Scott Axton  @Reply  
        
3 years ago
Check out the Missing Months video.
This will give you an idea how to set up the criteria Kevin Yip suggested above. It will also show how to display any months that don't have data .
Stephanie Paul OP  @Reply  
     
3 years ago
Thank you Kevin and Scott, with your guidance I was finally able to get the dates grouped by month and make the report I need!!!  I can't thank you enough!
Scott Axton  @Reply  
        
3 years ago
So glad it worked out for you!  Glad I could help.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 4:37:52 AM. PLT: 0s