Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi all,
I have a custom fuction that counts the times words on a list are found in a string:
let
CountKeywords = (title as text, keywords as list) as number =>
let
words = Text.Split(title, " "),
matches = List.Count(List.Intersect({words, keywords}, Comparer.OrdinalIgnoreCase))
in
matches
in
CountKeywords
Inside the code I hard coded a list and use the function, it works
Keywords = {"One","Two","Three"}
AddedFound = Table.AddColumn(#"Filtered Rows1", "found", each Busca_cuantos([title], Keywords)),
Now, I want to create the list from a Table, but I get errors.
Keywords= = Table.ToList(Table.SelectColumns([Table],"Brand"))
The error reads:
Expression.Error: There is an unknown identifier. Did you use the [field] shorthand for a _[field] outside of an 'each' expression?
What I am missing here?
Thank you in advance for your kind support
Solved! Go to Solution.
Keywords= Table.Column([Table],"Product")
[Table] - This refers to a cell
Table - This refers to entire table
Use like this
Table[Product]
OR
Table.Column(Table, "Product") ### This was my mistake to put Table as [Table]
To convert to a list - Table.Column([Table],"Brand")
It can also be written as Table[Brand}
Thank you.
I tried Table.Column same error mesagge. Here is the sequence of my code:
// Source and some cleaning...
#"Filtered Rows1" = Table.SelectRows(#"Changed Type", each ([Source.Name] <> "xxx.xlsx")),
//Keywords = {"One","Two","Three"}
Keywords= Table.Column([Table],"Product"),
AddedFound = Table.AddColumn(#"Filtered Rows1", "found", each Busca_cuantos([title], Keywords)),
//Some conversions.....
Hope this helps to find the problem.
Regards
Keywords= Table.Column([Table],"Product")
[Table] - This refers to a cell
Table - This refers to entire table
Use like this
Table[Product]
OR
Table.Column(Table, "Product") ### This was my mistake to put Table as [Table]
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.