The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Guys,
I have question about date and time field results after downlod csv file. I duplicate created_at column and changed data type as one column date and another as time.
Is their anyway to fix this, Struggling from days.
Thank you
Solved! Go to Solution.
Hi @Dilantha ,
Base on your description, I think it is because the export function of Power BI is not smart enough to automatically determine what type to list, and will become custom or general by default. The default date of time is 1899-12-30, and it will be displayed after exporting. Just as the default date of date is 0:00, hidden ones will be displayed.
Sorry for that you can only manually modify the format in Excel.
My test process is as follows, I hope this can give you a little help.
1. my test data in Power BI Desktop.
2. exported data in .CSV file
3. change the Format of "Date"(Enter "hhhh-mm-dd h:mm" in the "Type" cell)
4. change the Format of "Time".
(Because it is in "General" format, I split the column first and then convert the Time column to "Time" format)
Then remove the unwanted column.
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Dilantha ,
Base on your description, I think it is because the export function of Power BI is not smart enough to automatically determine what type to list, and will become custom or general by default. The default date of time is 1899-12-30, and it will be displayed after exporting. Just as the default date of date is 0:00, hidden ones will be displayed.
Sorry for that you can only manually modify the format in Excel.
My test process is as follows, I hope this can give you a little help.
1. my test data in Power BI Desktop.
2. exported data in .CSV file
3. change the Format of "Date"(Enter "hhhh-mm-dd h:mm" in the "Type" cell)
4. change the Format of "Time".
(Because it is in "General" format, I split the column first and then convert the Time column to "Time" format)
Then remove the unwanted column.
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Dilantha , set the time data as time only. and set format as hh24:mm:ss and then try. Do this in column property so that it applies everywhere.
I already tried this way, Its convert in everywhere except csv file.
@Dilantha
In Power Query, under Add Column Tab, click on the Date and choose Date Only to extract the Date for your date column. It should give you the expected format.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank You, Im sorry to say, It didnt work . And I want to modify same column, because I added date to the global slicer.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
82 | |
77 | |
47 | |
39 |
User | Count |
---|---|
150 | |
116 | |
68 | |
64 | |
57 |