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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Date

I took a date in a Database with the year 18,19,20,21,22 and i load it but it came as decimal but when i try to convert these to Date it comes out as 1900 and i don't know how to get the right date. Thanks in advance  for your upcoming solution

 

Gaucho_0-1673336805958.png

Here is the date but it is in decimal number but when i try to change it to date format it is giving me something else as shown below;

Gaucho_1-1673336953073.png

 

7 REPLIES 7
Anonymous
Not applicable

If you just need the 4 digit year, just click the "Addition" button and add 2000. If you are trying to get a date like 1/1/2019, etc. then try:

 

= Table.AddColumn(PriorStepOrTableName, "Year", each #date([GJ]+2000, 1, 1), type date)

 

--Nate

Anonymous
Not applicable

Gaucho_0-1673340730321.png

@Anonymous it is not working. Can you please tell me where should i paste your Code? I am new in Power bi

wdx223_Daniel
Community Champion
Community Champion

=Table.TransformColumns(PreviousStepName,{"GJ",each #date(2022,12,_)})

Anonymous
Not applicable

Gaucho_0-1673339473461.png

@wdx223_Daniel your solution is not working or may be i am doing it wrongly

replace PreviousStepName with your real step name, which is listed on the right pane 

Anonymous
Not applicable

@wdx223_Daniel I am really not clear please

Anonymous
Not applicable

@wdx223_Daniel should i create a new colum and add this Syntax?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.