Forum Discussion
BuildPro
3 years agoQrew Captain
this is incorrect:
this is correct
------------------------------
BuildPro
------------------------------
this is correct
------------------------------
BuildPro
------------------------------
MarkShnier__You
Qrew Legend
3 years agotry this vesion
//try this
var date MyDate = [PAYROLL START DATES];
var number DaysToSubtract = Case(DayOfWeek($MyDate),
0,2,
1,3,
2,4,
3,5,
4,6,
5,7,
6,1);
var date LastFriday=
$MyDate - Days($DaysToSubtract);
If([PAYROLL START DATES] <= $LastFriday,
"RED",
"#FFFFE0")
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
//try this
var date MyDate = [PAYROLL START DATES];
var number DaysToSubtract = Case(DayOfWeek($MyDate),
0,2,
1,3,
2,4,
3,5,
4,6,
5,7,
6,1);
var date LastFriday=
$MyDate - Days($DaysToSubtract);
If([PAYROLL START DATES] <= $LastFriday,
"RED",
"#FFFFE0")
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------
- BuildPro3 years agoQrew CaptainUmmmm. Didn't work
------------------------------
BuildPro
------------------------------- MarkShnier__You3 years ago
Qrew Legend
Maybe I am not understanding the result you were looking for. Could you post a spreadsheet with an example of today's date and some other dates for that payroll field and what color you expect the road to be?
------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------ - DougHenning13 years agoCommunity ManagerHere's an updated version that computes last Friday using today instead of the payroll date. Try this:
var Number daysToSubtract = If(DayOfWeek(Today()) = 6, 1, 2+DayOfWeek(Today()));
var Date lastFriday = Today() - Days($daysToSubtract);
If( [PAYROLL START DATES] <= $LastFriday,
"RED",
"BLUE")
------------------------------
Doug Henning
------------------------------