Forum Discussion
Josh1994
4 years agoHelper II
Need help - Comparing two dates (or blank data)
Hi! I am trying to make a new column based on two others. Essentially, it is checking that the "actual completed date" is less than or equal to the target date. The bit im having an issue wi...
- 4 years ago
Try this calculated column:
Compliance = VAR vToday = TODAY () VAR vResult = SWITCH ( TRUE, NOT ISBLANK ( Table1[Actual Completed date] ), IF ( Table1[Actual Completed date] <= Table1[Target date], "Yes", "No" ), ISBLANK ( Table1[Actual Completed date] ) && Table1[Target date] > vToday, "Yes", "No" ) RETURN vResult
DataInsights
4 years agoSuper User
Try this calculated column:
Compliance =
VAR vToday =
TODAY ()
VAR vResult =
SWITCH (
TRUE,
NOT ISBLANK ( Table1[Actual Completed date] ), IF ( Table1[Actual Completed date] <= Table1[Target date], "Yes", "No" ),
ISBLANK ( Table1[Actual Completed date] ) && Table1[Target date] > vToday, "Yes", "No"
)
RETURN
vResult
- Josh19944 years agoHelper II
- rohitpoojari2 years agoHelper I
Thanks, this was a very useful measure.