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
grilli79
New Member

Issues when source date column contains Date and Serial date

Hi all,

 

This is my first question to the forum, so be gentle...

 

I'm relatively new to Power BI and have a bunch of CSVs i'm consolidating into a report. Occasionally one of the date columns contains serial format (e.g., 45678) dates. At the same time, this column also contains dates (correctly) in the format dd/mm/yyyy. Example shown here.

 

grilli79_1-1662530722855.png

 

In Query Editor, when i try to reformat the column to "Short Date", it doesn't do anything and i'm still presented with "Error - We couldn't parse the input provided as a Date value". In the CSV file, the serial is coming through as "General" format. But the same error happens if the serial is "Number". 

 

Replace Errors won't help, because I want to keep the underlying date, and don't want to replace it with a static value because there could be other reasons for errors in this column too, not just the serial date format. 

 

Any help would be appreciated!

 

Thanks

Adam

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,
If no transformation works, you could create a new column by using:

#date(1900,1,1)+#duration([Column4]-2,0,0,0)

From this thread: https://community.powerbi.com/t5/Desktop/Date-serial-to-date-format/m-p/526307
 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi,
If no transformation works, you could create a new column by using:

#date(1900,1,1)+#duration([Column4]-2,0,0,0)

From this thread: https://community.powerbi.com/t5/Desktop/Date-serial-to-date-format/m-p/526307
 

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
Top Kudoed Authors
Users online (708)