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)
Sorry my mistake, it was missing one parethesis after your column name
try this
test = IF(IFERROR(SEARCH("Transient Retail",'home accounts'[acc_name]),-1)=1,10,0)
- sokg9 years agoSolution Supplier
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)
- YGoe9 years agoNew Member
no problem :)
it is a tough one. I tried a lot of things before asking for help.
Your new solution return the following error:
There must be an issue with the column in the table but it does not make any sense to me. the snapshot of the account table shows that the column Acc_name does exist and the text we are searching for is in that column!!
I dont really know what to do.
- sokg9 years agoSolution Supplier
Are you creating a column or a measure ?
- YGoe9 years agoNew Member
it is a measure. I tried creating a calculated column but the operation that follows the if statement creates a circular reference.
- YGoe9 years agoNew Member
it works when creating a column :)
why does it fail when creating a new measure then?
- sokg9 years agoSolution Supplier
Because needs a row contex to work. When you try as a measure tries to read the whole column .