Hansolu
Helper II
1 year agoAdd a paired index column
Hi,
I am struggeling to add a paired index column into a nested table in PQ
I know how to add an index in the nested table like 1,2,3,4,5,....
what i do need to add is another column lik 1,1,2,2,3,3,4,4,5,5,6,6,...
So repeat the index number one time and go to the next
Guess not so complicate but somehow I struggle with this.
thanks
Hansolu
First, add a simple index column starting with zero:Table.AddIndexColumn(Source, "Index", 0, 1, Int64.Type)
then the second oneNumber.IntegerDivide([Index], 2) + 1
Result