Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Solved! Go to Solution.
@Anonymous
Did you create ISITEM as a calculated column? You need to create it as measure with following formula and drag it into table visual as below.
ISITEM = IF ( ISERROR ( SEARCH ( [ITEM], CALCULATE ( MAX ( RULES_TAB[RULES] ) ) ) ), 0, 1 )
Best Regards,
Herbert
@Anonymous
Did you create ISITEM as a calculated column? You need to create it as measure with following formula and drag it into table visual as below.
ISITEM = IF ( ISERROR ( SEARCH ( [ITEM], CALCULATE ( MAX ( RULES_TAB[RULES] ) ) ) ), 0, 1 )
Best Regards,
Herbert
Hi Herbet,
Yay!! Your Method works. Thanks a lot Herbet. Earlier the ISITEM was a calculated column.
Thanks again for the solution.
Regards,
Maddy
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
86 | |
70 | |
62 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |