Forum Discussion

Jarrodg's avatar
Jarrodg
New Member
2 years ago
Solved

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...
  • wdx223_Daniel's avatar
    2 years ago

    =Table.Combine(Table.Group(PreviousStepName,"Entity",{"n",each Table.AddIndexColumn(_,"Index",1)})[n])