Forum Discussion
MarkShnier__You
Qrew Legend
4 years agono problem.
Just make a formula checkbox field called [Date is in the Current Period?]
FirstDayOfPeriod(Today(), Weeks(2), Date(2021,5,19)) = FirstDayOfPeriod([Date], Weeks(2), Date(2021,5,19))
In other words if the first day of the period of today matches the first day of the period of the particular date field then the date field must be in the same time period as today.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
Just make a formula checkbox field called [Date is in the Current Period?]
FirstDayOfPeriod(Today(), Weeks(2), Date(2021,5,19)) = FirstDayOfPeriod([Date], Weeks(2), Date(2021,5,19))
In other words if the first day of the period of today matches the first day of the period of the particular date field then the date field must be in the same time period as today.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
- RobinWosje4 years agoQrew MemberI think I did it! THANK YOU!!
I guess my only question is that QB will continue to count 2 weeks (since it is a period formula) for the next pay period, right? The 5/19/2021 date is just where it starts, but it will keep updating as we get into the new 2 week period.
Here is my screenshot:
------------------------------
Robin Wosje
------------------------------- MarkShnier__You4 years ago
Qrew Legend
Yes, it will continue to work as time marches on and we fall into the Next "current" Payroll period.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------- RobinWosje4 years agoQrew MemberUgh. The report worked great. However, what I didn't quite think through was that when we got to the first day of the new period, the report is empty. Of course, right?! Well, if someone wants to see what the entries are to make sure all of the time entries are in for the previous time period, I need to show them something. So, I kept the report at the top, but added a new report below it that shows the previous time period. The problem is that I don't know how to write that formula. So, instead (thinking I am really, really smart), I used the QB filter and said, show me dates in the last 9 days. It worked great, right? Well, the day after the period closed, it worked great, but of course, now it is repeating, because the last 9 days is now partially in the old time period and partially in the new time period. Man, I didn't think that through. So, my question is if there is a way to write a formula to make it report the previous time period which I can have below the current time period in case anyone needs to see previous entries (just one period prior).
------------------------------
Robin Wosje
------------------------------
- RickPutnam4 years agoQrew CadetCame to the forum looking for an answer to a similar question today. I suspected there would be a perfect Mark Shnier response if I just looked hard enough.
Thanks again for your contributions to this forum, Mark.
------------------------------
Rick Putnam
------------------------------