Forum Discussion

paulhazelwood's avatar
paulhazelwood
New Member
3 years ago
Solved

Return date calculation based on text

I have a text column with values and then a date column. What i am trying to do is if the text column contains a certain word, then calculate the date difference between the date and today. If the te...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi paulhazelwood ,

     

    Please try:

    Column = IF(ISBLANK(SEARCH("Hold",'Table'[Value],,BLANK())),BLANK(),DATEDIFF('Table'[Date],TODAY(),DAY))

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum