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/
Proud to be a Super User!
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/
Proud to be a Super User!
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
This session will provide guidance and teach campers the skills required to build Power BI reports that support multiple languages.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
User | Count |
---|---|
112 | |
64 | |
45 | |
29 | |
22 |
User | Count |
---|---|
143 | |
94 | |
83 | |
46 | |
41 |