Forum Discussion
Anonymous
7 years agoNot applicable
How do I create a date field using a text field that has year and month only.
I have a text field that contains year and month only (ex '201801'). How do i create a date field using this text field. Thanks! Sallee
- 7 years ago
Well, in DAX you could do this:
Column = DATE(INT(LEFT([Column1],4)),INT(RIGHT([Column1],2)),1)
Greg_Deckler
Community Champion
7 years agoWell, in DAX you could do this:
Column = DATE(INT(LEFT([Column1],4)),INT(RIGHT([Column1],2)),1)