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.
Hello,
i have the following situation:
Table A:
ID | Description | Category (measured row with DAX) |
01 | this is a audi car | |
02 | yellow mercedes | |
03 | an red apple |
Table B:
Keywords | Category |
audi | Car |
mercedes | Car |
apple | Fruit |
Know I want to do the following:
Read each data in Table A[Description] and look for certain strings and compare it with the values in Table B[Keywords].
If the description contains a word from Keywords, insert the value in Table B[Category] to Table A[Category]
Expected result:
Table A:
ID | Description | Category (measured row) |
01 | this is a audi car | Car |
02 | yellow mercedes | Car |
03 | an red apple | Fruit |
Can someone help me?
Thanks!
Best
Hi,
This calculated column formula in Table A works.
Hope this helps.
Category = FIRSTNONBLANK(FILTER(VALUES('Table B'[Keywords]),SEARCH('Table B'[Keywords],'Table A'[Description],1,0)),1)
Hi @furg42 ,
Have a look at the attached pbix. It doesn't necessarily address your use case but can help you get started.
Proud to be a Super User!
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 |
---|---|
102 | |
101 | |
78 | |
69 | |
63 |
User | Count |
---|---|
141 | |
106 | |
101 | |
85 | |
72 |