简体   繁体   中英

POWER BI/EXCEL/VBA - Row Classification based on a list of contained words

i'm trying to recreate a parser, inside different applications (just to find out a good and light way to do it) that, with a list of given values try to classify a row. Here it is an example:

Table1: contains items that have to be classified:

Code Description
1 this is a common row that belong to Jake
2 this is a special row that belong to Thomas

Table 2: contains Keywords that have to be searched inside Table1 [Description]

Keywords Category
common, Jake Common Jake Row
special, belong, row, Thomas Special Thomas Row

The result that i want to obtain is:

Code Description Category
1 this is a common row that belong to Jake Common Jake Row
2 this is a special row that belong to Thomas Special Thoams Row

Is there a way to have this in VBA or Excel or PowerBI?

Thanks in advance

Just do a fuzzy join in Power Query and tweak the threshold.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM