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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.