Forum Discussion
monojchakrab
Resolver III
3 years agoList.Accumulate returning wrong value
Hiya all, I am working with a table as below : The task is as follows : 1. Extract the month name using List.Accumulate as below : Table.AddColumn(ExtractAccountName, "Month Name", ...
- 3 years ago
in 4th row, right there is a "mar" in Jiomart
- 3 years ago
Table.AddColumn(ExtractAccountName, "Month Name", each List.Select(MonthNames,(x)=> Text.Contains([Name],"_"&x,Comparer.OrdinalIgnoreCase)){0}?)sorry for my carelessness.
monojchakrab
Resolver III
3 years agowhoops did not realise that wdx223_Daniel . Is there a workaround not to pick up the "mar" from the name of the account string.
would splitting the column using the delimiter "-" work better in this case?
wdx223_Daniel
Community Champion
3 years agoTable.AddColumn(ExtractAccountName, "Month Name", each List.Select(MonthNames,each
Text.Contains([Name],"_"&_,Comparer.OrdinalIgnoreCase){0}?)- monojchakrab3 years ago
Resolver III
wdx223_Daniel - It adds column with lists as it should, but the list is populated with errors on every row. Am I getting something wrong?
- monojchakrab3 years ago
Resolver III
- wdx223_Daniel3 years ago
Community Champion
Table.AddColumn(ExtractAccountName, "Month Name", each List.Select(MonthNames,(x)=> Text.Contains([Name],"_"&x,Comparer.OrdinalIgnoreCase){0}?)