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.
I need help searcing searching a text string in a column to see if it matches a value in a different tables column. The tables are not connected. If the text string contains the value, I want to return another value into a new column. Sample tables:
Table 1 Table 2
Full Name | Company | Comeidans on set | Sets today | |
John Stewart | Laugh out loud | John Stewart, Kevin Hart | 1 | |
Terry Fator | Funny Business | Terry Fator, Ricky Gervais | 2 | |
Larry David | Laugh until your stomach hurts | Larry David, Chevy Chase | 3 | |
Gary Chandler | US laughs | Gary Chandler, Jay Leno | 4 | |
Jim Gaffin | Electric comedy | Jim Gaffin, David Letterman | 5 | |
Dave Chappelle | Comedic Comedy | Dave Chappelle, Adam Sandler | 6 | |
Jerry Seinfeld | Funny Guy | Jerry Seinfeld, Vill Murray | 7 |
Basically, I want too search/look in the comedians on set column, for a match to one the names in my full names column and return the company in a column in the table with comedians on set as a value. example:
seach comedians on set line 1 find john stewart as a match and return Laugh out loud as avalue in a new column in my comedians on set table.
Your help is greatly appreciated!!!
Solved! Go to Solution.
You may use DAX below to add a calculated column.
Column = VAR d = ", " RETURN CONCATENATEX ( FILTER ( Table1, SEARCH ( d & Table1[Full Name] & d, d & Table2[Comeidans on set] & d, 1, 0 ) > 0 ), Table1[Company], d )
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 |
---|---|
107 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |