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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Fahid
Helper I
Helper I

Changing year column to dd.mm.yyyy column

Hello everyone,

 

I have a year column in a table where if I change its data type to date format it changes all the year values. I tried to make that year column dd.mm.yyyy format by using below DAX but I can’t change data type here to date format.

DATE = "1.1."&'Export'[Year Built, Year]

 

I need to make that year column as 1.1.yyyy format and data type should be date as I want to use time intelligence function. Could you please help me to solve this problem?

 

BR,

Fahid

1 ACCEPTED SOLUTION
itsmebvk
Continued Contributor
Continued Contributor

@Fahid create a calculated column using following formula > Then change Date Format as highlighted in below screenshot

 

Column = DATE(Sheet1[Year],1,1)

 

Date.jpg

 

If I misunderstood your requirement, please elaborate your requirement.

View solution in original post

2 REPLIES 2
itsmebvk
Continued Contributor
Continued Contributor

@Fahid create a calculated column using following formula > Then change Date Format as highlighted in below screenshot

 

Column = DATE(Sheet1[Year],1,1)

 

Date.jpg

 

If I misunderstood your requirement, please elaborate your requirement.

Hello,

@itsmebvk Thanks a lot man. Your code works perfectly.

 

BR,

Fahid

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors