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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors