Forum Discussion
i820017
Resolver II
4 years agoDate 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"))
Samarth_18
Community Champion
4 years agoi820017 Please try this:-
Column =
var result = FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM")
return IF(ISBLANK(result),BLANK(),result)i820017
Resolver II
4 years agoI justs did that, and I am still getting the same error.
- Samarth_184 years ago
Community Champion
oh....!!! This should work now. 🙂
Column = IF(ISBLANK('Table'[Column1]),BLANK(),FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM"))- i8200174 years ago
Resolver II
This worked...thanks!!