Forum Discussion
naveen73
Helper III
2 years agoGenerate column with count of values
Hi all, I am working with a dataset and merging another set and applying filters. At some point I am getting the “Value” column (see screenshot). However, the values are a sum of each of the “Pr...
naveen73
Helper III
2 years agoThanks for your efforts. I was looking for a solution in M language. Would you (anybody) be able to help me with in M. Perhaps it is technically not possible in M?
Thanks,
Naveen
- spinfuzer2 years ago
Solution Sage
Right Click on the Column(s) You want to group by --> Group By --> Operation --> Count Rows
- wdx223_Daniel2 years ago
Community Champion
=Table.Combine(Table.Group(YourTableName,"Product Code",{"n",each let a=Table.RowCount(_) in Table.AddColumn(_,"Custom",each [Value]/a)})[n])