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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.