Forum Discussion
Anonymous
7 years agoNot applicable
Change Date format to YYYYMM
Hi, I have a date column in YYYYMMDD format, when I import to Power BI, the Data Type is Text. I need to convert to Data Type "Date" and Date Format -> YYYYMM. In the Modeling tab, the D...
- 7 years ago
Hi,
In the Date Table, write this calculated column formula
=FORMAT('Date'[Date],"YYYYMM")
In the slier, drag this column.
Hope this helps.
Ashish_Mathur
Super User
7 years agoHi,
In the Date Table, write this calculated column formula
=FORMAT('Date'[Date],"YYYYMM")
In the slier, drag this column.
Hope this helps.
Anonymous
3 years agoNot applicable
Hello Ashish,
I have similar kind of problem.
When I use above solution, then I am not able to convert "YYYYMM" format to Date. It shows as text. I want this format to be converted to date as I am performing time intelligence calculations on it.
Do you know anyother solution for it ?
Thank you for help.
- Ashish_Mathur3 years ago
Super User
Hi,
Try this calculated column formula
=date(left(Data[Date],4),right(Data[Date],2),1)