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
PBI_newuser
Post Prodigy
Post Prodigy

DAX: How to convert column from text to date?

Hi, I have year, month and date columns in a table. 

I tried to create column Date = Date (Year, Month, Date) but the format is store as text and couldn't be converted to date.

 

YearMonthDate
20211025
2020412
202056
201936
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @PBI_newuser 

 

 The table year, month, day are text format, the use of DATE function can be converted to date format.

vzhangti_0-1635472851467.png

Date = DATE([Year],[Month],[Day])

vzhangti_1-1635472882579.png

If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @PBI_newuser 

 

 The table year, month, day are text format, the use of DATE function can be converted to date format.

vzhangti_0-1635472851467.png

Date = DATE([Year],[Month],[Day])

vzhangti_1-1635472882579.png

If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@PBI_newuser Try to create date column in PowerQuery. There you can convert text to date without problem.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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