I have a text field that contains a combination of dates and nulls (i.e. ISBLANK returns false, but ="" returns true). The problem is I want to convert to Datetime to do arithmatic on it, but when I try DateValue([MyDate]) I get a type mismatch even though that takes a text. I though it was the content perhaps so I tried
=if([MyDate]="",Date(1900,01,01),DateValue([MyDate]))
But still a type mismatch. The source of the field is an MDX query to a traditional cube, but that shouldn't make a difference. How can I convert this to a date?
=if([MyDate]="",Date(1900,01,01),DateValue([MyDate]))
But still a type mismatch. The source of the field is an MDX query to a traditional cube, but that shouldn't make a difference. How can I convert this to a date?