Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi All,
I have imported a data from Kaggle and having issue in converting a Date column from text data type to Date data type.
I can split the column and get the reqired data but need to undertsand how to solve this problem.
Below is the Screen shot of the records.
Solved! Go to Solution.
Hi @sarvesh23p ,
Did you get any error message when change the data type for date column? As you can see the below gif, it can display normally when change the data type of date column as Date type....
And you can create a calculated column as below to get a date type column and delete the original date column...
Ndate = DATE ( LEFT ( 'Table'[date], 4 ), MID ( 'Table'[date], 5, 2 ), RIGHT ( 'Table'[date], 2 ) )
Best Regards
Hi @sarvesh23p ,
Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards
Hi @sarvesh23p ,
Did you get any error message when change the data type for date column? As you can see the below gif, it can display normally when change the data type of date column as Date type....
And you can create a calculated column as below to get a date type column and delete the original date column...
Ndate = DATE ( LEFT ( 'Table'[date], 4 ), MID ( 'Table'[date], 5, 2 ), RIGHT ( 'Table'[date], 2 ) )
Best Regards
Hi
I think, your text-type column shoul be in form of date (such as yyyy/mm/dd, mm-dd-yyyy,...) to power bi can understand and convert it to Date type. In your case ,you should insert Forward slash "/" to seperate year/month/day. Then you can convert it to date type.
You can do that in Power Query by Sample Columns function, or InsertText.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |