Forum Discussion
Changing text to date column not working
- 1 year ago
The null values are the issue.
So let's try this...Month_Year = DATEVALUE( IF( ISBLANK([End]), BLANK(), FORMAT([End], "MMMM YYYY") ) )
Alrighty. What happens when you use...
FORMAT('Absence Data'[End], "MMMM YYYY")
without wrapping it in the DATEVALUE()?
that formula works but when I try and change the format of that to date rather than text I get an error. Can I not change this column so it behaves like a date column?
- jgeddes1 year agoSuper User
You can absolutely change the column type to date. Based on the continued reappearance of the error I am thinking that there is/are values in your 'End' column that are not playing nice.
Your initial screen shot did not contain any data in the 'End' column so I have been making assumptions that the data in the 'End' column was sound. My suggestion at this point would be to review the contents of that column to ensure that there are no anomalies.- hallang1 year agoFrequent Visitor
so the 'end' is a date field, the only thing I can see in it is it has 'null' values but it needs to as on some rows this will be blank
- jgeddes1 year agoSuper User
The null values are the issue.
So let's try this...Month_Year = DATEVALUE( IF( ISBLANK([End]), BLANK(), FORMAT([End], "MMMM YYYY") ) )