Have a database that contains call information for an emergency call center. Need to develop a report that visually graphs out the average number of calls by the hour for any given month. The only applications I have available to me are Access and Excel to do this with.
I have the data easily available in the format "MM/DD/YY HH:MM:SS" When I export this to Excel it retains that format. My issue is that I need to sort all of the calls that came in between 0000 and 0059:59 together. Any ideas how I can do that? (well over 10k records per month, so individually removing the dates is going to be a pain in the neck)
Related
I was tasked with replacing old reports made in Crystal Reports since SSRS is the standard we are using. The core functionality of the new SSRS reports works fine but there's one thing missing. It's not insanely important but it's been bugging me. One of the tables in the database I'm working on tracks tasks that have been worked on and stores the Monday of the week they were completed on as a datetime, as well as time spent etc.
Currently my reports allow for the user to choose a start week from a list of Mondays, and an end week. This along with other things are sent to a stored procedure to get the data needed for the report, with the where clause including
AND (Table).WeekStartDate BETWEEN (#paramStartWeek) AND (#paramEndWeek)
In the older Crystal Reports ones the query and filtering is done entirely in the report instead of a stored procedure. It seems to allow a list of different, specific intervals. If I wanted info from two weeks of 2015 and then 5 weeks from 2018 to appear in the report (for some reason) I could keep adding intervals to a list.
Normally you could do something similar in SSRS by setting the parameter to accept multiple values and parsing the string it creates in the stored procedure, but if i selected multiple start and end dates as two separate parameters there would be nothing saying which start went with which end.
Most of examples of this I've seen only allowed for predetermined amounts of time ("One month ago, three months ago, a year ago") but I would like for it to be any week needed.
The person I'm doing this for would like most of the filtering done outside of the report, so I'm wondering if anyone knows an easy way to get a list of specific date ranges from SSRS into a stored procedure.
I have a form that captures production data for a certain process. When a employee enters production numbers, currently I am not sure what the time frame for the production numbers are.
E.g. Employee A enters a production number of 50 on 2017/10/02. This 50 represents the production of 1 day (2017/10/01). Now, employee B enters 550 on 2017/10/03, but this represents production for the week of 2017/09/24 to 2017/10/01.
Now, we know that various employees will be providing data of different time frames, but I'm trying to figure out the best way to manage this. I capture data using a Excel sheet with VBA, and then transfer it to a SQL database. Currently, in the database we use GROUP BY to get all data related to a certain month. So if the timestamp of the data is in September, all September data will be summed and the total used as the September total to date. However, this does not answer two key points:
If data for September is entered in October.
If data is entered that duplicates a period for the employee that was entered earlier.
What is the best way of managing this? I can change my capturing form and the way we manage data in the database.
EDIT and more information:
The information I want to capture consists of production numbers from various production areas entered by an employee. So for example, site A will have 3 sub-sites. These sub-sites will each have a production achieved, target for the period and forecasted production number.
Timestamp: Site: Sub-site: Production: Target: Forecast:
2017/10/01 PlaceA Line1 200 250 230
I receive csv files at the end of each month from my customer for each of their KPI (for example csv's for resumes received, candidates joined, candidates resigned, sales, profits, loss , etc) for that specific month.
I want to be able to query this data inorder to generate reports for any month, day or year. This report will be generated dynamically i.e the admin would specify what rows he would like to have in a report (for eg a report with applications received, applications shortlisted, candidates shortlisted after the 1st interview for the period of jan to july.) for any period of time.
What would be the best way to store the data into my database in order to generate such reports? I am using Mysql as my database.
I am not sure if I would need to flush out the old data from my tables currently. So considering that I keep all the data persistent, what would be the best suited database design for this?
Currently what I do is I have a table for each of their KPI. This table has got a date field which I am using to generate the report. But I am looking for a more optimized way.
Thanks in advance.
It is better to store those values (month or year related values ) in a "Date" type fields which would not need any other manipulation while building reports. The conditions or logic for the specific period of time should be handled in your front end. In this case, the usage of Date field is the optimized way.
So I'm sure all of you know what a wage report is, it's basically a piece of paper where you write how many hours you worked that day and how much you are making per hour and then you sign a date. So I have an excel version of a physical wage report and I want to be able to take the data from an SQL server and insert it certain pieces of data in certain cells in the excel sheet, because it needs to be put in a certain format. I already know how you can just insert the data from the SQL server into a table in an excel file, but my question is how do I do it if I need the info from SQL displayed in a certain way on the excel sheet.
I haven't tried anything, because I've been searching for a way to do this, but I've come up with nothing. I'm having a hard time knowing where to start, if this is even possible at all.
I've got a list of clients who have certain tasks done on a weekly basis. Currently we use an excel spreadsheet that keeps track of this but I am in the works of automating it. In the process of moving this into our MS Access system, I have created a form that does this for a single day and can display a report that outputs in the manner I want the form to look but I cannot get the form to look like that so the user can see all the days of the week for all the clients at once. I suppose I could do this in a subform per client but it seems a bit messy...
The spreadsheet we currently use has Column headers that state the Date and the rows are sort of grouped up by client that are for the number of times the given action occured, the timestamp of when it happened and other various data that happened on that day.
For the life of me I cannot think of a way to view all the records for that given week, grouped in detail per client all at once on the form. I can think of some ways to do this through VBA with recordsets but would like to know is there is a simpler way to do this that is easier to maintain.
Is there a way to do this with the use of a query and a few small scale tricks that don't involve storing recordsets? Keep in mind that this is for Access 2000, I only wish we would upgrade to '03.
Why not use five subforms? One for today, another for tomorrow, etc for
the next five business days. – Tony Toews Sep 12 at 20:57
That is the answer I've gone with and it works BEAUTIFULLY with the setup we are using. Thanks for the wonderful idea!