This content has been marked as final. Show 3 replies
I am having trouble with this if statement in the load editor.
Here is an excerpt from my script:
monthname("Original Order Date") as [original_order_date]
monthname(if((original_order_date)<monthname('2011/4/18'), monthname(makedate(2011,4,18)), original_order_date)) as [churn_order_date]
The result is that my dates prior to "2011/4/18" are not converted to "2011/4/18," the dates are showing up in their original form.
What I need is "if(original_order_date)<(2011/4/18) then change the date to (2011/4/18) , else [original_order_date] as [churn_order_date]
Any help is much appreciated!