A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Weekly Trends By Hour



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2006, 10:42 AM posted to microsoft.public.access.queries
CevinMoses
external usenet poster
 
Posts: 22
Default Weekly Trends By Hour

I work in a factory as a foreman. I am building a Dashboard-style Report,
and one of the graphs I want to include is a look at whether or not we have
better results on certain days of the week or not. We work a 6 day work
week, 3 shifts, and pieces either come out Perfect, Fixable, or Junk. The
machines are shut down on the 7th day, and I want to know, by hour, what our
trend is like during the week. I have used a crossdata query to group the
data by weekday, then by hour, with column heading of the grading, and the
value is a count of the grading. This serves to combine data on Monday from
the first week with the data from Monday from the second week, etc.

The data in the query is exactly how I want it, but I can't seem to get it
to graph correctly because the weekday and the hour are still two different
fields. I want the X axis of the graph to be a by-hour listing from midnight
on Sunday morning to midnight Saturday night, by I can only get it to give me
either by day or by hour, not both. Do I need to run a seperate query first
to somhow combine these two fields, or is there another way to structure my
query to better facilitate getting the graph I want?

-Cevin
  #2  
Old November 21st, 2006, 11:59 PM posted to microsoft.public.access.queries
Bruce Meneghin
external usenet poster
 
Posts: 119
Default Weekly Trends By Hour

I would suggest calculating an hourInTheWeek field using the Day and Hour
fields. Then it will be straightforward to get the hourInTheWeek on the
X-axis.

"CevinMoses" wrote:

I work in a factory as a foreman. I am building a Dashboard-style Report,
and one of the graphs I want to include is a look at whether or not we have
better results on certain days of the week or not. We work a 6 day work
week, 3 shifts, and pieces either come out Perfect, Fixable, or Junk. The
machines are shut down on the 7th day, and I want to know, by hour, what our
trend is like during the week. I have used a crossdata query to group the
data by weekday, then by hour, with column heading of the grading, and the
value is a count of the grading. This serves to combine data on Monday from
the first week with the data from Monday from the second week, etc.

The data in the query is exactly how I want it, but I can't seem to get it
to graph correctly because the weekday and the hour are still two different
fields. I want the X axis of the graph to be a by-hour listing from midnight
on Sunday morning to midnight Saturday night, by I can only get it to give me
either by day or by hour, not both. Do I need to run a seperate query first
to somhow combine these two fields, or is there another way to structure my
query to better facilitate getting the graph I want?

-Cevin

  #3  
Old November 22nd, 2006, 07:57 AM posted to microsoft.public.access.queries
CevinMoses
external usenet poster
 
Posts: 22
Default Weekly Trends By Hour

I've combined them into one field :
HourofWeek: [Day] & ", "[Hour]

This sorts my data the way I want it. My only problem know is that it
returns the weekdays as a number rather than the name of the day, or the 3
letter abbreviation for the day. Also, the time comes back as a 2 digit
number. For example, Sunday 2:00 pm comes back "0, 14"

How can I format this so that it is recognizable on the graph?

Thanks for the help.

-Cevin

"Bruce Meneghin" wrote:

I would suggest calculating an hourInTheWeek field using the Day and Hour
fields. Then it will be straightforward to get the hourInTheWeek on the
X-axis.

"CevinMoses" wrote:

I work in a factory as a foreman. I am building a Dashboard-style Report,
and one of the graphs I want to include is a look at whether or not we have
better results on certain days of the week or not. We work a 6 day work
week, 3 shifts, and pieces either come out Perfect, Fixable, or Junk. The
machines are shut down on the 7th day, and I want to know, by hour, what our
trend is like during the week. I have used a crossdata query to group the
data by weekday, then by hour, with column heading of the grading, and the
value is a count of the grading. This serves to combine data on Monday from
the first week with the data from Monday from the second week, etc.

The data in the query is exactly how I want it, but I can't seem to get it
to graph correctly because the weekday and the hour are still two different
fields. I want the X axis of the graph to be a by-hour listing from midnight
on Sunday morning to midnight Saturday night, by I can only get it to give me
either by day or by hour, not both. Do I need to run a seperate query first
to somhow combine these two fields, or is there another way to structure my
query to better facilitate getting the graph I want?

-Cevin

  #4  
Old November 22nd, 2006, 03:56 PM posted to microsoft.public.access.queries
Bruce Meneghin
external usenet poster
 
Posts: 119
Default Weekly Trends By Hour

You may have to keep your current HourOfWeek field to maintain the sorting
but then add another field that will contain the value you want for display
using WeekDayName([Day],True) or Format([Day], "ddd" ) to get an abbreviated
day name and Format([Hour],"hhhh") to get military time.

"CevinMoses" wrote:

I've combined them into one field :
HourofWeek: [Day] & ", "[Hour]

This sorts my data the way I want it. My only problem know is that it
returns the weekdays as a number rather than the name of the day, or the 3
letter abbreviation for the day. Also, the time comes back as a 2 digit
number. For example, Sunday 2:00 pm comes back "0, 14"

How can I format this so that it is recognizable on the graph?

Thanks for the help.

-Cevin

"Bruce Meneghin" wrote:

I would suggest calculating an hourInTheWeek field using the Day and Hour
fields. Then it will be straightforward to get the hourInTheWeek on the
X-axis.

"CevinMoses" wrote:

I work in a factory as a foreman. I am building a Dashboard-style Report,
and one of the graphs I want to include is a look at whether or not we have
better results on certain days of the week or not. We work a 6 day work
week, 3 shifts, and pieces either come out Perfect, Fixable, or Junk. The
machines are shut down on the 7th day, and I want to know, by hour, what our
trend is like during the week. I have used a crossdata query to group the
data by weekday, then by hour, with column heading of the grading, and the
value is a count of the grading. This serves to combine data on Monday from
the first week with the data from Monday from the second week, etc.

The data in the query is exactly how I want it, but I can't seem to get it
to graph correctly because the weekday and the hour are still two different
fields. I want the X axis of the graph to be a by-hour listing from midnight
on Sunday morning to midnight Saturday night, by I can only get it to give me
either by day or by hour, not both. Do I need to run a seperate query first
to somhow combine these two fields, or is there another way to structure my
query to better facilitate getting the graph I want?

-Cevin

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.