filter string column

arkiboys 9,706 Reputation points
2022-11-10T13:38:38.793+00:00

this data flow filter expression is to filter data for the previous month
do you see why it says data flow expression should return boolean?
thanks
addMonths(toDate(DateColName, 'yyyy-MM-dd'), -1)

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Answer accepted by question author
  1. KranthiPakala-MSFT 46,737 Reputation points Microsoft Employee Moderator
    2022-11-11T02:28:52.683+00:00

    Hello @arkiboys ,

    Thanks for the question and using MS Q&A platform.

    I just tried the expression you mentioned above with a dummy date, and it evaluates without any errors. I don't see anything wrong with it. But if you are blocked with it, please do share screenshot of complete expression and the error message so that we can assist accordingly.

    259372-image.png

    A similar requirement has been answered in this thread - check if data is for previous month. Please review the provided solution and let us know if that helps to achieve your requirement.

    Hope this info helps.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.