Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi
i am new to Power BI.
I need a DAX formula to check if fields contain a particular word.
if text contains the word remote then return "yes" otherwise "no"
example
123Remotexyz. return "Yes"
123Physicalxyz. return "No"
Solved! Go to Solution.
Hi @Kamchokshi ,
How about this:
LookupResult = IF ( ISERROR ( SEARCH ( "remote", 'Table'[Column] ) ), "No", "Yes" )
Let me know if this helped 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
Hi @Kamchokshi ,
You can create a new column and input the following code:
Column =IF(CONTAINSSTRING('Table'[Column1],"remote"),"Yes","No")
Output:
Best Regards,
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kamchokshi ,
You can create a new column and input the following code:
Column =IF(CONTAINSSTRING('Table'[Column1],"remote"),"Yes","No")
Output:
Best Regards,
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Kamchokshi ,
How about this:
LookupResult = IF ( ISERROR ( SEARCH ( "remote", 'Table'[Column] ) ), "No", "Yes" )
Let me know if this helped 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! |
#proudtobeasuperuser |
User | Count |
---|---|
42 | |
28 | |
24 | |
20 | |
16 |
User | Count |
---|---|
54 | |
35 | |
18 | |
18 | |
15 |