Forum Discussion
DataNinja777
Super User
2 years agoContainsstring dax equivalent in Excel Power Pivot
Hi Power BI community,
I'd like to use Containsstring dax function in Excel, but it appears that this dax function is not present in Excel Power Pivot. Please could you let me know which alter...
- 2 years ago
CONTAINSSTRING is syntax sugar for SEARCH; thus the alternative is like,
FILTER( tbl, CONTAINSTRING( tbl[Text], "XYZ" ) ) <==> FILTER( tbl, SEARCH( "XYZ", tbl[Text], 1, 0 ) > 0 )
ThxAlot
Super User
2 years agoCONTAINSSTRING is syntax sugar for SEARCH; thus the alternative is like,
FILTER( tbl, CONTAINSTRING( tbl[Text], "XYZ" ) )
<==>
FILTER( tbl, SEARCH( "XYZ", tbl[Text], 1, 0 ) > 0 )