Forum Discussion
Jarrodg
2 years agoNew Member
M Lanuage code to create index values for each field value
Hi, I am trying to write a script that will generate an index number for each value in the "Entity" field. Here is a sample of the output I want to create. I have tried using the Group function i...
- 2 years ago
=Table.Combine(Table.Group(PreviousStepName,"Entity",{"n",each Table.AddIndexColumn(_,"Index",1)})[n])
wdx223_Daniel
Community Champion
2 years ago=Table.Combine(Table.Group(PreviousStepName,"Entity",{"n",each Table.AddIndexColumn(_,"Index",1)})[n])