The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 with, is i also need it to flag up if there is no data in the Actual completed date field, and the target completed date is after todays date.
I include a small photo to help visualise what i am trying toa chieve
As always, I appreciate any advice you are able to give me
Thank you for reading!
Josh
Solved! Go to Solution.
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
Proud to be a Super 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
Proud to be a Super User!
Thanks, this was a very useful measure.