Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I got a problem in power bi where my dates in the csv file is changed when I imported the csv file into power bi
Solved! Go to Solution.
Hi @ty_34 ,
The reason for this problem is that if a flat file is imported into powerbi, it follows the default date format in the control panel.
Then, you can change Date type like blew code in Power query or change it directly in Control Panel->region.
= Table.AddColumn(#"Changed Type", "Year", each Date.Year([#"Date (YYYY-MM-DD)"]), Int64.Type)
For more details, you can refer to below blog:
Power Query date format (How to + 5 tricky scenarios) (exceloffthegrid.com)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ty_34 ,
The reason for this problem is that if a flat file is imported into powerbi, it follows the default date format in the control panel.
Then, you can change Date type like blew code in Power query or change it directly in Control Panel->region.
= Table.AddColumn(#"Changed Type", "Year", each Date.Year([#"Date (YYYY-MM-DD)"]), Int64.Type)
For more details, you can refer to below blog:
Power Query date format (How to + 5 tricky scenarios) (exceloffthegrid.com)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ty_34
Thats not a problem, open it in Power Query and transform it as you wish.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.