I would like to give my users the ability to create and print a report of Timesheets based on user defined timeframe.
For Example: A user would be able to select a “Date From” Dec 1,2019 and Then a “Date To” Dec 31, 2019 and then a report would be generated showing all timesheets that are within the month of December. Then they would be able to print this report.
The last virtual column in the screenshot above is where I would like all items that are matching the criteria set by the user to be ( I just have a fake formula for the time being).
I was able to find a sample app that shows a basic principle of what I am trying to accomplish.
Hi Josh, you could write it directly into your template like <<Start: SELECT(Timesheets[KeyColumn],AND([_THISROW].[Start]>=[Date],[_THISROW].[End]<=[Date]))>>
Correct formula is probably…
<<SELECT(Timesheet[Timestamp],AND([Date]>=[_THISROW].[Date From],[Date]<=[_THISROW].[Date To],[Name]=[_THISROW].[Employee]))>>
This will give you a list of Timestamps. If you need to show those records on a table, you should use Start: & End formula as well.
However my question is more how to make this formula work? Is there any way to see if there are errors in a formula when putting them into a email template like one would see in the Expression assistant?
I am looking to have a sum of all hours that are of regular time and a sum of all hours that are of overtime at the bottom of the sheet
SUM(SELECT(Timesheet[Number
Of hours],AND(([Date]>=[_THISROW].[Date
From].[Date]<[_THISROW].[Date]))))