Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I have an error with below sample data to convert a text column (Period) to a date format (Date period).
| Period | Date period |
| 004.2021 | 01.04.2021 |
| 005.2021 | 01.05.2021 |
| 006.2021 | 01.06.2021 |
The Date Period I retrieved via following formula :
Date Period = CONCATENATE("01.";right('DataFile'[Period];7))
Solved! Go to Solution.
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
@YBZ Perhaps try:
Date column =
VAR __Day = LEFT([Date period],2)
VAR __Month = MID([Date period],4,2)
VAR __Year = RIGHT([Date period],4)
RETURN
DATE(__Year,__Month,__Day)
thanks Greg, it works! 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.