The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Let's say that we have the following example:
Input |
I want to eat; I want a big apple; |
You are fine; I'm not hungry; |
It's a nice day; |
I'm so sleepy |
and a keywords list (I can convert it to a table if needed)
Keywords |
It's a nice day |
hungry |
In this example I would like to return:
Results |
You are fine; I'm not hungry; |
It's a nice day; |
I am familiar with search but I couldn't have a list as an input.
Thanks!
Lydia
Solved! Go to Solution.
Hi @sundayDriver ,
You can write this m code:
let _item = [Column1] in
if List.Count(List.Select(tb_Keywords[Column1],
each Text.Contains(_item, _))) > 0 then 1 else 0
Hi @sundayDriver ,
You can write this m code:
let _item = [Column1] in
if List.Count(List.Select(tb_Keywords[Column1],
each Text.Contains(_item, _))) > 0 then 1 else 0
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |