Forum Discussion
i820017
4 years agoResolver II
Date to YearMonth Column
I am trying to create a column that takes a date in mm/dd/yyyy and turns it into YearMonth. (The name of the column that I am working with is 'Procedure Request Form'[Date Request Submitted]) For...
- 4 years ago
oh....!!! This should work now. 🙂
Column = IF(ISBLANK('Table'[Column1]),BLANK(),FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM"))
i820017
4 years agoResolver II
I used DATEVALUE, and I still get an error.
Samarth_18
4 years agoCommunity Champion
i820017 Please try this:-
Column =
var result = FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM")
return IF(ISBLANK(result),BLANK(),result)- i8200174 years agoResolver II
I justs did that, and I am still getting the same error.
- Samarth_184 years agoCommunity Champion
oh....!!! This should work now. 🙂
Column = IF(ISBLANK('Table'[Column1]),BLANK(),FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM"))- i8200174 years agoResolver II
This worked...thanks!!