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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
BárbaraBraga
Regular Visitor

How to convert integer to date

Hello, I'm completely new to Power Bi.

I have a column that should display the years in date format, however, they are in integer format.
When I try to change the column type to date, the year 2011 is changed to 3 July 1905. How do I solve this problem? Because I need to create some measures using date formulas.
1 REPLY 1
vicky_
Super User
Super User

It depends. You can use the DATE(year, month, day) to convert integers to a date. Take a look at the docs here: https://learn.microsoft.com/en-us/dax/date-function-dax
I would recommend converting the integers to a date in Power Query, rather than doing it through DAX if possible though.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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