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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors