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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Dalla_Terra
Helper I
Helper I

Date Table Changed All Years to 1905

I have had a PBI Desktop model open and just imported some CSV data. After linking the date fields in this data to my Dates table I created it changed the year in all of my date records to 1905 yet the source date from which I built my year calculation has the correct year.

 

This makes no sense to me. Any suggestions on what may have happened? Other pbx files I am working with are fine but this file updated the year for all dates to 1905. I have tried to delete and add the column again but the same result. I'm confused. 

 

Screen Shot 2022-01-04 at 3.17.06 PM.png

 

 

Screen Shot 2022-01-04 at 3.17.32 PM.png

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Dalla_Terra ,

This may be due to incorrect data type, if the data type of the year column is date, it will show the unexpected value.

vkalyjmsft_2-1641523455098.png

You should change the data type to whole number, it will show the correct value.

vkalyjmsft_3-1641523499852.png

Best Regards,
Community Support Team _ kalyj

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @Dalla_Terra ,

This may be due to incorrect data type, if the data type of the year column is date, it will show the unexpected value.

vkalyjmsft_2-1641523455098.png

You should change the data type to whole number, it will show the correct value.

vkalyjmsft_3-1641523499852.png

Best Regards,
Community Support Team _ kalyj

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

but changing data type to whole number does not work for time intelligence function

AilleryO
Memorable Member
Memorable Member

Hi,

 

Could it be linked with some data coming from a MAC or Linux system ? At least for MAC I know you have that 1900 or 1904 start for dates...

Could it be the reason why ?

 

Have a nice day

bcdobbs
Super User
Super User

Really odd! If you add a new calculated column:

 

DateInt = INT ( 'Date'[Date] )

 

what values does that return?



Ben Dobbs

LinkedIn | Twitter | Blog

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Greg_Deckler
Super User
Super User

@Dalla_Terra I cannot recreate this. I'm on the December 2021 version. Is it possible that the Date column is some weird type with a custom format string? What happens if you use the Month Start or Week Ending column instead just to test?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors