Power Query Editor iteration

M, Johannes 86 Reputation points
2020-10-29T12:50:15.82+00:00

Hey guys,
I got a table like this in power query editor. The column is something like an index for different items. Some items got several rows, thats why there are duplicate numbers.
36103-1.png
Is it possible to iterate through the list and count from one to the max rows like in the next picture? And start at next index from one again?
36010-2.png
That would be awesome!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,959 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lz._ 8,991 Reputation points
    2020-10-29T14:10:59.563+00:00

    Hi

    ==> Power Query / Get & Transform – Add an incrementing column to each Group

    ***PreviousStepName*** = ...
    GroupedIndex = Table.Group(***PreviousStepName***, {"Index"},
        {{"GRP", each Table.AddIndexColumn(_,"New Value",1,1),
        type table [Index=nullable number, New Value=Int64.Type]}}
    ),
    CombinedNestedTables = Table.Combine(GroupedIndex[GRP])
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful