Forum Discussion
Search text DAX not working
- 9 years ago
Is home accounts{acc_name] already a calculated column?
Try this one as a column
test = IF(IFERROR(SEARCH("Transient Retail",'home accounts'[acc_name]),-1)=1,10,0)
Hi sokg,
I tried what you proposed and the error remains.
there is an error that is linked to the column 'home accounts'[acc_name] as it has a red line underneath it.
I honestly do not know why. You may find below a snapshot of the table accounts
Could you give a print screen from the error you get with my formula
- sokg9 years agoSolution Supplier
At the end you have 2 parenthesis. You need only one.
- YGoe9 years agoNew Member
I already tried removing brackets and moving the ,0 outside the first bracket. but it is still not working.
I dont know why the selected column is not being recognised properly.
is there another way to perform an if test on varchar datatype instead of numeric?
thanks,