Forum Discussion
nmoriello
2 years agoFrequent Visitor
SEARCH function using another column to find value in text string
Hello, I am trying to use a column name "Account Context" that is a Text string field (ex. ADJ:191907 SPORTS INC.) which contains some random integers as well as a customer name. I want to be...
- Anonymous2 years ago
Hi nmoriello ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
Customer table:
Table:
(2)We can create a new table.
Table 2 = var tmp=CROSSJOIN('Table',Customer) var tmp1=ADDCOLUMNS(tmp,"Flag",CONTAINSSTRINGEXACT([TranGLC_GLAcctContext],[Customer Name])) var tmp2=FILTER(tmp1,[Flag]=TRUE()) var tmp3=SELECTCOLUMNS(tmp2,"Customer Name",[Customer Name]) return tmp3(3)Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.