cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Keith011
Helper III
Helper III

1899-12-30 only appear in CSV

Hi There,

 

I've read numerous post regarding the 1899-12-30 formatting issue but couldn't find any solution.

 

My Power BI file is connected to a local Excel File. In the Excel file, the Join Time column values are pasted like so : 3/20/2023 07:00:00 PM

 

In Power BI i transform data in Power Query Editor format to only show Time so i'm left with 07:00:00 PM.
It's all showing perfectly in the table. However when i export data to CSV. In the CSV file it's showing 1899-12-30 07:00:00 PM

I've tried the below
In my Excel, remove the date and retain only the time

Power query > change to Time Only format

Modelling Tab > change format to -> 1:30 PM (h:nn AM/PM)

i've done everything where i remove the date entirely in my source file, purposefully change the format to Time only although i have already removed the date, but i still get the 1899-12-30 in my CSV export data

1 REPLY 1
danextian
Super User
Super User

Hi @Keith011,

 

I have observed that behaviour as well. My workaround is to use FORMAT to convert time to text. The export to CSV now shows the time without 1899-12-30 date.

 = FORMAT ( 'Table'[time],"hh:mm am/pm" )





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors