Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GSXSKate
Regular Visitor

Dates not appearing correctly - 01/06/2013 in Excel appears as 41426 in PowerBI Desktop Query Editor

I'm guessing/hoping its something really simple but my dates are appearing as texts and I can't just convert into Dates, it errors.

 

This is what it looks like in Excel:

GSXSKate_0-1684442598430.png

and yet in Query Editor it appears like this:

GSXSKate_1-1684442651367.png

Updating the data type to 'Date' just errors:

GSXSKate_2-1684442695394.png

 

Please tell me there is a simple solution to this?

 

Thanks!

1 REPLY 1
ppm1
Solution Sage
Solution Sage

Try this. First convert your columns to Whole Number, then add a new step converting them to date. If not, you can add your integer number of days to #date(1899, 12, 30).

 

= #date(1899,12,30) + #duration([DateIntegerColumn],0,0,0))

 

Pat

Microsoft Employee

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.