March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 text column has a different word, then I do not need the calculation.
Solved! Go to Solution.
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
Hi @paulhazelwood
Date Column Do you have Seperate columnb or not?
Can you share the any Ex Pic?
Thanks,
Thennarasu
Sorry unable to provide screenshot, but if you picture a column with dates (column A) and a column with text values (column B). What I want is a 3rd column that if Column B contains "word" then calculate datediff between date in Column A and TODAY.
Thanks for the reply however not quite what I am after. I have the date column and then a text column which would contain different values, such as "Hold", "Action", "Reply" etc.
If the text colum contains the word "Hold" then in the 3rd column give me the date diff between the date column and today. If it is any other word then give me NULL.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |