Computer Learning Zone CLZ Access Excel Word Windows

The universe seems neither benign nor hostile, merely indifferent.

-Carl Sagan
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Creating Graph
Gary Frederick 

3 years ago
Trying to create a graph where it shows employees < 60 months =>60 and < 120 etc. Have done datediff("m",startdate,date()) but can't get the count function to work to add, tried sperate query and still can't get it to work to work with the graph.
Kevin Yip  @Reply  
     
3 years ago
Your query needs a column that will show only 3 values to represent your 3 categories.  It could be text, or any data that would indicate <60m, between 60 and 120, or >=120, etc.  But the column has to have only these 3 values in order for the Count() function to work, because Count() only works for groups of data that have the same values.  And the expression you use does not give you the 3 distinct values.  Datediff("m",startdate,date()) would give you 31, 6, 100, 24, 45, 42, 29, 199, etc. -- it would give you all the different ages of your employees, which are all different, and that is why it isn't working.

In other words, the query for your graph should return something like this:

EmployeeID    InCompany
1000          "Less than 60 months"
1001          "Less than 60 months"
1002          "Between 60-120 months"
1003          "Less than 60 months"
1004          "Less than 60 months"
1005          "Less than 60 months"
1006          "Over 120 months"
1007          "Over 120 months"
1008          "Between 60-120 months"
1009          "Less than 60 months"
Etc.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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/8/2026 6:06:16 AM. PLT: 1s