Forum Discussion
LearningStill
3 years agoNew Member
Help With Date Formatting
Hello, I was hoping to get some help regarding changing data type for one of my columns in PowerBI to a date data type. I am using the Data view to do this. As you can see in the screen caps belo...
Arul
3 years agoSuper User
As far as based on my experience we cannot convert whole number into date but you can try the below formula in new calculated column and use it in modelling.
Date =
VAR _year = LEFT('Table (3)'[month_date_yyyymm],4)
VAR _month = RIGHT('Table (3)'[month_date_yyyymm],2)
VAR _yearMonth = _year &"-"& _month
RETURN _yearMonth
Thanks,
Arul