Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
26 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
43 | |
19 | |
18 |