I am making a job hour list and have the days.....
Mon - Tue Etc. and I want to add the hours of those days then multiply those hours by the labor rate per hour. I have used "expression" and thought that it would work but it won't. Can I get a little help?
dhookom,
Here is what I want to do.....
Mon
Tue
Wed
Ttl Hrs Rate Total
In the total hrs area should be the total hrs from Mon-Sat. In the rate area is the amount per hour and in the total area is the total dollar figure. So the total should be the rate times the hours. I tried to do this with the expression but when I go back after doing the expression nothing happens and it doesn't work.
Let's assume that you source query includes your data table with a Weekday column (containing Mon, Tue, Wed, etc.), an Hours column, a Rate column (which might be from another table that is linked through an employee account number to the main table). Create a grouping query something like this using the query builder:
SELECT [Weekday], Sum[Hours] AS TtlHrs, First[Rate] AS HrlyRate, (*[TtlHrs]*[HrlyRate]) AS TotalCost FROM [SourceTable] GROUP BY Weekday;
Obviously you will also include criteria to limit the date range, assuming your source data table includes a date column.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.