Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Solved! Go to Solution.
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!
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,
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!
User | Count |
---|---|
87 | |
72 | |
69 | |
64 | |
56 |
User | Count |
---|---|
98 | |
92 | |
84 | |
74 | |
66 |