Two pass report? - ms-access

Using MS Access 2013 I created a table to track load data for a trucking company using teams of 2 drivers per load trip. The table stores driver1 and driver2 and the total miles for each load trip. Both drivers get paid for the same miles per trip. I need to print a report listing each individual driver and the total miles from each load he participated in. Since each driver may be driver1 on some loads and driver2 on others I'm not sure how to approach such a report. I could print 2 reports, one for driver1 and one for driver2 and then manually add the driver totals together but I would like to do this in one report listing each driver and the total miles he would be paid for. Any help would be appreciated.

Use a union query as the source for your report. SELECT Driver1, Miles FROM tblTrips UNION Driver2, Miles FROM tblTrips

Related

How to effectively store data of varying time framces

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

Two Dataset without joining them in SSRS

I have two Datasets in my SSRS report and both dataset coming from different database. and there impossible to join them
Example not real Data .....
so what im tring to do is (Dataset1) total number of Visiter divided by (Dataset2) Total number of Cars * 1000 (sectors) row group by every month and Year.
for example (not real) if we have 24 Visitors and 2063 Cars *1000 so we get AVG of 1000 Sectors 11.63
Is there any funcation in SSRS where i solve this problem IN Excel you know i easy but I need to create report in SSRS please any help would safe me. Thanks
enter image description here
The lookup function in SSRS allows you to get fields from a different dataset based on matching criteria.
See here for more information: https://msdn.microsoft.com/en-GB/library/ee210531.aspx

map specific offices within range

We have a requirement to find corporate offices within a certain distance of a zip code
Requirements:
Can be a spreadsheet or web app, something portable.
We have a master office list with different office type categories.
Users need to be able to upload or populate a second list with customer addresses or just zip codes, sometimes up to 15000 at a time, they then need to be able to select a distance (e.g. 10 Miles, 25 Miles etc) and then select one or multiple office categories to display the results of offices within the selected mileage range, is there something already available to do this or does someone have an example?
Thanks ahead
This is essentially a store locator, but instead of stores you have corporate offices. Here is a step by step guide on how to create a store locator using Bing Maps: https://msdn.microsoft.com/en-us/library/dn948092.aspx

Add row data to total,without showing row values SSRS

I am relatively new to SSRS. This is a Dynamics CRM report. My scenario is that I have a 15 truck drivers. I have created a report that shows their number of trips and the miles driven. I can sum the miles and get the total number of miles for each driver.
What I want is just the driver name and the total number of miles driven.I am not sure how to get that calculation done in SSRS. Any help would be greatly appreciated.
Regards
SR
It will be straight forward if your dataset just returns the data you need - the driver name and the total numbers.
But if your dataset returns the detailed data, not totals, then you can just hide the detail row of the tablix: right click on the detail row header -> Row Visibility... -> select the "Hidden" radio button. With that, I'm assuming your report already has the grouping by Driver and shows the total miles.
Best regards,
~Alexey

MSCRM 2011 Total record count by day

One of our team who maintains subscriber content in CRM requested a report that displays total number of active records, email subscriber and email unsubscribers. I can create a report that shows current total for all three subject above. But can't show the historical details.
For example: Active used count for yesterday was 400K then today 403K and tomorrow 4007K, I want to produce a graph that shows the climbing of these numbers by day.
My first thought is to create new entity that stores all these details or a new table in sql and use that in reporting with SSRS.
I want to know if you guys have ever come across this and if so what you think is the best solution?
try once Group by date (Or)
Create a new Entity and write a workflow that runs every day and stores all the counts date wise.
fetch the custom entity data into the report.