Forum Discussion
Kyle_Wolfe_Ohio
2 years agoRegular Visitor
Complex IF or ISBLANK
I have a pretty complex script & I am stuck on the final WHERE component. The following image is straight from the table that captures the "Date Filled" and "Date Vacated" information I need to use f...
- 2 years ago
Kyle_Wolfe_Ohio Maybe:
Is Vacant? = VAR vToday = TODAY () VAR vResult = SWITCH ( TRUE, [Date Filled] = BLANK() && [Date Vacated] = BLANK(), "Yes", [Date Vacated] <> BLANK() && [Date Vacated] >= [Date Filled], "Yes", "No" ) RETURN vResult
Greg_Deckler
2 years agoCommunity Champion
Kyle_Wolfe_Ohio Maybe:
Is Vacant? =
VAR vToday =
TODAY ()
VAR vResult =
SWITCH (
TRUE,
[Date Filled] = BLANK() && [Date Vacated] = BLANK(), "Yes",
[Date Vacated] <> BLANK() && [Date Vacated] >= [Date Filled], "Yes",
"No"
)
RETURN
vResultKyle_Wolfe_Ohio
2 years agoRegular Visitor
That worked! Thanks