Forum Discussion
Anonymous
7 years agoNot applicable
Count across columns
Hi, I have a data like the below (first 4 columns) In PowerQuery M, I want to add a new column called 'Agent Count' with a count of the number of agents enabled per machine. I have lo...
- 7 years ago
Hi Anonymous
simply add a column with this formula:
List.Count(List.Select(Record.FieldValues(_), (x) => Text.Contains(x, "enabled")))
ImkeF
7 years agoCommunity Champion
Hi Anonymous
simply add a column with this formula:
List.Count(List.Select(Record.FieldValues(_), (x) => Text.Contains(x, "enabled")))
- Anonymous7 years agoNot applicable
That was much simpler than I thought. Thank you imkyu
- Anonymous3 years agoNot applicable
This formulae does not seem to work in my case, which is very similar. I got all error values.