Forum Discussion
Replace two blank date fields with another date column
- Anonymous4 years ago
Hi NipawanV ,
I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your conditional statement will go [Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.
Try this code.
Date3 = IF ( AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ), activitypointers[modifiedon], IF ( [Due Date (scheduledend)] = BLANK (), [Actual End Date], IF ( [Actual End Date] = BLANK (), [Due Date (scheduledend)], [Actual End Date] ) ) )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
NipawanV , Try like
coalesce([Due Date (scheduledend)], [Actual End Date],[Due Date (scheduledend)],activitypointers[modifiedon])
amitchandak Many thanks but it doesn't work. Apply the said line it doesn't show the result from line 7 as well. Line 7 in my formula if "Actual End Date" and "Activity Due Date " should pickup the result from "Actual End Date". Now it's disappear.
See result in Date4 that applied your formula. (I used "created on" for the time being as it's the text field. coalesce() doesn't allow me to use "modified on" which is the date field.) it doesn't return any date at all.
Any more hints, please!!
- Anonymous4 years agoNot applicable
Hi NipawanV ,
I have a test by your code, I and I could reproduce your problem. I think your issue should be caused that your conditional statement will go [Due Date (scheduledend)] = BLANK(), [Actual End Date] firstly, then it will return blank , there is something wrong in your And() function.
Try this code.
Date3 = IF ( AND ( [Due Date (scheduledend)] = BLANK (), [Actual End Date] = BLANK () ), activitypointers[modifiedon], IF ( [Due Date (scheduledend)] = BLANK (), [Actual End Date], IF ( [Actual End Date] = BLANK (), [Due Date (scheduledend)], [Actual End Date] ) ) )Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.