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
Anonymous
Not applicable

How to change text data type to date data type for calculated column

Hi Community people,

I have created one calculated column for financial year end date using below:

 

FYMaxDateEND = IF('Query1'[End - Month]>=4 , "31/03/" & 

'Query1'[End - Year]+1,IF('Query1'[End - Month]<=3,"31/03/" 

& 'Query1'[End - Year]))

 

But it is in text data type but i want in in date data type format only. what should i modify

Can you guys please help me out from this

 

 

Thanks in advance

 

B V S Sudhakar

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

FYMaxDateEND = 
IF('Query1'[End - Month]>=4 , DATE([End - Year]+1 , 3 , 31),
IF('Query1'[End - Month]<=3 , DATE([End - Year] , 3 , 31))

Connect on LinkedIn

View solution in original post

2 REPLIES 2
tex628
Community Champion
Community Champion

FYMaxDateEND = 
IF('Query1'[End - Month]>=4 , DATE([End - Year]+1 , 3 , 31),
IF('Query1'[End - Month]<=3 , DATE([End - Year] , 3 , 31))

Connect on LinkedIn
Anonymous
Not applicable

Thank you very much. it's working now

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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