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
AtchayaP
Helper V
Helper V

Datatable

My original date year starts from 2014 but after adding data table I got from 1899 which is wrong year , how can I change it?

16481505498555279724956457107522.jpg

16481505894957346541982327983281.jpg

3 REPLIES 3
Anonymous
Not applicable

Hi  @AtchayaP ,

Generally, the year is incorrectly recognized, resulting in only the data format of the month and day.

You can change its date format to "yyyy-mm-dd" in the data source, or when importing into Power BI, Select "Transform Data", go to Power Query and change its date format to Date/Time date format.

vyangliumsft_0-1648775038537.png

 

Best Regards,

Liu Yang

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

PaulDBrown
Community Champion
Community Champion

Try:

Date Table =
ADDCOLUMNS (
    CALENDAR ( MIN ( Table[Date Created] ), MAX ( Table[Date Created] ) ),
    "MonthNum", MONTH ( [Date] ),
    "Month", FORMAT ( [Date], "MMM" ),
    "Year", YEAR ( [Date] )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Tutu_in_YYC
Super User
Super User

What is the DAX syntax for the date table?

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.