Forum Discussion

danielaledesmal's avatar
danielaledesmal
New Member
3 years ago

DAX formula not working for search function

Hi!! 

I've been trying to create a formula that searches for certain text in one column and if it's there then it returns it to my other column. I have not been able to achieve it. Any help would be greatly appreciated. 

These are thr two formulas I've used:

Responsibility = IF(ISERROR(SEARCH("CARRIER",CHART[MostRecentNote]),ISERROR(SEARCH("CHR OPS",CHART[MostRecentNote]),ISERROR(SEARCH("CUSTOMER",CHART[MostRecentNote]),ISERROR(SEARCH("READY TO PRINT",CHART[MostRecentNote]),"READY TO PRINT","CUSTOMER","CHR OPS","CARRIER")))))

 

ResponsibiliTY = IF(SEARCH("CARRIER",CHART[MostRecentNote])="CARRIER","CARRIER",IF(SEARCH("CUSTOMER",CHART[MostRecentNote])="CUSTOMER","CUSTOMER",IF(SEARCH("CHR OPS",CHART[MostRecentNote])="CHR OPS","CHR OPS",IF(SEARCH("READY TO PRINT",CHART[MostRecentNote])="READY TO PRINT","READY TO PRINT","AR REVIEW"))))

1 Reply