Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to create a field of [team formation status] based on the condition of another field [Project Development Assignments Complete (Date)]. If there is a date then Yes, otherwise No.
Here is my code:
Load *,
If(isnull([Project Development Assignments Complete (Date)]),'No','Yes') as [Team Formation Status] From (the location)
The problem is it doesn't return to the right value. All of the status is Yes, which is not right because there are about 60% has no team formation date, so it should be a No in the [team formation status] field.
Thank you very much for your help.
It turned out my source data have some issues. The field can have value of a date, YES or NO. So we changed the code to
If(len([Project Development Assignments Complete (Date)])>3,'Yes','No') as [Team Formation Status] From (the location)
It worked.
Thanks for all your input.
Try this
If(len([Project Development Assignments Complete (Date)])>0,'Yes','No') as [Team Formation Status] From (the location)
Hope this works for you