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 agoHi i820017 ,
Please try below:-
Column = FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM")
Thanks,
Samarth
i820017
Resolver II
4 years agoI used DATEVALUE, and I still get an error.
- Samarth_184 years ago
Community Champion
i820017 Please try this:-
Column = var result = FORMAT(DATEVALUE('Table'[Column1]),"YYYYMM") return IF(ISBLANK(result),BLANK(),result)- i8200174 years ago
Resolver II
I 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"))