Date Transformations in Derived column – Azure Data Factory

In my Azure Data Factory journey, everyday is a new learning. Creating ADF can be referred here

Defaulting date to current date is common. I had to requirement to default the date to last date of the previous month. Thus, when I import the data in April month, the date to be set as 31.March.2021 , for May month it will have the value as 30.April.2021 and so on.

With Derived column in Azure Data factory, converting the field values is uncomplicated.

I had to use the expression to default the date

lastDayOfMonth(addMonths(currentDate(), -1))

This change can be immediately confirmed by using a Data Preview option in Derived column

Click on ‘Data Preview’

Easily converted without any hassles.

About AnithaEswaran

Hello all, Thanks for visiting my blog. I strongly believe in "Knowledge increases by sharing ,not by saving". With that in mind, I started this blog to share my learning with D365FO community. Since I am from technical background, most of my posts would be from X++, Azure integration and other topics. Thanks to my mentor and my colleague Romain Gasnier who guided and helped me in learning many new concepts in Ax. This instilled confidence in me to handle and troubleshoot complex issues.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.