Hi @jamescosten,
The IsBlank will return true if no value is found (LookUp record is blank) - resulting in the color red. To add a choice column, we will need to extend the column name with .Value in order to compare it to text (if it is a single selection choice column):
If(
IsBlank(
With(
{endOfDay: Today() + Time(23,59,59)},
LookUp(
'Crane Daily Checks',
Created >= Today() && Created <= endOfDay && Crane.Value = "Tool Room"
)
)
),
Color.Red,
Color.Green
)
A multi-select choice column will be a bit more difficult since it would make our LookUp non-delegable. In order to fix this, we first filter by date and then apply the non-delegable choice column condition. As long as the output / returned records of the date filter function is less than your Data Row Limit (see app settings, max 2000), you should be fine.
If(
IsBlank(
With(
{endOfDay: Today() + Time(23,59,59)},
LookUp(
Filter(
'Crane Daily Checks',
Created >= Today() && Created <= endOfDay
),
"Tool Room" in Crane.Value
)
),
Color.Red,
Color.Green
)
If this solves your question, would you be so kind as to accept it as a solution.
Thanks!