Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |