Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 |
---|---|
123 | |
76 | |
62 | |
50 | |
49 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |