Forum Discussion
Anonymous
9 years agoNot applicable
Search a string based on a filter
Hi All,
I am trying out following scenario to search on a string based on a filter.
So i have a slicer which contains the name of the materials. Once i select one material i need to search that material on another string.
What i have tried is as follows
I have created following measure.
ITEM = if (ISFILTERED(MATERIALS[Material_Description]),VALUES(MATERIALS[Material_Description]),"xxxx")
Then i am searching this on another string in some other table and if the material is found within text i return 1. else 0
ISITEM = IF(ISERROR(SEARCH([ITEM],RULES_TAB[RULES])),0,1)
My question is search function is not taking [ITEM] as a string. Is there a solution for this
Regards,
Maddy