Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alona
Regular Visitor

How to transform months and years from text format to date format

Hello,

 

Please advise how can I change the columns definition from text to date.

In the exist columns the values appears as Jan Feb... in text format and the years as 2017 2018 in text or decimel number format.

 

Thank you,

 

Alona

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @alona,

 

Assume sample data looks like below: 

 

q3.PNG

You can create a calculated column below: 

Date = DATE('Table1'[Year],SWITCH([MONTH],"Jan",01,"Feb",02,"Mar",03,"Apr",04,"May",05,"Jun",06,"Jul",07,"Aug",08,"Sep",09,"Oct",10,"Nov",11,"Dec",12),1)

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much. It was very helpful.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors