This is not a call for assistance, but more for some advice. I have a fully functioning code below and wondered if it could be streamlined.
= Table.AddColumn(
#"Renamed Columns",
"Company Name",
each if Text.Length([Person Surname]) > 20 or
Text.Contains([Person Surname], "Ltd") or
Text.Contains([Person Surname], "Limited") or
Text.Contains([Person Surname], "Llp") then [Person Surname]
else "")
Namingly I am looking at the text.contains
parameter. I was wondering if, rather than having 3 separate queries I could just use 1 with something like {"Ltd", "Limited", "LLP"}. This was should I want to add any further parameters down the line I could simply add them into the brace's.